mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
19 lines
929 B
Go
19 lines
929 B
Go
package entities
|
|
|
|
import "time"
|
|
|
|
type RecordingEgg struct {
|
|
Id uint `gorm:"primaryKey"`
|
|
RecordingId uint `gorm:"column:recording_id;not null;index"`
|
|
ProductWarehouseId uint `gorm:"column:product_warehouse_id;not null"`
|
|
Qty int `gorm:"column:qty;not null"`
|
|
Weight *float64 `gorm:"column:weight"`
|
|
CreatedBy uint `gorm:"column:created_by"`
|
|
CreatedAt time.Time `gorm:"autoCreateTime"`
|
|
UpdatedAt time.Time `gorm:"autoUpdateTime"`
|
|
ProductWarehouse ProductWarehouse `gorm:"foreignKey:ProductWarehouseId;references:Id"`
|
|
ProductFlagName *string `gorm:"column:product_flag_name" json:"-"`
|
|
CreatedUser *User `gorm:"foreignKey:CreatedBy;references:Id"`
|
|
Recording Recording `gorm:"foreignKey:RecordingId;references:Id"`
|
|
}
|