models

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: MIT 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
	Name     string
	Password string
	Email    string
}

Account represents the data model for account.

type Data

type Data struct {
	ID int
}

Data represents a piece of data. The fields of UserData operate at depth level 2.

type User

type User struct {
	UserID   int
	Username string
	UserData UserData
}

User represents the data model for a user.

type UserData

type UserData struct {
	Options map[string]interface{}
	Data    Data
}

UserData represents data owned by the user. The fields of UserData operate at depth level 1.

Jump to

Keyboard shortcuts

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