// 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 TableNameDevMpinfo = "dev_mpinfo" // DevMpinfo mapped from table type DevMpinfo struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` // 测点信息表 Mpid int64 `gorm:"column:mpid" json:"mpid,string"` // 测点ID,全局唯一索引 Mpname string `gorm:"column:mpname" json:"mpname"` // 测点名称 Zonename string `gorm:"column:zonename" json:"zonename"` // 所在区域名称 Positionname string `gorm:"column:positionname" json:"positionname"` // 区域内位置 Appid int32 `gorm:"column:appid" json:"appid"` // 所属APP id Modelid int32 `gorm:"column:modelid" json:"modelid"` // 所属模型id Deviceid int32 `gorm:"column:deviceid" json:"deviceid"` // 所属设备id Attrname string `gorm:"column:attrname" json:"attrname"` // 对应模型属性 Unit string `gorm:"column:unit" json:"unit"` // 测点单位 Phase string `gorm:"column:phase" json:"phase"` // 相位 Online int32 `gorm:"column:online;default:1" json:"online"` // 1离线/2 在线 / 3 超时。持续超时次数5次则离线 Disable int32 `gorm:"column:disable;default:1" json:"disable"` // 测点停用标志。1-启用 2-停用, 默认启用 CreateAt time.Time `gorm:"->" json:"create_at" c:"-"` // 创建时间 UpdateAt time.Time `gorm:"->" json:"update_at" c:"-"` // 更新时间 } // TableName DevMpinfo's table name func (*DevMpinfo) TableName() string { return TableNameDevMpinfo }