17 lines
578 B
Go
17 lines
578 B
Go
|
|
package entity
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/google/uuid"
|
||
|
|
)
|
||
|
|
|
||
|
|
type OurProductContentImage struct {
|
||
|
|
ID uuid.UUID `json:"id" gorm:"primaryKey;type:uuid;default:uuid_generate_v4()"`
|
||
|
|
OurProductContentID uuid.UUID `json:"our_product_content_id" gorm:"type:uuid"`
|
||
|
|
ImagePath string `json:"image_path" gorm:"type:varchar(255)"`
|
||
|
|
ImageURL string `json:"image_url" gorm:"type:text"`
|
||
|
|
IsThumbnail *bool `json:"is_thumbnail" gorm:"default:false"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (OurProductContentImage) TableName() string {
|
||
|
|
return "our_product_content_images"
|
||
|
|
}
|