mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 21:41:55 +00:00
25 lines
991 B
Go
25 lines
991 B
Go
package entities
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type LayingTransferTarget struct {
|
|
Id uint `gorm:"primaryKey"`
|
|
LayingTransferId uint `gorm:"index;not null"`
|
|
TargetProjectFlockKandangId uint `gorm:"not null"`
|
|
Qty float64 `gorm:"type:numeric(15,3);not null"`
|
|
ProductWarehouseId *uint `gorm:""`
|
|
Note string `gorm:"type:text"`
|
|
CreatedAt time.Time `gorm:"autoCreateTime"`
|
|
UpdatedAt time.Time `gorm:"autoUpdateTime"`
|
|
DeletedAt gorm.DeletedAt `gorm:"index"`
|
|
|
|
LayingTransfer *LayingTransfer `gorm:"foreignKey:LayingTransferId;references:Id"`
|
|
TargetProjectFlockKandang *ProjectFlockKandang `gorm:"foreignKey:TargetProjectFlockKandangId;references:Id"`
|
|
ProductWarehouse *ProductWarehouse `gorm:"foreignKey:ProductWarehouseId;references:Id"`
|
|
}
|
|
|