-
Notifications
You must be signed in to change notification settings - Fork 62
/
chii_person_cs_index.gen.go
29 lines (24 loc) · 1.34 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
26
27
28
29
// 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 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"`
PersonID model.PersonID `gorm:"column:prsn_id;type:mediumint(9) unsigned;primaryKey"`
PrsnPosition uint16 `gorm:"column:prsn_position;type:smallint(5) unsigned;primaryKey"` // 监督,原案,脚本,..
SubjectID model.SubjectID `gorm:"column:subject_id;type:mediumint(9) unsigned;primaryKey"`
SubjectTypeID uint8 `gorm:"column:subject_type_id;type:tinyint(4) unsigned;not null"`
Summary string `gorm:"column:summary;type:mediumtext;not null"`
PrsnAppearEps string `gorm:"column:prsn_appear_eps;type:mediumtext;not null"` // 可选,人物参与的章节
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
}