2024-03-05 19:15:53 +00:00
|
|
|
package entity
|
|
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
|
|
type PpidDataFiles struct {
|
2024-04-28 18:39:43 +00:00
|
|
|
ID uint `json:"id" gorm:"primaryKey;type:int4;autoIncrement"`
|
|
|
|
|
PpidDataId int `json:"ppid_data_id" gorm:"type:int4"`
|
2024-04-29 17:34:05 +00:00
|
|
|
Title *string `json:"title" gorm:"type:varchar"`
|
|
|
|
|
FileType *string `json:"file_type" gorm:"type:varchar"`
|
2024-04-28 18:39:43 +00:00
|
|
|
FileName *string `json:"file_name" gorm:"type:varchar"`
|
|
|
|
|
FilePath *string `json:"file_path" gorm:"type:varchar"`
|
2024-05-28 03:07:38 +00:00
|
|
|
FileUrl *string `json:"file_url" gorm:"type:varchar"`
|
2024-04-28 18:39:43 +00:00
|
|
|
Size *string `json:"size" gorm:"type:varchar"`
|
2024-05-28 03:07:38 +00:00
|
|
|
Position *int `json:"position" gorm:"type:int4"`
|
2024-04-29 17:34:05 +00:00
|
|
|
DownloadCount *int `json:"download_count" gorm:"type:int4;default:0"`
|
2024-04-28 18:39:43 +00:00
|
|
|
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()"`
|
|
|
|
|
}
|