models

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 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
	Password       string
	Email          string
	DuplicateField Duplicate // Should not match with DuplicateName.
	SuperString    SuperString
	ReversedString 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 Duplicate

type Duplicate struct {
	B string
}

type SuperString

type SuperString string

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