ot_biz_edge.gen.go 1.1 KB

123456789101112131415161718192021222324
  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 models
  5. const TableNameBizEdge = "ot_biz_edge"
  6. // BizEdge mapped from table <ot_biz_edge>
  7. type BizEdge struct {
  8. ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
  9. Source int64 `gorm:"column:source;type:bigint(20);uniqueIndex:ot_biz_edge_pk,priority:2" json:"source"`
  10. Target int64 `gorm:"column:target;type:bigint(20);uniqueIndex:ot_biz_edge_pk,priority:3" json:"target"`
  11. Type string `gorm:"column:type;type:varchar(30)" json:"type"`
  12. BizId int64 `gorm:"column:biz_id;type:bigint(20)" json:"bizid"`
  13. BizHash string `gorm:"column:biz_hash;type:varchar(100);not null;uniqueIndex:ot_biz_edge_pk,priority:1;comment:业务唯一哈希值" json:"bizhash"` // 业务唯一哈希值
  14. AppId int64 `gorm:"column:app_id;type:bigint(20)" json:"appid"`
  15. AppAlias string `gorm:"column:app_alias;type:varchar(30);not null;comment:应用别名" json:"appalias"` // 应用别名
  16. }
  17. // TableName BizEdge's table name
  18. func (*BizEdge) TableName() string {
  19. return TableNameBizEdge
  20. }