map_update.go 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. DeviceName string `gorm:"column:device_name;type:varchar(100);not null" json:"device_name"`
  16. DeviceType string `gorm:"column:device_type;type:varchar(100);not null" json:"device_type"`
  17. OriginPgmPath string `gorm:"column:origin_pgm_path;type:varchar(255);not null" json:"origin_pgm_path"`
  18. PrePgmPath string `gorm:"column:pre_pgm_path;type:varchar(255);not null" json:"pre_pgm_path"`
  19. CurrentPgmPath string `gorm:"column:current_pgm_path;type:varchar(255);not null" json:"current_pgm_path"`
  20. CumulativeUpdateRate int32 `gorm:"column:cumulative_update_rate;type:int(11);not null" json:"cumulative_update_rate"`
  21. UpdateFlag int32 `gorm:"column:update_flag;type:int(11);not null" json:"update_flag"`
  22. UpdateSource *int32 `gorm:"column:update_source;type:int(11)" json:"update_source"`
  23. UpdateTime time.Time `gorm:"column:update_time;type:datetime;not null" json:"update_time"`
  24. FromSceneList *string `gorm:"column:from_scene_list;type:varchar(255)" json:"from_scene_list"`
  25. ValidFlag int32 `gorm:"column:valid_flag;type:int(11);not null" json:"valid_flag"`
  26. CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null" json:"created_at"`
  27. UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime" json:"updated_at"`
  28. DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime" json:"deleted_at"`
  29. }
  30. // TableName MapUpdate's table name
  31. func (*MapUpdate) TableName() string {
  32. return TableNameMapUpdate
  33. }