互动
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

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