package entities import ( "time" "gorm.io/gorm" ) type DailyChecklistEmptyKandang struct { Id uint `gorm:"primaryKey"` DailyChecklistId uint `gorm:"not null"` KandangId uint `gorm:"not null"` StartDate time.Time `gorm:"type:date;not null"` EndDate time.Time `gorm:"type:date;not null"` CreatedBy *uint DeletedBy *uint CreatedAt time.Time `gorm:"autoCreateTime"` UpdatedAt time.Time `gorm:"autoUpdateTime"` DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` DailyChecklist *DailyChecklist `gorm:"foreignKey:DailyChecklistId;references:Id"` Kandang *KandangGroup `gorm:"foreignKey:KandangId;references:Id"` } func (DailyChecklistEmptyKandang) TableName() string { return "daily_checklist_empty_kandangs" }