1234567891011121314151617181920212223242526272829303132333435 |
- // 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
- import (
- "time"
- "gorm.io/gorm"
- )
- const TableNameBiz = "ot_biz"
- // Biz mapped from table <ot_biz>
- type Biz struct {
- ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
- CreatedAt time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
- UpdatedAt time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
- Name string `gorm:"column:name;type:varchar(255);not null" json:"name"`
- Hash string `gorm:"column:hash;type:varchar(100);not null;uniqueIndex:hash,priority:1;uniqueIndex:ot_biz_pk2,priority:1;comment:业务唯一哈希值, 通过app_alias, service_name, span_name计算得出, 防止数据重建后metrics统计失效" json:"hash"` // 业务唯一哈希值, 通过app_alias, service_name, span_name计算得出, 防止数据重建后metrics统计失效
- AppID int64 `gorm:"column:app_id;type:bigint(20);not null" json:"app_id"`
- AppAlias string `gorm:"column:app_alias;type:varchar(30);not null;uniqueIndex:ot_biz_pk,priority:1;comment:业务别名" json:"app_alias"` // 业务别名
- ServiceName string `gorm:"column:service_name;type:varchar(50);not null;uniqueIndex:ot_biz_pk,priority:2" json:"service_name"`
- SpanName string `gorm:"column:span_name;type:varchar(255);not null;uniqueIndex:ot_biz_pk,priority:3" json:"span_name"`
- IsAutoCreated int64 `gorm:"column:is_auto_created;type:bigint(20);not null" json:"is_auto_created"`
- SpanKind string `gorm:"column:span_kind;type:varchar(20);not null;comment:span类型" json:"span_kind"` // span类型
- Favor int32 `gorm:"column:favor;type:tinyint(4);not null;comment:收藏 0未收藏 1已收藏" json:"favor"` // 收藏 0未收藏 1已收藏
- DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_ot_biz_deleted_at,priority:1" json:"deleted_at"`
- }
- // TableName Biz's table name
- func (*Biz) TableName() string {
- return TableNameBiz
- }
|