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