mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 21:41:55 +00:00
25 lines
931 B
Go
25 lines
931 B
Go
package entities
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type ProjectFlockPopulation struct {
|
|
Id uint `gorm:"primaryKey"`
|
|
ProjectChickinId uint `gorm:"not null"`
|
|
ProductWarehouseId uint `gorm:"not null"`
|
|
TotalQty float64 `gorm:"type:numeric(15,3);not null"`
|
|
TotalUsedQty float64 `gorm:"type:numeric(15,3);not null"`
|
|
Notes string `gorm:"type:text"`
|
|
CreatedBy uint `gorm:"not null"`
|
|
CreatedAt time.Time `gorm:"autoCreateTime"`
|
|
UpdatedAt time.Time `gorm:"autoUpdateTime"`
|
|
DeletedAt gorm.DeletedAt `gorm:"index"`
|
|
|
|
ProjectChickin *ProjectChickin `gorm:"foreignKey:ProjectChickinId;references:Id"`
|
|
ProductWarehouse *ProductWarehouse `gorm:"foreignKey:ProductWarehouseId;references:Id"`
|
|
CreatedUser *User `gorm:"foreignKey:CreatedBy;references:Id"`
|
|
}
|