feat: update ppid files

This commit is contained in:
hanif salafi 2024-07-15 16:23:08 +07:00
parent 12c80f4a83
commit 91d0618956
2 changed files with 1 additions and 2 deletions

View File

@ -18,7 +18,7 @@ type PpidDataFiles struct {
StatusId *int `json:"status_id" gorm:"type:int4"` StatusId *int `json:"status_id" gorm:"type:int4"`
IsPublish *bool `json:"is_publish" gorm:"type:bool;default:false"` IsPublish *bool `json:"is_publish" gorm:"type:bool;default:false"`
PublishedAt *time.Time `json:"published_at" gorm:"type:timestamp"` PublishedAt *time.Time `json:"published_at" gorm:"type:timestamp"`
IsActive *bool `json:"is_active" gorm:"type:bool;default:false"` IsActive *bool `json:"is_active" gorm:"type:bool;default:true"`
CreatedAt time.Time `json:"created_at" gorm:"default:now()"` CreatedAt time.Time `json:"created_at" gorm:"default:now()"`
UpdatedAt time.Time `json:"updated_at" gorm:"default:now()"` UpdatedAt time.Time `json:"updated_at" gorm:"default:now()"`
} }

View File

@ -49,7 +49,6 @@ func (req PpidDataFilesCreateRequest) ToEntity() *entity.PpidDataFiles {
FileUrl: req.FileUrl, FileUrl: req.FileUrl,
Size: req.Size, Size: req.Size,
CreatedById: req.CreatedById, CreatedById: req.CreatedById,
IsActive: true,
StatusId: req.StatusId, StatusId: req.StatusId,
} }
} }