-
Notifications
You must be signed in to change notification settings - Fork 62
/
chii_crt_subject_index.gen.go
28 lines (23 loc) · 1.29 KB
/
chii_crt_subject_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
// 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 TableNameCharacterSubjects = "chii_crt_subject_index"
// CharacterSubjects mapped from table <chii_crt_subject_index>
type CharacterSubjects struct {
CharacterID model.CharacterID `gorm:"column:crt_id;type:mediumint(9) 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"`
CrtType uint8 `gorm:"column:crt_type;type:tinyint(4) unsigned;not null"` // 主角,配角
CtrAppearEps string `gorm:"column:ctr_appear_eps;type:mediumtext;not null"` // 可选,角色出场的的章节
CrtOrder uint8 `gorm:"column:crt_order;type:tinyint(3) unsigned;not null"`
Character Character `gorm:"foreignKey:crt_id;references:crt_id" json:"character"`
Subject Subject `gorm:"foreignKey:subject_id;references:subject_id" json:"subject"`
}
// TableName CharacterSubjects's table name
func (*CharacterSubjects) TableName() string {
return TableNameCharacterSubjects
}