account_mysql

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// 性别定义,0-未知,1-男,2-女
	GenderUnknown = 0
	GenderMan     = 1
	GenderWoMan   = 2

	// 账号状态,0-禁用,1-启用,2-未通过短信验证
	StatusDisable        = 0
	StatusEnable         = 1
	StatusNotSmsVerified = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	AccountCode  sql.NullString `gorm:"column:account_code;default null;unique;type varchar(36)"`
	AccountId    string         `gorm:"column:account_id;primary_key;type char(36)"`
	Name         string         `gorm:"column:name;type varchar(50)"`
	Avatar       string         `gorm:"column:avatar;type varchar(255);default ''"`
	Gender       int32          `gorm:"column:gender;not null;default 0"`
	Email        string         `gorm:"column:email;not null;type varchar(255);default ''"`
	Mobile       sql.NullString `gorm:"column:mobile;default null;type varchar(20)"`
	CountryCode  sql.NullString `gorm:"column:country_code;default null;type char(4)"`
	Password     string         `gorm:"column:password;not null;type char(40)"`
	PasswordSalt string         `gorm:"column:password_salt;not null;type char(40)"`
	Status       int32          `gorm:"column:status;not null;default 1"`
	common_mysql.ColumnCreateModifyTime
}

func (*Account) TableName

func (a *Account) TableName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL