mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 05:21:57 +00:00
23 lines
884 B
Go
23 lines
884 B
Go
package entities
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type ProjectChickinDetail struct {
|
|
Id uint `gorm:"primaryKey"`
|
|
ProjectChickinId uint `gorm:"column:project_chickin_id;not null"`
|
|
ProductWarehouseId uint `gorm:"column:product_warehouse_id;not null"`
|
|
Quantity float64 `gorm:"type:numeric(15,3);not null"`
|
|
CreatedBy uint `gorm:"column:created_by;not null"`
|
|
CreatedAt time.Time `gorm:"autoCreateTime"`
|
|
UpdatedAt time.Time `gorm:"autoUpdateTime"`
|
|
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
|
|
|
|
ProjectChickin *ProjectChickin `gorm:"foreignKey:ProjectChickinId;references:Id"`
|
|
ProductWarehouse *ProductWarehouse `gorm:"foreignKey:ProductWarehouseId;references:Id"`
|
|
CreatedUser *User `gorm:"foreignKey:CreatedBy;references:Id"`
|
|
}
|