2026-04-09 18:08:56 +00:00
|
|
|
package entity
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"time"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type OurServiceContent struct {
|
2026-04-10 18:53:47 +00:00
|
|
|
ID uint `json:"id" gorm:"primaryKey;autoIncrement"`
|
|
|
|
|
PrimaryTitle string `json:"primary_title" gorm:"type:varchar(255)"`
|
|
|
|
|
SecondaryTitle string `json:"secondary_title" gorm:"type:varchar(255)"`
|
|
|
|
|
Description string `json:"description" gorm:"type:text"`
|
|
|
|
|
LinkURL string `json:"link_url" gorm:"type:text"`
|
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
|
|
|
IsActive *bool `json:"is_active" gorm:"default:true"`
|
|
|
|
|
Images []OurServiceContentImage `json:"images" gorm:"foreignKey:OurServiceContentID"`
|
2026-04-09 18:08:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (OurServiceContent) TableName() string {
|
|
|
|
|
return "our_service_contents"
|
2026-04-10 18:53:47 +00:00
|
|
|
}
|