model

package
v0.0.0-...-99ab738 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRegister

func IsRegister(db *gorm.DB, phone string) bool

Types

type User

type User struct {
	ID            int64  `gorm:"primaryKey"`
	Phone         string `gorm:"type:varchar(20);unique;not null;"`
	Password      string `gorm:"type:varchar(100);not null;default:''"`
	Name          string `gorm:"type:varchar(100)"`
	Avatar        string `gorm:"type:varchar(255)"`
	LastLoginTime int64  `gorm:"autoCreatedTime"`
	CreatedAt     int64  `gorm:"autoCreatedTime"`
	UpdatedAt     int64  `gorm:"autoCreatedTime"`
}

用户表

Jump to

Keyboard shortcuts

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