ot_dict.gen.go 1.4 KB

12345678910111213141516171819202122
  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 TableNameDict = "ot_dict"
  6. // Dict mapped from table <ot_dict>
  7. type Dict struct {
  8. ID int32 `gorm:"column:id;type:int(11);primaryKey;autoIncrement:true;comment:主键id" json:"id"` // 主键id
  9. Type string `gorm:"column:type;type:varchar(30);not null;uniqueIndex:uk,priority:1;comment:类型, 如span name, span attributes, resource attributes" json:"type"` // 类型, 如span name, span attributes, resource attributes
  10. Label string `gorm:"column:label;type:varchar(50);not null;uniqueIndex:uk,priority:2;comment:原始标记" json:"label"` // 原始标记
  11. Title string `gorm:"column:title;type:varchar(50);not null;comment:展示名称" json:"title"` // 展示名称
  12. Remark string `gorm:"column:remark;type:varchar(255);not null;comment:备注" json:"remark"` // 备注
  13. Hide int32 `gorm:"column:hide;type:tinyint(3) unsigned;not null;comment:是否隐藏" json:"hide"` // 是否隐藏
  14. }
  15. // TableName Dict's table name
  16. func (*Dict) TableName() string {
  17. return TableNameDict
  18. }