qudoco-be/app/database/entity/hero_contents_images.entity.go

20 lines
529 B
Go
Raw Normal View History

2026-04-09 18:08:56 +00:00
package entity
import (
"time"
"github.com/google/uuid"
)
type HeroContentImages struct {
2026-04-10 07:23:24 +00:00
ID uuid.UUID `json:"id" gorm:"primaryKey;type:uuid"`
2026-04-09 18:08:56 +00:00
HeroContentID uuid.UUID `json:"hero_content_id" gorm:"type:uuid;not null"`
ImagePath string `json:"image_path" gorm:"type:text"`
ImageURL string `json:"image_url" gorm:"type:text"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
func (HeroContentImages) TableName() string {
return "hero_content_images"
}