dev_cpaction.gen.go 1.5 KB

123456789101112131415161718192021222324252627282930
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package model
  5. import (
  6. "time"
  7. )
  8. const TableNameDevCpaction = "dev_cpaction"
  9. // DevCpaction mapped from table <dev_cpaction>
  10. type DevCpaction struct {
  11. ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` // 控制点动作表
  12. Actid int64 `gorm:"column:actid" json:"actid,string"` // 动作ID,全局唯一
  13. Cpid int64 `gorm:"column:cpid" json:"cpid,string"` // 所属控制点ID,全局唯一
  14. Acttype int32 `gorm:"column:acttype" json:"acttype"` // 动作分类。开关量动作-1, 模拟量动作-2
  15. Actdesc string `gorm:"column:actdesc" json:"actdesc"` // 动作描述
  16. Value float64 `gorm:"column:value" json:"value"` // 动作取值
  17. Delay int32 `gorm:"column:delay" json:"delay"` // 动作执行时对外部命令的封闭时间(不响应外部指令),单位秒
  18. Successval float64 `gorm:"column:successval" json:"successval"` // 录入的控制成功的状态值
  19. CreateAt time.Time `gorm:"->" json:"create_at" c:"-"` // 创建时间
  20. UpdateAt time.Time `gorm:"->" json:"update_at" c:"-"` // 更新时间
  21. }
  22. // TableName DevCpaction's table name
  23. func (*DevCpaction) TableName() string {
  24. return TableNameDevCpaction
  25. }