models

package
v0.0.0-...-3cdfc1b Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

type Book struct {
	gorm.Model
	Title      string `json:"title"`
	Price      uint   `json:"price"`
	Annotation string `json:"annotation"`
	Category   string `json:"category"`
}

type Claims

type Claims struct {
	jwt.StandardClaims
}

type User

type User struct {
	gorm.Model
	Name     string `json:"name"`
	Email    string `gorm:"unique" json:"email"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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