package entities import ( "time" "gorm.io/gorm" ) type LayingKandangTransfer struct { Id uint `gorm:"primaryKey"` KandangId uint ProductWarehouseId uint Qty float64 `gorm:"type:numeric(15,3)"` LayingTransferId uint `gorm:"not null"` CreatedAt time.Time `gorm:"autoCreateTime"` UpdatedAt time.Time `gorm:"autoUpdateTime"` DeletedAt gorm.DeletedAt `gorm:"index"` Kandang *Kandang `gorm:"foreignKey:KandangId;references:Id"` ProductWarehouse *ProductWarehouse `gorm:"foreignKey:ProductWarehouseId;references:Id"` LayingTransfer *LayingTransfer `gorm:"foreignKey:LayingTransferId;references:Id"` }