1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- package model
- import (
- "time"
- "gorm.io/gorm"
- )
- const TableNameDeviceMap = "device_map"
- // DeviceMap mapped from table <device_map>
- type DeviceMap struct {
- ID string `gorm:"column:id;type:varchar(100);primaryKey" json:"id"`
- DeviceID string `gorm:"column:device_id;type:varchar(100);not null" json:"device_id"`
- DeviceNo string `gorm:"column:device_no;type:varchar(100);not null" json:"device_no"`
- DeviceName string `gorm:"column:device_name;type:varchar(100);not null" json:"device_name"`
- DeviceType string `gorm:"column:device_type;type:varchar(100);not null" json:"device_type"`
- MapID string `gorm:"column:map_id;type:varchar(100);not null" json:"map_id"`
- MapType string `gorm:"column:map_type;type:varchar(50);not null" json:"map_type"`
- MapName string `gorm:"column:map_name;type:varchar(255);not null" json:"map_name"`
- FloorID string `gorm:"column:floor_id;type:varchar(100);not null" json:"floor_id"`
- Floor string `gorm:"column:floor;type:varchar(100);not null" json:"floor"`
- BuildID string `gorm:"column:build_id;type:varchar(100);not null" json:"build_id"`
- BuildName string `gorm:"column:build_name;type:varchar(100);not null" json:"build_name"`
- MapCreateTime string `gorm:"column:map_create_time;type:varchar(100);not null" json:"map_create_time"`
- MapUpdateTime string `gorm:"column:map_update_time;type:varchar(100);not null" json:"map_update_time"`
- MapVersion int32 `gorm:"column:map_version;type:int(11);not null" json:"map_version"`
- MapValidFlag int32 `gorm:"column:map_valid_flag;type:int(11);not null;default:1" json:"map_valid_flag"`
- PjiMapZipURL string `gorm:"column:pji_map_zip_url;type:varchar(255);not null" json:"pji_map_zip_url"`
- CicvMapZipURL string `gorm:"column:cicv_map_zip_url;type:varchar(255);not null" json:"cicv_map_zip_url"`
- CustomAreaID int32 `gorm:"column:custom_area_id;type:int(11);not null" json:"custom_area_id"`
- CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null" json:"created_at"`
- UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime" json:"updated_at"`
- DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime" json:"deleted_at"`
- }
- // TableName DeviceMap's table name
- func (*DeviceMap) TableName() string {
- return TableNameDeviceMap
- }
|