wasteuse.go 1.0 KB

1234567891011121314151617181920
  1. package models
  2. type WasteUse struct {
  3. Id int64 `xorm:"bigint not null pk autoincr 'id'" json:"id"` // 主键ID
  4. Ftid int64 `xorm:"bigint 'ftid'" json:"ftid"` // 配方ID
  5. Ftname string `xorm:"varchar(255) 'ftname'" json:"ftname"` // 配方名称
  6. Times int8 `xorm:"tinyint(1) 'times'" json:"times"` // 班次
  7. Date string `xorm:"date 'date'" json:"date"` // 日期
  8. SurplusId int64 `xorm:"bigint 'surplusId'" json:"surplusId"` // 剩料ID
  9. Surplus string `xorm:"varchar(40) 'surplus'" json:"surplus"` // 剩料配置
  10. PastureId int `xorm:"int 'pastureId'" json:"pastureId"` // 牧场ID
  11. Weight float64 `xorm:"decimal(12,2) 'weight'" json:"weight"` // 重量
  12. Barid int64 `xorm:"bigint 'barid'" json:"barid"` // 栏位ID
  13. Barname string `xorm:"varchar(50) 'barname'" json:"barname"` // 栏位名称
  14. }
  15. // 设置表名
  16. func (WasteUse) TableName() string {
  17. return "wasteuse"
  18. }