feat(BE): recording

This commit is contained in:
ragilap
2025-10-23 15:23:28 +07:00
parent 346ae15314
commit 69ded31eb1
7 changed files with 186 additions and 67 deletions
+1 -2
View File
@@ -11,8 +11,7 @@ type Recording struct {
ProjectFlockKandangId uint `gorm:"column:project_flock_id;not null;index"`
RecordDatetime time.Time `gorm:"column:record_datetime;not null"`
RecordDate *time.Time `gorm:"column:record_date"`
Status int `gorm:"column:status;not null;default:0"`
Ontime bool `gorm:"column:ontime;not null;default:false"`
Ontime int `gorm:"column:ontime;not null;default:0"`
Day *int `gorm:"column:day"`
TotalDepletion *int `gorm:"column:total_depletion"`
CumDepletionRate *float64 `gorm:"column:cum_depletion_rate"`