models

package
v0.0.0-...-9799b74 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

type Claims struct {
	Email    string `json:"email"`
	Password string `json:"password"`
	jwt.StandardClaims
}

type Credentials

type Credentials struct {
	Password string `json:"password"`
	Email    string `json:"email"`
}

type Note

type Note struct {
	base.Base
	Note     string    `json:"note,omitempty"`
	UserId   uuid.UUID `json:"userId,omitempty"`
	Complete bool      `gorm:"default:false" json:"complete"`
	Public   bool      `gorm:"default:false" json:"public"`
}

type User

type User struct {
	base.Base
	Password     string `json:"password"`
	Email        string `gorm:"type:varchar(100);unique" json:"email"`
	Name         string `json:"name"`
	Verification bool
}

Jump to

Keyboard shortcuts

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