// 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 TableNameCharacter = "chii_characters"

// Character mapped from table <chii_characters>
type Character struct {
	ID       uint32      `gorm:"column:crt_id;type:mediumint(8) unsigned;primaryKey;autoIncrement:true" json:""`
	Name     string      `gorm:"column:crt_name;type:varchar(255);not null" json:""`
	Role     uint8       `gorm:"column:crt_role;type:tinyint(4) unsigned;not null;comment:角色，机体，组织。。" json:""` // 角色，机体，组织。。
	Infobox  string      `gorm:"column:crt_infobox;type:mediumtext;not null" json:""`
	Summary  string      `gorm:"column:crt_summary;type:mediumtext;not null" json:""`
	Img      string      `gorm:"column:crt_img;type:varchar(255);not null" json:""`
	Comment  uint32      `gorm:"column:crt_comment;type:mediumint(9) unsigned;not null" json:""`
	Collects uint32      `gorm:"column:crt_collects;type:mediumint(8) unsigned;not null" json:""`
	Dateline uint32      `gorm:"column:crt_dateline;type:int(10) unsigned;not null" json:""`
	Lastpost uint32      `gorm:"column:crt_lastpost;type:int(11) unsigned;not null" json:""`
	Lock     int8        `gorm:"column:crt_lock;type:tinyint(4);not null" json:""`
	ImgAnidb string      `gorm:"column:crt_img_anidb;type:varchar(255);not null" json:""`         // Deprecated
	AnidbID  uint32      `gorm:"column:crt_anidb_id;type:mediumint(8) unsigned;not null" json:""` // Deprecated
	Ban      uint8       `gorm:"column:crt_ban;type:tinyint(3) unsigned;not null" json:""`
	Redirect uint32      `gorm:"column:crt_redirect;type:int(10) unsigned;not null" json:""`
	Nsfw     bool        `gorm:"column:crt_nsfw;type:tinyint(1) unsigned;not null" json:""`
	Fields   PersonField `gorm:"foreignKey:crt_id;polymorphic:Owner;polymorphicValue:crt" json:"fields"`
}

// TableName Character's table name
func (*Character) TableName() string {
	return TableNameCharacter
}
