20 lines
556 B
Go
20 lines
556 B
Go
|
|
package entity
|
||
|
|
|
||
|
|
import (
|
||
|
|
"time"
|
||
|
|
|
||
|
|
"github.com/google/uuid"
|
||
|
|
)
|
||
|
|
|
||
|
|
type HeroContentImages struct {
|
||
|
|
ID uuid.UUID `json:"id" gorm:"primaryKey;type:uuid;default:uuid_generate_v4()"`
|
||
|
|
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"
|
||
|
|
}
|