// 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" ) const TableNameDevDevinfo = "dev_devinfo" // DevDevinfo mapped from table type DevDevinfo struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` // 设备信息表 Stationid int32 `gorm:"column:stationid" json:"stationid"` // 所属变电站ID Deviceid int32 `gorm:"column:deviceid" json:"deviceid"` // 设备ID,查询变电框架返回 Devicename string `gorm:"column:devicename" json:"devicename"` // 设备名称 Appid int32 `gorm:"column:appid" json:"appid"` // 所属APP ID Modelid int32 `gorm:"column:modelid" json:"modelid"` // 所属模型ID Protocol string `gorm:"column:protocol" json:"protocol"` // 采集协议 Serial string `gorm:"column:serial" json:"serial"` // 串口地址 Baudrate int32 `gorm:"column:baudrate" json:"baudrate"` // 串口波特率 Stopbit int32 `gorm:"column:stopbit" json:"stopbit"` // 串口停止位 Checkbit string `gorm:"column:checkbit" json:"checkbit"` // 串口检测位 Databit int32 `gorm:"column:databit" json:"databit"` // 串口数据位 Slaveid int32 `gorm:"column:slaveid" json:"slaveid"` // 从设备ID IP string `gorm:"column:ip" json:"ip"` // IP地址 Port int32 `gorm:"column:port" json:"port"` // 端口号(modbus tcp) Eid string `gorm:"column:eid" json:"eid"` // 微功耗传感器ID Mqtttopic string `gorm:"column:mqtttopic" json:"mqtttopic"` // mqtt采集协议时对应的主题 Disable int32 `gorm:"column:disable" json:"disable"` // 设备禁用标志。1未禁用 2禁用 Online int32 `gorm:"column:online;default:2" json:"online"` // 设备在线状态。1离线 2在线 3超时,持续超时次数5次则离线 RegionId int32 `gorm:"column:region_id" json:"region_id"` // 区域id DevTypeId int32 `gorm:"column:dev_type_id" json:"dev_type_id"` // 设备类型id CreateAt time.Time `gorm:"->" json:"create_at" c:"-"` // 创建时间 UpdateAt time.Time `gorm:"->" json:"update_at" c:"-"` // 更新时间 } // TableName DevDevinfo's table name func (*DevDevinfo) TableName() string { return TableNameDevDevinfo }