feat: update ppid files
This commit is contained in:
parent
e6aed37f8d
commit
dca71f253a
|
|
@ -18,7 +18,7 @@ type PpidDataFiles struct {
|
|||
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"`
|
||||
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()"`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,7 +49,6 @@ func (req PpidDataFilesCreateRequest) ToEntity() *entity.PpidDataFiles {
|
|||
FileUrl: req.FileUrl,
|
||||
Size: req.Size,
|
||||
CreatedById: req.CreatedById,
|
||||
IsActive: true,
|
||||
StatusId: req.StatusId,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue