// 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 TableNamePerson = "chii_persons"

// Person （现实）人物表
type Person struct {
	ID          uint32      `gorm:"column:prsn_id;type:mediumint(8) unsigned;primaryKey;autoIncrement:true" json:""`
	Name        string      `gorm:"column:prsn_name;type:varchar(255);not null" json:""`
	Type        uint8       `gorm:"column:prsn_type;type:tinyint(4) unsigned;not null;comment:个人，公司，组合" json:""` // 个人，公司，组合
	Infobox     string      `gorm:"column:prsn_infobox;type:mediumtext;not null" json:""`
	Producer    bool        `gorm:"column:prsn_producer;type:tinyint(1);not null" json:""`
	Mangaka     bool        `gorm:"column:prsn_mangaka;type:tinyint(1);not null" json:""`
	Artist      bool        `gorm:"column:prsn_artist;type:tinyint(1);not null" json:""`
	Seiyu       bool        `gorm:"column:prsn_seiyu;type:tinyint(1);not null" json:""`
	Writer      bool        `gorm:"column:prsn_writer;type:tinyint(4);not null;comment:作家" json:""`      // 作家
	Illustrator bool        `gorm:"column:prsn_illustrator;type:tinyint(4);not null;comment:绘师" json:""` // 绘师
	Actor       bool        `gorm:"column:prsn_actor;type:tinyint(1);not null;comment:演员" json:""`       // 演员
	Summary     string      `gorm:"column:prsn_summary;type:mediumtext;not null" json:""`
	Img         string      `gorm:"column:prsn_img;type:varchar(255);not null" json:""`
	ImgAnidb    string      `gorm:"column:prsn_img_anidb;type:varchar(255);not null" json:""` // Deprecated
	Comment     uint32      `gorm:"column:prsn_comment;type:mediumint(9) unsigned;not null" json:""`
	Collects    uint32      `gorm:"column:prsn_collects;type:mediumint(8) unsigned;not null" json:""`
	Dateline    uint32      `gorm:"column:prsn_dateline;type:int(10) unsigned;not null" json:""`
	Lastpost    uint32      `gorm:"column:prsn_lastpost;type:int(11) unsigned;not null" json:""`
	Lock        int8        `gorm:"column:prsn_lock;type:tinyint(4);not null" json:""`
	AnidbID     uint32      `gorm:"column:prsn_anidb_id;type:mediumint(8) unsigned;not null" json:""` // Deprecated
	Ban         uint8       `gorm:"column:prsn_ban;type:tinyint(3) unsigned;not null" json:""`
	Redirect    uint32      `gorm:"column:prsn_redirect;type:int(10) unsigned;not null" json:""`
	Nsfw        bool        `gorm:"column:prsn_nsfw;type:tinyint(1) unsigned;not null" json:""`
	Fields      PersonField `gorm:"foreignKey:prsn_id;polymorphic:Owner;polymorphicValue:prsn" json:"fields"`
}

// TableName Person's table name
func (*Person) TableName() string {
	return TableNamePerson
}
