mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
15 lines
670 B
Go
15 lines
670 B
Go
package entities
|
|
|
|
import "time"
|
|
|
|
type ProjectFlockKandang struct {
|
|
Id uint `gorm:"primaryKey"`
|
|
ProjectFlockId uint `gorm:"not null;index:idx_project_flock_kandangs_project;uniqueIndex:idx_project_flock_kandangs_unique"`
|
|
KandangId uint `gorm:"not null;index:idx_project_flock_kandangs_kandang;uniqueIndex:idx_project_flock_kandangs_unique"`
|
|
CreatedAt time.Time `gorm:"autoCreateTime"`
|
|
|
|
ProjectFlock ProjectFlock `gorm:"foreignKey:ProjectFlockId;references:Id"`
|
|
Kandang Kandang `gorm:"foreignKey:KandangId;references:Id"`
|
|
Chickins []ProjectChickin `gorm:"foreignKey:ProjectFlockKandangId;references:Id"`
|
|
}
|