123456789101112131415161718192021222324252627282930 |
- package yb_bullet_chat
- import "time"
- type YbBulletChat struct {
- ID int `gorm:"primaryKey;column:id;type:int(10) unsigned;not null" json:"-"`
- UserID int `gorm:"index:idx_user_id;column:user_id;type:int(10) unsigned;not null;default:0" json:"userId"`
- PrimaryID int `gorm:"index:idx_primary_id;column:primary_id;type:int(10) unsigned;not null;default:0" json:"primaryId"`
- Content string `gorm:"column:content;type:varchar(255);not null;default:''" json:"content"`
- Seconds float64 `gorm:"column:seconds;type:decimal(10,2);not null;default:0.00" json:"seconds"`
- Color string `gorm:"column:color;type:varchar(100);not null;default:''" json:"color"`
- Title string `gorm:"column:title;type:varchar(255);not null;default:''" json:"title"`
- Source int `gorm:"column:source;type:tinyint(4) unsigned;not null;default:0" json:"source"`
- SourceAgent int `gorm:"column:source_agent;type:tinyint(4) unsigned;not null;default:0" json:"sourceAgent"`
- CreateTime time.Time `gorm:"column:create_time;type:datetime" json:"createTime"`
- ModifyTime time.Time `gorm:"column:modify_time;type:datetime" json:"modifyTime"`
- OpAdminID int `gorm:"column:op_admin_id;type:int(10) unsigned;not null;default:0" json:"opAdminId"`
- IsDeleted int `gorm:"column:is_deleted;type:tinyint(4) unsigned;not null;default:0" json:"isDeleted"`
- DeleteTime time.Time `gorm:"column:delete_time;type:datetime" json:"deleteTime"`
- }
- func (m *YbBulletChat) TableName() string {
- return "yb_bullet_chat"
- }
- const (
- SourceBulletVideo = iota + 1
- SourceBulletChatVideo
- )
|