models

package
v0.0.0-...-80fbdfb Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserId

func NewUserId() uuid.UUID

Types

type DBUser

type DBUser struct {
	gorm.Model
	Id           uuid.UUID `gorm:"primary_key;type:uuid;"`
	Phone        string    `gorm:"<-:create;uniqueIndex"`
	PasswordHash []byte
}

func NewAdmin

func NewAdmin(phone, pass string, grpcClient userpb.UserServiceClient) *DBUser

func NewUser

func NewUser(phone, pass string, grpcClient userpb.UserServiceClient) *DBUser

type ResetPass

type ResetPass struct {
	gorm.Model
	VerifyCode string
	UserId     uuid.UUID `gorm:"type:uuid;index"`
}

Jump to

Keyboard shortcuts

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