cow_class.go 465 B

123456789101112131415161718
  1. package models
  2. type CowClass struct {
  3. Id int64 `xorm:"id"`
  4. PastureId int64 `xorm:"pastureid"`
  5. ClassCode string `xorm:"classcode"`
  6. ClassName string `xorm:"classname"`
  7. Sort int32 `xorm:"sort"`
  8. Enable int32 `xorm:"enable"`
  9. ParentId int32 `xorm:"parentid"`
  10. ParentName string `xorm:"parentname"`
  11. Backup1 string `xorm:"backup1"`
  12. GroupId int64 `xorm:"group_id"`
  13. }
  14. func (c *CowClass) TableName() string {
  15. return "cowclass"
  16. }