| 123456789101112131415161718192021 |
- package godown
- import "server/global"
- type Cargo struct {
- global.GVA_MODEL
- CommodityId int `json:"commodityId" gorm:"comment:商品id"`
- Commodity Commodity `json:"commodity" gorm:"foreignKey:CommodityId;references:id;"`
- Number int `json:"number" gorm:"comment:数量"`
- ManifestId int `json:"manifestId" gorm:"comment:货单id"`
- WarehouseId int `json:"warehouseId" gorm:"comment:仓库id"`
- Warehouse Warehouse `json:"warehouse" gorm:"foreignKey:WarehouseId;references:id;"`
- StorageAreaId int `json:"storageAreaId" gorm:"comment:库区id"`
- StorageArea StorageArea `json:"storageArea" gorm:"foreignKey:StorageAreaId;references:id;"`
- PlaceId int `json:"placeId" gorm:"comment:库位id"`
- Place Place `json:"place" gorm:"foreignKey:PlaceId;references:id;"`
- }
- func (Cargo) TableName() string {
- return "cargo"
- }
|