-
Notifications
You must be signed in to change notification settings - Fork 61
/
chii_rev_history.gen.go
27 lines (22 loc) · 1.14 KB
/
chii_rev_history.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// 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 dao
import (
"github.com/bangumi/server/internal/model"
)
const TableNameRevisionHistory = "chii_rev_history"
// RevisionHistory mapped from table <chii_rev_history>
type RevisionHistory struct {
ID uint32 `gorm:"column:rev_id;type:mediumint(8) unsigned;primaryKey;autoIncrement:true"`
Type uint8 `gorm:"column:rev_type;type:tinyint(3) unsigned;not null"` // 条目,角色,人物
Mid uint32 `gorm:"column:rev_mid;type:mediumint(8) unsigned;not null"` // 对应条目,人物的ID
TextID uint32 `gorm:"column:rev_text_id;type:mediumint(9) unsigned;not null"`
CreatedTime uint32 `gorm:"column:rev_dateline;type:int(10) unsigned;not null"`
CreatorID model.UserID `gorm:"column:rev_creator;type:mediumint(8) unsigned;not null"`
Summary string `gorm:"column:rev_edit_summary;type:varchar(200);not null"`
}
// TableName RevisionHistory's table name
func (*RevisionHistory) TableName() string {
return TableNameRevisionHistory
}