models

package
v0.0.0-...-6ed914b Latest Latest
Warning

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

Go to latest
Published: May 2, 2020 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 JWT

type JWT struct {
	Token string `json:"token"`
}

type Todo

type Todo struct {
	ID          primitive.ObjectID `bson:"_id" json:"id,omitempty"`
	TITLE       string             `json:"title"`
	DESCRIPTION string             `json:"description"`
	PRIORITY    int                `json:"priority"`
	DONE        bool               `json:"done"`
	CreatedAt   time.Time          `bson:"created_at" json:"created_at,omitempty"`
	UpdatedAt   time.Time          `bson:"updated_at" json:"updated_at,omitempty"`
}

type User

type User struct {
	ID       primitive.ObjectID `bson:"_id" json:"id,omitempty"`
	EMAIL    string             `json:"email"`
	PASSWORD string             `json:"password"`
}

Jump to

Keyboard shortcuts

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