models

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 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
	Name     string
	Email    string
	Password string
}

Account represents the data model for account.

type Data

type Data struct {
	ID int
}

Data represents a piece of data.

type User

type User struct {
	UserID   int
	Username string
	UserData UserData // The fields of UserData operate at depth level 2.
}

User represents the data model for a user.

type UserData

type UserData struct {
	Options map[string]interface{}
	Data    Data // The fields of Data operate at depth level 3.
}

UserData represents data owned by the user.

Jump to

Keyboard shortcuts

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