model

package
v0.0.0-...-e8be892 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Balance

type Balance struct {
	Subject uuid.UUID `gorm:"primaryKey"`
	Value   uint64
}

type Permission

type Permission struct {
	Subject uuid.UUID `gorm:"primaryKey"`
	Level   permlvl.PermissionLevel
}

type Punishment

type Punishment struct {
	ID        uint `gorm:"primaryKey"`
	Issuer    uuid.UUID
	Subject   uuid.UUID
	Type      moderation.PunishmentType
	Reason    string
	CreatedAt time.Time
	ExpiresAt sql.NullTime
}

type PvPStat

type PvPStat struct {
	Subject uuid.UUID `gorm:"primaryKey"`
	Kills   uint
	Deaths  uint
}

type UserProfile

type UserProfile struct {
	UUID         uuid.UUID `gorm:"primaryKey"`
	LastUsername string    `gorm:"uniqueIndex"`
}

Jump to

Keyboard shortcuts

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