-
Notifications
You must be signed in to change notification settings - Fork 62
/
chii_person_cs_index.gen.go
25 lines (21 loc) · 1.54 KB
/
chii_person_cs_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
25
// 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 TableNamePersonSubjects = "chii_person_cs_index"
// PersonSubjects mapped from table <chii_person_cs_index>
type PersonSubjects struct {
PrsnType string `gorm:"column:prsn_type;type:enum('prsn','crt');primaryKey;autoIncrement:false" json:"prsn_type"`
PersonID uint32 `gorm:"column:prsn_id;type:mediumint(9) unsigned;primaryKey;autoIncrement:false;index:prsn_id,priority:1" json:"prsn_id"`
PrsnPosition uint16 `gorm:"column:prsn_position;type:smallint(5) unsigned;primaryKey;autoIncrement:false;index:prsn_position,priority:1" json:"prsn_position"` // 监督,原案,脚本,..
SubjectID uint32 `gorm:"column:subject_id;type:mediumint(9) unsigned;primaryKey;autoIncrement:false;index:subject_id,priority:1" json:"subject_id"`
SubjectTypeID uint8 `gorm:"column:subject_type_id;type:tinyint(4) unsigned;not null;index:subject_type_id,priority:1" json:"subject_type_id"`
Summary string `gorm:"column:summary;type:mediumtext;not null" json:"summary"`
PrsnAppearEps string `gorm:"column:prsn_appear_eps;type:mediumtext;not null" json:"prsn_appear_eps"` // 可选,人物参与的章节
Subject Subject `gorm:"foreignKey:subject_id;references:subject_id" json:"subject"`
Person Person `gorm:"foreignKey:prsn_id;references:prsn_id" json:"person"`
}
// TableName PersonSubjects's table name
func (*PersonSubjects) TableName() string {
return TableNamePersonSubjects
}