models

package
v0.0.0-...-5910c8d Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: CC0-1.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accounts

type Accounts struct {
	gorm.Model
	Name           string `gorm:"not null" json:"name,omitempty"`
	Password       string `gorm:"not null" json:"password,omitempty"`
	Email          string `gorm:"not null;unique_index" json:"email,omitempty"`
	Type           string `gorm:"not null" json:"type,omitempty"`
	Premium_Points string `gorm:"not null;unique_index" json:"premium_points,omitempty"`
}

type Claims

type Claims struct {
	Email string `json:"email"`
	Name  string `json:"name"`
	jwt.RegisteredClaims
}

type Exception

type Exception struct {
	Message string `json:"message"`
}

type Players

type Players struct {
	gorm.Model
	Name       string `gorm:"not null" json:"name"`
	Group_ID   uint8  `gorm:"not null" json:"group_id"`
	Account_Id int16  `gorm:"not null" json:"account_id"`
	Level      int64  `gorm:"not null" json:"level"`
	Town_ID    uint8  `gorm:"not null" json:"town_id"`
	PosX       uint64 `gorm:"not null" json:"posx"`
	PosY       uint64 `gorm:"not null" json:"posy"`
	PosZ       int8   `gorm:"not null" json:"posz"`
}

type Reports

type Reports struct {
	gorm.Model
	Name       string `gorm:"not null" json:"name"`
	Position   string `gorm:"not null" json:"position"`
	Status     bool   `gorm:"defult:false" json:"status"`
	ID_account int64  `json:"id_acocunt"`
}

type Task

type Task struct {
	gorm.Model
	Title       string `gorm:"not null;unique_index" json:"title"`
	Description string `json:"description"`
	TypeTask    string `gorm:"not null" json:"type_task"`
	Done        bool   `gorm:"default:false" json:"done"`
	UserID      uint   `json:"user_id"`
}

Jump to

Keyboard shortcuts

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