po

package
v0.0.0-...-91e59be Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameUser = "user"

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID        int64  `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true;comment:id" json:"id"`                                      // id
	UserName  string `gorm:"column:user_name;type:varchar(64);not null;uniqueIndex:uk_user_name,priority:1;comment:user_name" json:"user_name"` // user_name
	NickName  string `gorm:"column:nick_name;type:varchar(64);not null;comment:nick_name" json:"nick_name"`                                     // nick_name
	Email     string `gorm:"column:email;type:varchar(64);not null;uniqueIndex:uk_email,priority:1;comment:email" json:"email"`                 // email
	Password  string `gorm:"column:password;type:varchar(64);not null;comment:password" json:"password"`                                        // password
	Mobile    string `gorm:"column:mobile;type:varchar(16);not null;comment:mobile" json:"mobile"`                                              // mobile
	CreatedAt int64  `gorm:"column:created_at;type:bigint(20);not null;comment:create time" json:"created_at"`                                  // create time
	UpdatedAt int64  `gorm:"column:updated_at;type:bigint(20);not null;comment:update time" json:"updated_at"`                                  // update time
	DeletedAt int64  `gorm:"column:deleted_at;type:bigint(20);not null;comment:delete time" json:"deleted_at"`                                  // delete time
}

User mapped from table <user>

func (*User) TableName

func (*User) TableName() string

TableName User's table name

Jump to

Keyboard shortcuts

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