mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 21:41:55 +00:00
23 lines
729 B
Go
23 lines
729 B
Go
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"`
|
|
}
|