互动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
861 B

package models
import (
"time"
)
const BarrageHistoryTableName = TableNamePrefix + "barrage_history"
//弹幕历史记录
type BarrageHistory struct {
Id int64 `json:"id" xorm:"not null pk autoincr INT(11)"`
ActivityId int64 `json:"activity_id" xorm:"not null comment('主活动得id') INT(11)"`
UserId int64 `json:"user_id" xorm:"not null comment('用户得id') INT(11)"`
Content string `json:"content" xorm:"not null comment('内容') TEXT"`
IsDelete bool `json:"is_delete" xorm:"not null default(0) comment('软删除') TINYINT(1)"`
CreateAt time.Time `json:"create_at" xorm:"not null created comment('创建时间') DATETIME"`
UpdateAt time.Time `json:"update_at" xorm:"not null updated comment('更新时间') DATETIME"`
}
func (t *BarrageHistory) TableName() string {
return BarrageHistoryTableName
}