map_update.go 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package model
  5. import (
  6. "time"
  7. "gorm.io/gorm"
  8. )
  9. const TableNameMapUpdate = "map_update"
  10. // MapUpdate mapped from table <map_update>
  11. type MapUpdate struct {
  12. ID string `gorm:"column:id;type:varchar(100);primaryKey" json:"id"`
  13. MapID string `gorm:"column:map_id;type:varchar(100);not null" json:"map_id"`
  14. DeviceID string `gorm:"column:device_id;type:varchar(100);not null" json:"device_id"`
  15. DeviceSn string `gorm:"column:device_sn;type:varchar(100);not null" json:"device_sn"`
  16. DeviceName string `gorm:"column:device_name;type:varchar(100);not null" json:"device_name"`
  17. DeviceType string `gorm:"column:device_type;type:varchar(100);not null" json:"device_type"`
  18. PrePgmURL string `gorm:"column:pre_pgm_url;type:varchar(255);not null" json:"pre_pgm_url"`
  19. CurrentPgmURL string `gorm:"column:current_pgm_url;type:varchar(255);not null" json:"current_pgm_url"`
  20. PrePngURL string `gorm:"column:pre_png_url;type:varchar(255);not null" json:"pre_png_url"`
  21. CurrentPngURL string `gorm:"column:current_png_url;type:varchar(255);not null" json:"current_png_url"`
  22. UpdateRate string `gorm:"column:update_rate;type:varchar(50);not null" json:"update_rate"`
  23. CumulativeUpdateRate string `gorm:"column:cumulative_update_rate;type:varchar(50);not null" json:"cumulative_update_rate"`
  24. UpdateTime string `gorm:"column:update_time;type:varchar(50);not null" json:"update_time"`
  25. FromSceneList *string `gorm:"column:from_scene_list;type:varchar(255)" json:"from_scene_list"`
  26. UpdateFlag int32 `gorm:"column:update_flag;type:int(11);not null" json:"update_flag"`
  27. CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null" json:"created_at"`
  28. UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime" json:"updated_at"`
  29. DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime" json:"deleted_at"`
  30. UpdateMapURL string `gorm:"column:update_map_url;type:varchar(255);not null" json:"update_map_url"`
  31. UploadVersion *string `gorm:"column:upload_version;type:varchar(50)" json:"upload_version"`
  32. UploadedAt *time.Time `gorm:"column:uploaded_at;type:datetime" json:"uploaded_at"`
  33. }
  34. // TableName MapUpdate's table name
  35. func (*MapUpdate) TableName() string {
  36. return TableNameMapUpdate
  37. }