package entity import "time" type PpidDataFiles struct { ID uint `json:"id" gorm:"primaryKey;type:int4;autoIncrement"` PpidDataId int `json:"ppid_data_id" gorm:"type:int4"` Title *string `json:"title" gorm:"type:varchar"` FileType *string `json:"file_type" gorm:"type:varchar"` FileName *string `json:"file_name" gorm:"type:varchar"` FilePath *string `json:"file_path" gorm:"type:varchar"` FileUrl *string `json:"file_url" gorm:"type:varchar"` Size *string `json:"size" gorm:"type:varchar"` Position *int `json:"position" gorm:"type:int4"` DownloadCount *int `json:"download_count" gorm:"type:int4;default:0"` CreatedById *int `json:"created_by_id" gorm:"type:int4"` StatusId *int `json:"status_id" gorm:"type:int4"` IsPublish *bool `json:"is_publish" gorm:"type:bool;default:false"` PublishedAt *time.Time `json:"published_at" gorm:"type:timestamp"` IsActive *bool `json:"is_active" gorm:"type:bool;default:false"` CreatedAt time.Time `json:"created_at" gorm:"default:now()"` UpdatedAt time.Time `json:"updated_at" gorm:"default:now()"` }