user

package
v0.0.0-...-bcd2c7c Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const UserTableName = "user"

Variables

This section is empty.

Functions

This section is empty.

Types

type UserTable

type UserTable struct {
	ID         string     `gorm:"column:id;primary_key" json:"id"`
	Username   string     `gorm:"column:username;unique" json:"username"`
	Nickname   string     `gorm:"column:nickname" json:"nickname"`
	Password   string     `gorm:"column:password" json:"password"`
	Email      string     `gorm:"column:email" json:"email"`
	Role       string     `gorm:"column:role" json:"role"`
	CreateTime *time.Time `gorm:"column:create_time;default:CURRENT_TIMESTAMP;NOT NULL" json:"create_time"`
}

func NewUserTable

func NewUserTable(username string, password string, role string, email string) *UserTable

Jump to

Keyboard shortcuts

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