models

package
v0.0.0-...-515cb47 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveOneUser

func SaveOneUser(data interface{}) error

Types

type User

type User struct {
	gorm.Model
	Username     string `gorm:"column:username;unique_index"`
	Email        string `gorm:"column:email;unique_index"`
	PasswordHash string `gorm:"column:password;notNull"`
	IsAdmin      bool   `gorm:"column:admin"`
}

Jump to

Keyboard shortcuts

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