-
Notifications
You must be signed in to change notification settings - Fork 62
/
chii_characters.gen.go
33 lines (29 loc) · 1.85 KB
/
chii_characters.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
28
29
30
31
32
33
// 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
const TableNameCharacter = "chii_characters"
// Character mapped from table <chii_characters>
type Character struct {
ID uint32 `gorm:"column:crt_id;type:mediumint(8) unsigned;primaryKey;autoIncrement:true"`
Name string `gorm:"column:crt_name;type:varchar(255);not null"`
Role uint8 `gorm:"column:crt_role;type:tinyint(4) unsigned;not null;comment:角色,机体,组织。。"` // 角色,机体,组织。。
Infobox string `gorm:"column:crt_infobox;type:mediumtext;not null"`
Summary string `gorm:"column:crt_summary;type:mediumtext;not null"`
Img string `gorm:"column:crt_img;type:varchar(255);not null"`
Comment uint32 `gorm:"column:crt_comment;type:mediumint(9) unsigned;not null"`
Collects uint32 `gorm:"column:crt_collects;type:mediumint(8) unsigned;not null"`
Dateline uint32 `gorm:"column:crt_dateline;type:int(10) unsigned;not null"`
Lastpost uint32 `gorm:"column:crt_lastpost;type:int(11) unsigned;not null"`
Lock int8 `gorm:"column:crt_lock;type:tinyint(4);not null"`
ImgAnidb string `gorm:"column:crt_img_anidb;type:varchar(255);not null"` // Deprecated
AnidbID uint32 `gorm:"column:crt_anidb_id;type:mediumint(8) unsigned;not null"` // Deprecated
Ban uint8 `gorm:"column:crt_ban;type:tinyint(3) unsigned;not null"`
Redirect uint32 `gorm:"column:crt_redirect;type:int(10) unsigned;not null"`
Nsfw bool `gorm:"column:crt_nsfw;type:tinyint(1) unsigned;not null"`
Fields PersonField `gorm:"foreignKey:crt_id;polymorphic:Owner;polymorphicValue:crt" json:"fields"`
}
// TableName Character's table name
func (*Character) TableName() string {
return TableNameCharacter
}