model

package
v0.0.0-...-eaf9504 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DBVersion = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Clan

type Clan struct {
	ID           int `gorm:"primaryKey"`
	Name         string
	Tag          string `gorm:"index"`
	Language     string `gorm:"index"`
	CreationDate time.Time
	UpdatedDate  time.Time
	Players      []*Player
	PlayerIDs    []int `gorm:"-"`
	ClanLeader   *Player
	PlayerID     int `gorm:"index"`
}

type Player

type Player struct {
	ID                  int        `gorm:"primaryKey"`
	Nick                *string    `gorm:"index"`
	AccountCreationDate *time.Time `gorm:"index"`
	LastBattleDate      *time.Time `gorm:"index"`
	LastLogoutDate      *time.Time `gorm:"index"`
	NumberT10           *int       `gorm:"index"`
	RandomBattles       *int       `gorm:"index"`
	RandomWinRate       *float64   `gorm:"index"`
	RandomDivBattles    *int       `gorm:"index"`
	RandomDivWinRate    *float64   `gorm:"index"`
	RankedBattles       *int       `gorm:"index"`
	RankedWinRate       *float64   `gorm:"index"`
	CoopBattles         *int       `gorm:"index"`
	CoopWinRate         *float64   `gorm:"index"`
	OperBattles         *int       `gorm:"index"`
	OperWinRate         *float64   `gorm:"index"`
	HiddenProfile       *bool      `gorm:"index"`
	ClanID              *int       `gorm:"index"`
	ClanJoinDate        *time.Time
	Clan                *Clan
	PreviousClans       []PreviousClan
}

type PreviousClan

type PreviousClan struct {
	JoinDate  time.Time `gorm:"index"`
	LeaveDate time.Time `gorm:"index"`
	ClanID    int       `gorm:"index"`
	Clan      *Clan
	PlayerID  int `gorm:"index"`
	Player    *Player
}

type Scan

type Scan struct {
	StartDate    time.Time
	EndDate      time.Time
	ApiCallCount int
}

type Version

type Version struct {
	Name    string `gorm:"primaryKey"`
	Version int
}

type WowsVersion

type WowsVersion struct {
	gorm.Model
	Version     string    `gorm:"primaryKey"`
	ReleaseDate time.Time `gorm:"index"`
}

Jump to

Keyboard shortcuts

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