link_relation_obj.gen.go 1.3 KB

12345678910111213141516171819202122232425262728
  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 TableNameLinkRelationObj = "link_relation_obj"
  9. // LinkRelationObj mapped from table <link_relation_obj>
  10. type LinkRelationObj struct {
  11. ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` // 联动目标关联表
  12. Strategyid int64 `gorm:"column:strategyid" json:"strategyid,string"` // 联动策略ID
  13. Linkfromid int64 `gorm:"column:linkfromid" json:"linkfromid,string"` // 联动来源ID
  14. Value string `gorm:"column:value" json:"value"` // 来源ID对应的联动触发取值(对应测点联动类型)
  15. Than int32 `gorm:"column:than" json:"than"` // 1-大于 2-等于 3-小于 4-大于等于 5-小于等于
  16. Relation int32 `gorm:"column:relation" json:"relation"` // 1-与 2-或 3-差 4-无
  17. CreateAt time.Time `gorm:"->" json:"create_at" c:"-"` // 创建时间
  18. UpdateAt time.Time `gorm:"->" json:"update_at" c:"-"` // 更新时间
  19. }
  20. // TableName LinkRelationObj's table name
  21. func (*LinkRelationObj) TableName() string {
  22. return TableNameLinkRelationObj
  23. }