2025-03-11 07:52:11 +00:00
|
|
|
package entity
|
|
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
|
|
type Advertisement struct {
|
2025-03-28 09:24:29 +00:00
|
|
|
ID uint `json:"id" gorm:"primaryKey;type:int4;autoIncrement"`
|
|
|
|
|
Title string `json:"title" gorm:"type:varchar"`
|
|
|
|
|
Description string `json:"description" gorm:"type:varchar"`
|
|
|
|
|
RedirectLink string `json:"redirect_link" gorm:"type:varchar"`
|
|
|
|
|
ContentFilePath *string `json:"content_file_path" gorm:"type:varchar"`
|
|
|
|
|
ContentFileName *string `json:"content_file_name" gorm:"type:varchar"`
|
|
|
|
|
Placement string `json:"placement" gorm:"type:varchar"`
|
|
|
|
|
StatusId int `json:"status_id" gorm:"type:int4"`
|
2025-04-07 01:12:02 +00:00
|
|
|
IsPublish bool `json:"is_publish" gorm:"type:bool;default:true"`
|
2025-03-28 09:24:29 +00:00
|
|
|
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()"`
|
2025-03-11 07:52:11 +00:00
|
|
|
}
|