// 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/dal/utiltype"
)

const TableNameMember = "chii_members"

// Member mapped from table <chii_members>
type Member struct {
	ID            uint32                     `gorm:"column:uid;type:mediumint(8) unsigned;primaryKey;autoIncrement:true" json:""`
	Username      string                     `gorm:"column:username;type:char(15);not null" json:""`
	Nickname      string                     `gorm:"column:nickname;type:varchar(30);not null" json:""`
	Avatar        string                     `gorm:"column:avatar;type:varchar(255);not null" json:""`
	Groupid       uint8                      `gorm:"column:groupid;type:smallint(6) unsigned;not null" json:""`
	Regdate       int64                      `gorm:"column:regdate;type:int(10) unsigned;not null" json:""`
	Lastvisit     uint32                     `gorm:"column:lastvisit;type:int(10) unsigned;not null" json:""`
	Lastactivity  uint32                     `gorm:"column:lastactivity;type:int(10) unsigned;not null" json:""`
	Lastpost      uint32                     `gorm:"column:lastpost;type:int(10) unsigned;not null" json:""`
	Dateformat    string                     `gorm:"column:dateformat;type:char(10);not null" json:""`
	Timeformat    bool                       `gorm:"column:timeformat;type:tinyint(1);not null" json:""`
	Timeoffset    string                     `gorm:"column:timeoffset;type:char(4);not null" json:""`
	Newpm         bool                       `gorm:"column:newpm;type:tinyint(1);not null" json:""`
	NewNotify     uint16                     `gorm:"column:new_notify;type:smallint(6) unsigned;not null;comment:新提醒" json:""` // 新提醒
	Sign          utiltype.HTMLEscapedString `gorm:"column:sign;type:varchar(255);not null" json:""`
	PasswordCrypt []byte                     `gorm:"column:password_crypt;type:char(64);not null" json:""`
	Email         string                     `gorm:"column:email;type:char(50);not null" json:""`
	Acl           string                     `gorm:"column:acl;type:mediumtext;not null" json:""`
	Fields        MemberField                `gorm:"foreignKey:uid;references:uid" json:"fields"`
}

// TableName Member's table name
func (*Member) TableName() string {
	return TableNameMember
}
