12345678910111213141516171819202122 |
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- package models
- const TableNameDict = "ot_dict"
- // Dict mapped from table <ot_dict>
- type Dict struct {
- ID int32 `gorm:"column:id;type:int(11);primaryKey;autoIncrement:true;comment:主键id" json:"id"` // 主键id
- 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
- Label string `gorm:"column:label;type:varchar(50);not null;uniqueIndex:uk,priority:2;comment:原始标记" json:"label"` // 原始标记
- Title string `gorm:"column:title;type:varchar(50);not null;comment:展示名称" json:"title"` // 展示名称
- Remark string `gorm:"column:remark;type:varchar(255);not null;comment:备注" json:"remark"` // 备注
- Hide int32 `gorm:"column:hide;type:tinyint(3) unsigned;not null;comment:是否隐藏" json:"hide"` // 是否隐藏
- }
- // TableName Dict's table name
- func (*Dict) TableName() string {
- return TableNameDict
- }
|