link_strategy.gen.go 1.3 KB

123456789101112131415161718192021222324252627
  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 TableNameLinkStrategy = "link_strategy"
  9. // LinkStrategy mapped from table <link_strategy>
  10. type LinkStrategy struct {
  11. ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` // 联动策略表
  12. Strategyid int64 `gorm:"column:strategyid" json:"strategyid,string"` // 联动策略ID,全局唯一
  13. Appid int32 `gorm:"column:appid" json:"appid"` // 所属APP id
  14. Strategyname string `gorm:"column:strategyname" json:"strategyname"` // 联动策略名称
  15. Linktype int32 `gorm:"column:linktype" json:"linktype"` // 联动类型。1测点联动 2模拟IO量输入事件联动 3数字量IO量输入联动 4 模拟IO量输出事件联动 5 数字量IO量输出联动 6 辅控事件联动
  16. CreateAt time.Time `gorm:"->" json:"create_at" c:"-"` // 创建时间
  17. UpdateAt time.Time `gorm:"->" json:"update_at" c:"-"` // 更新时间
  18. }
  19. // TableName LinkStrategy's table name
  20. func (*LinkStrategy) TableName() string {
  21. return TableNameLinkStrategy
  22. }