h_active_original.go 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. package model
  2. type HActiveOriginal struct {
  3. Id int64 `gorm:"column:id"`
  4. UUID int64 `gorm:"column:UUID"`
  5. IntPastureId int32 `gorm:"column:intPastureId"`
  6. EID1 int64 `gorm:"column:EID1"`
  7. HeatDate string `gorm:"column:heatdate;type:date"` // 明确指定列名
  8. CreateTime string `gorm:"column:createtime"` // 明确指定列名
  9. Low int32 `gorm:"column:low"`
  10. High int32 `gorm:"column:high"`
  11. Rumina int32 `gorm:"column:Rumina"`
  12. Active int32 `gorm:"column:active"`
  13. Intake int32 `gorm:"column:intake"`
  14. Inactive int32 `gorm:"column:inactive"`
  15. Other int32 `gorm:"column:Other"`
  16. Gasp int32 `gorm:"column:Gasp"`
  17. Voltage int32 `gorm:"column:voltage"`
  18. UpPec int32 `gorm:"column:UpPec"`
  19. Version int32 `gorm:"column:Version"`
  20. Sign int32 `gorm:"column:Sign"`
  21. Remain int32 `gorm:"column:Remain"`
  22. Feed int32 `gorm:"column:feed"`
  23. FrameId int32 `gorm:"column:frameid"` // 明确指定列名
  24. Imei int64 `gorm:"column:Imei"`
  25. ReceiveNum int32 `gorm:"column:receivenum"`
  26. FrameNb int32 `gorm:"column:frameNb"`
  27. Senser int32 `gorm:"column:senser"`
  28. HIB string `gorm:"column:HIB"`
  29. Nb int32 `gorm:"column:nb"`
  30. }
  31. func (h *HActiveOriginal) TableName() string {
  32. return "h_active_original"
  33. }