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

21 lines
908 B
Go
Raw Normal View History

2026-04-09 18:08:56 +00:00
package entity
import "time"
type AboutUsContent struct {
ID uint `json:"id" gorm:"primaryKey;type:int4;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"`
PrimaryCta string `json:"primary_cta" gorm:"type:varchar(255)"`
SecondaryCtaText string `json:"secondary_cta_text" gorm:"type:varchar(255)"`
IsActive *bool `json:"is_active" gorm:"type:bool;default:true"`
CreatedAt time.Time `json:"created_at" gorm:"default:now()"`
UpdatedAt time.Time `json:"updated_at" gorm:"default:now()"`
2026-04-10 07:23:24 +00:00
Images []AboutUsContentImage `json:"images,omitempty" gorm:"foreignKey:AboutUsContentID"`
2026-04-09 18:08:56 +00:00
}
func (AboutUsContent) TableName() string {
return "about_us_contents"
}