device_map..go 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 TableNameDeviceMap = "device_map"
  10. // DeviceMap mapped from table <device_map>
  11. type DeviceMap struct {
  12. ID string `gorm:"column:id;type:varchar(100);primaryKey" json:"id"`
  13. DeviceID string `gorm:"column:device_id;type:varchar(100);not null" json:"device_id"`
  14. DeviceNo string `gorm:"column:device_no;type:varchar(100);not null" json:"device_no"`
  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. MapID string `gorm:"column:map_id;type:varchar(100);not null" json:"map_id"`
  18. MapType string `gorm:"column:map_type;type:varchar(50);not null" json:"map_type"`
  19. MapName string `gorm:"column:map_name;type:varchar(255);not null" json:"map_name"`
  20. FloorID string `gorm:"column:floor_id;type:varchar(100);not null" json:"floor_id"`
  21. Floor string `gorm:"column:floor;type:varchar(100);not null" json:"floor"`
  22. BuildID string `gorm:"column:build_id;type:varchar(100);not null" json:"build_id"`
  23. BuildName string `gorm:"column:build_name;type:varchar(100);not null" json:"build_name"`
  24. MapCreateTime string `gorm:"column:map_create_time;type:varchar(100);not null" json:"map_create_time"`
  25. MapUpdateTime string `gorm:"column:map_update_time;type:varchar(100);not null" json:"map_update_time"`
  26. MapVersion int32 `gorm:"column:map_version;type:int(11);not null" json:"map_version"`
  27. MapValidFlag int32 `gorm:"column:map_valid_flag;type:int(11);not null;default:1" json:"map_valid_flag"`
  28. PjiMapZipURL string `gorm:"column:pji_map_zip_url;type:varchar(255);not null" json:"pji_map_zip_url"`
  29. CicvMapZipURL string `gorm:"column:cicv_map_zip_url;type:varchar(255);not null" json:"cicv_map_zip_url"`
  30. CustomAreaID int32 `gorm:"column:custom_area_id;type:int(11);not null" json:"custom_area_id"`
  31. CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null" json:"created_at"`
  32. UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime" json:"updated_at"`
  33. DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime" json:"deleted_at"`
  34. }
  35. // TableName DeviceMap's table name
  36. func (*DeviceMap) TableName() string {
  37. return TableNameDeviceMap
  38. }