-
Notifications
You must be signed in to change notification settings - Fork 62
/
chii_crt_cast_index.gen.go
24 lines (20 loc) · 1.31 KB
/
chii_crt_cast_index.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
// 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 TableNameCast = "chii_crt_cast_index"
// Cast mapped from table <chii_crt_cast_index>
type Cast struct {
CharacterID uint32 `gorm:"column:crt_id;type:mediumint(9) unsigned;primaryKey"`
PersonID uint32 `gorm:"column:prsn_id;type:mediumint(9) unsigned;primaryKey"`
SubjectID uint32 `gorm:"column:subject_id;type:mediumint(9) unsigned;primaryKey"`
SubjectTypeID uint8 `gorm:"column:subject_type_id;type:tinyint(3) unsigned;not null;comment:根据人物归类查询角色,动画,书籍,游戏"` // 根据人物归类查询角色,动画,书籍,游戏
Summary string `gorm:"column:summary;type:varchar(255);not null;comment:幼年,男乱马,女乱马,变身形态,少女形态。。"` // 幼年,男乱马,女乱马,变身形态,少女形态。。
Character Character `gorm:"foreignKey:crt_id;references:crt_id" json:"character"`
Subject Subject `gorm:"foreignKey:subject_id;references:subject_id" json:"subject"`
Person Person `gorm:"foreignKey:prsn_id;references:prsn_id" json:"person"`
}
// TableName Cast's table name
func (*Cast) TableName() string {
return TableNameCast
}