entity

package
v0.0.0-...-a20cc02 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColelctionPrimaryKey

type ColelctionPrimaryKey struct {
	UserID int64
	CubeID int64
}

type Collection

type Collection struct {
	Cube
	Owned_at time.Time
	Quantity int64
}

type Cube

type Cube struct {
	ID    int64  `db:"id"`
	Name  string `db:"name"`
	Brand string `db:"brand"`
	Shape string `db:"shape"`
}

type OwnedBy

type OwnedBy struct {
	UserID  int64
	CubeID  int64
	OwnedAt time.Time
}

type User

type User struct {
	ID       int64  `db:"id"`
	Email    string `db:"email"`
	Name     string `db:"name"`
	Password string `db:"password"`
	RoleID   int64
}

Jump to

Keyboard shortcuts

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