model

package
v0.0.0-...-0020a55 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameArenaSolutions = "arenasolutions"
View Source
const TableNameCharactersParties = "charactersparties"
View Source
const TableNamePrincessArenaLineups = "princessarenalineups"

Variables

This section is empty.

Functions

This section is empty.

Types

type ArenaSolutions

type ArenaSolutions struct {
	ID          int32     `gorm:"column:id;type:integer;primaryKey;autoIncrement:true" json:"id"`
	DefenderID  int32     `gorm:"column:defender_id;type:integer;not null" json:"defender_id"`
	AttackerID  *int32    `gorm:"column:attacker_id;type:integer" json:"attacker_id"`
	IsRandom    bool      `gorm:"column:is_random;type:boolean;not null" json:"is_random"`
	Comment     *string   `gorm:"column:comment;type:text" json:"comment"`
	IsOutdated  bool      `gorm:"column:is_outdated;type:boolean;not null" json:"is_outdated"`
	UpdatedTime time.Time `gorm:"column:updated_time;type:timestamp with time zone;not null" json:"updated_time"`
	IsDeleted   bool      `gorm:"column:is_deleted;type:boolean;not null" json:"is_deleted"`
}

ArenaSolutions mapped from table <arenasolutions>

func (*ArenaSolutions) TableName

func (*ArenaSolutions) TableName() string

TableName ArenaSolutions's table name

type CharactersParties

type CharactersParties struct {
	ID         int32  `gorm:"column:id;type:integer;primaryKey;autoIncrement:true" json:"id"`
	Characters string `gorm:"column:characters;type:jsonb;not null" json:"characters"`
	IsDeleted  bool   `gorm:"column:is_deleted;type:boolean;not null" json:"is_deleted"`
}

CharactersParties mapped from table <charactersparties>

func (*CharactersParties) TableName

func (*CharactersParties) TableName() string

TableName CharactersParties's table name

type PrincessArenaLineups

type PrincessArenaLineups struct {
	ID              int32      `gorm:"column:id;type:integer;primaryKey;autoIncrement:true" json:"id"`
	UserID          string     `gorm:"column:user_id;type:character varying(128);not null" json:"user_id"`
	PrincessArenaID *time.Time `gorm:"column:princess_arena_id;type:date" json:"princess_arena_id"`
	DefenderID      *int32     `gorm:"column:defender_id;type:integer" json:"defender_id"`
	DefenderName    string     `gorm:"column:defender_name;type:character varying(128);not null" json:"defender_name"`
	FirstLineupID   *int32     `gorm:"column:first_lineup_id;type:integer" json:"first_lineup_id"`
	SecondLineupID  *int32     `gorm:"column:second_lineup_id;type:integer" json:"second_lineup_id"`
	ThirdLineupID   *int32     `gorm:"column:third_lineup_id;type:integer" json:"third_lineup_id"`
	IsOutdated      bool       `gorm:"column:is_outdated;type:boolean;not null" json:"is_outdated"`
	UpdatedTime     time.Time  `gorm:"column:updated_time;type:timestamp with time zone;not null" json:"updated_time"`
	IsDeleted       bool       `gorm:"column:is_deleted;type:boolean;not null" json:"is_deleted"`
}

PrincessArenaLineups mapped from table <princessarenalineups>

func (*PrincessArenaLineups) TableName

func (*PrincessArenaLineups) TableName() string

TableName PrincessArenaLineups's table name

Jump to

Keyboard shortcuts

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