map_update.go 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. FromSceneList *string `gorm:"column:from_scene_list;type:varchar(255)" json:"from_scene_list"`
  24. ValidFlag int32 `gorm:"column:valid_flag;type:int(11);not null" json:"valid_flag"`
  25. CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null" json:"created_at"`
  26. UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime" json:"updated_at"`
  27. DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime" json:"deleted_at"`
  28. }
  29. // TableName MapUpdate's table name
  30. func (*MapUpdate) TableName() string {
  31. return TableNameMapUpdate
  32. }