123456789101112131415161718192021222324252627282930 |
- // 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 TableNameBizNode = "ot_biz_node"
- // BizNode mapped from table <ot_biz_node>
- type BizNode struct {
- ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true;comment:主键id" json:"id"` // 主键id
- Name string `gorm:"column:name;type:varchar(100);comment:结点名称" json:"name"` // 结点名称
- Hash string `gorm:"column:hash;type:varchar(100);not null;uniqueIndex:hash,priority:1;uniqueIndex:ot_biz_node_pk2,priority:1;comment:业务结点哈希, 唯一, 由biz_alias, service_name, span_name, span_kind计算得出,防止重建后metric统计数据错乱失效" json:"hash"` // 业务结点哈希, 唯一, 由biz_alias, service_name, span_name, span_kind计算得出,防止重建后metric统计数据错乱失效
- Type int64 `gorm:"column:type;type:bigint(20);comment:类型 0未知 1client 2http 3rpc" json:"type"` // 类型 0未知 1client 2http 3rpc
- ExternalID int64 `gorm:"column:external_id;type:bigint(20);comment:拓展id,根据type判断它对应的表" json:"external_id"` // 拓展id,根据type判断它对应的表
- BizID int64 `gorm:"column:biz_id;type:bigint(20);comment:业务id" json:"biz_id"` // 业务id
- BizHash string `gorm:"column:biz_hash;type:varchar(100);comment:业务唯一哈希值" json:"biz_hash"` // 业务唯一哈希值
- AppID int64 `gorm:"column:app_id;type:bigint(20);comment:应用id" json:"app_id"` // 应用id
- AppAlias string `gorm:"column:app_alias;type:varchar(30);uniqueIndex:ot_biz_node_pk,priority:1;comment:应用别名" json:"app_alias"` // 应用别名
- ServiceName string `gorm:"column:service_name;type:varchar(50);uniqueIndex:ot_biz_node_pk,priority:2;comment:服务名称" json:"service_name"` // 服务名称
- SpanName string `gorm:"column:span_name;type:varchar(255);uniqueIndex:ot_biz_node_pk,priority:3;comment:span名称" json:"span_name"` // span名称
- SpanKind string `gorm:"column:span_kind;type:varchar(20);uniqueIndex:ot_biz_node_pk,priority:4;comment:span类别" json:"span_kind"` // span类别
- SpanType string `gorm:"column:span_type;type:varchar(30);not null;comment:类似span_kind,但更精确" json:"span_type"` // 类似span_kind,但更精确
- IsVirtual int64 `gorm:"column:is_virtual;type:bigint(20);comment:是否为虚拟结点(已废除)" json:"is_virtual"` // 是否为虚拟结点(已废除)
- }
- // TableName BizNode's table name
- func (*BizNode) TableName() string {
- return TableNameBizNode
- }
|