models

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: GPL-3.0, MIT-0 Imports: 0 Imported by: 0

Documentation

Overview

Package models contains data storage models (i.e database).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	ID       int    `api:"id"`
	Name     string `api:"name"`
	Password string
	Email    string `other:"email"`
}

Account represents the data model for account.

type User

type User struct {
	UserID   int    `api:"user_id"`
	Username string `api:"username,omitempty"`
}

User represents the data model for a user.

Jump to

Keyboard shortcuts

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