mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
28 lines
828 B
Go
28 lines
828 B
Go
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"
|
|
}
|