authuserdao

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID         uuid.UUID    // PK, NOT NULL
	Username   string       // UNIQUE, NOT NULL
	Password   string       // NOT NULL
	Email      db.Email     // NOT NULL
	Role       jelly.Role   // NOT NULL
	Created    db.Timestamp // NOT NULL
	Modified   db.Timestamp // NOT NULL
	LastLogout db.Timestamp // NOT NULL DEFAULT NOW()
	LastLogin  db.Timestamp // NOT NULL
}

User is a pre-rolled DB model version of a jelly.AuthUser.

func NewUserFromAuthUser

func NewUserFromAuthUser(au jelly.AuthUser) User

func (User) AuthUser

func (u User) AuthUser() jelly.AuthUser

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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