21 lines
900 B
Go
21 lines
900 B
Go
package entity
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Advertisement struct {
|
|
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"`
|
|
IsPublish bool `json:"is_publish" gorm:"type:bool"`
|
|
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()"`
|
|
}
|