model

package
v0.0.0-...-205331c Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ban

type Ban struct {
	ID        int    `db:"id"`
	PlayerID  int    `db:"playerId"`
	Reason    string `db:"reason"`
	ExpireAt  int64  `db:"expireAt"`
	CreatedAt int64  `db:"createdAt"`
}

func (Ban) Remaining

func (b Ban) Remaining() (days int, hours int, minutes int)

type CreateUser

type CreateUser struct {
	DisplayName string `db:"displayName"`
	XUID        string `db:"xuid"`
}

type User

type User struct {
	ID          int    `db:"id"`
	DisplayName string `db:"displayName"`
	Name        string `db:"name"`
	XUID        string `db:"xuid"`

	RankName     string `db:"rankName"`
	RankExpireAt int64  `db:"rankExpireAt"`

	Exp int64 `db:"exp"`

	RegisteredAt int64 `db:"registeredAt"`
	LastSeenAt   int64 `db:"lastSeenAt"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳