// 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 TableNameLinkEvent = "link_event" // LinkEvent mapped from table type LinkEvent struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` // 联动事件表 Eventid int64 `gorm:"column:eventid" json:"eventid,string"` // 联动事件ID,全局唯一 Eventdesc string `gorm:"column:eventdesc" json:"eventdesc"` // 联动事件描述 Timestamp int64 `gorm:"column:timestamp" json:"timestamp,string"` // 事件产生时的时间戳 Strategyid int64 `gorm:"column:strategyid" json:"strategyid,string"` // 关联的联动策略ID Linktoid int64 `gorm:"column:linktoid" json:"linktoid,string"` // 联动目标ID Beforestatus string `gorm:"column:beforestatus" json:"beforestatus"` // 联动前目标状态。变电采集设备状态为控制点关联的测点数据。视频设备状态为预置位名称 Afterstatus string `gorm:"column:afterstatus" json:"afterstatus"` // 联动后目标状态 Result string `gorm:"column:result" json:"result"` // 执行结果 Srcappid int32 `gorm:"column:srcappid" json:"srcappid"` // 来源app id Dstappid int32 `gorm:"column:dstappid" json:"dstappid"` // 目标app id CreateAt time.Time `gorm:"->" json:"create_at" c:"-"` // 创建时间 UpdateAt time.Time `gorm:"->" json:"update_at" c:"-"` // 更新时间 } // TableName LinkEvent's table name func (*LinkEvent) TableName() string { return TableNameLinkEvent }