models

package
v0.0.0-...-444f9a4 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Categories []Category

Functions

This section is empty.

Types

type Category

type Category struct {
	gorm.Model
	Name string
}

func FindCategory

func FindCategory(name string) (*Category, error)

func FindCategoryByID

func FindCategoryByID(id uint) (*Category, error)

type Note

type Note struct {
	gorm.Model
	Title      string
	Note       string
	CategoryID uint
	Keywords   string
	Category   Category
}

type User

type User struct {
	gorm.Model
	FirstName string
	LastName  string
	Email     string `gorm:"unique"`
	Password  string
}

Jump to

Keyboard shortcuts

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