// 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 TableNameDevCpaction = "dev_cpaction" // DevCpaction mapped from table type DevCpaction struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` // 控制点动作表 Actid int64 `gorm:"column:actid" json:"actid,string"` // 动作ID,全局唯一 Cpid int64 `gorm:"column:cpid" json:"cpid,string"` // 所属控制点ID,全局唯一 Acttype int32 `gorm:"column:acttype" json:"acttype"` // 动作分类。开关量动作-1, 模拟量动作-2 Actdesc string `gorm:"column:actdesc" json:"actdesc"` // 动作描述 Value float64 `gorm:"column:value" json:"value"` // 动作取值 Delay int32 `gorm:"column:delay" json:"delay"` // 动作执行时对外部命令的封闭时间(不响应外部指令),单位秒 Successval float64 `gorm:"column:successval" json:"successval"` // 录入的控制成功的状态值 CreateAt time.Time `gorm:"->" json:"create_at" c:"-"` // 创建时间 UpdateAt time.Time `gorm:"->" json:"update_at" c:"-"` // 更新时间 } // TableName DevCpaction's table name func (*DevCpaction) TableName() string { return TableNameDevCpaction }