milpacs

package
v0.0.0-...-5bbae15 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Award

type Award struct {
	AwardId           uint64 `gorm:"primaryKey"`
	Title             string
	AwardImage        uint
	AwardGroupID      uint64
	DisplayOrder      uint
	MaterializedOrder uint
}

func (*Award) ImageURL

func (award *Award) ImageURL() string

func (Award) TableName

func (Award) TableName() string

type AwardRecord

type AwardRecord struct {
	RecordID     uint64
	RelationID   uint64
	AwardID      uint64
	FromUserID   uint64
	Details      string
	AwardDate    uint
	CitationDate uint
	Award        Award `gorm:"foreignKey:AwardID;references:AwardId"`
}

func (AwardRecord) TableName

func (AwardRecord) TableName() string

type CustomFields

type CustomFields struct {
	JoinDate  string `json:"joinDate"`
	PromoDate string `json:"promoDate"`
}

type Position

type Position struct {
	PositionId        uint64 `gorm:"primaryKey"`
	PositionTitle     string
	PositionGroupId   uint64
	DisplayOrder      uint
	MaterializedOrder uint
	ExtraGroupIds     string
	PossibleSecondary bool
}

func (Position) TableName

func (Position) TableName() string

type Profile

type Profile struct {
	RelationId           uint64 `gorm:"primaryKey"`
	RosterId             uint64
	UserID               uint64
	Username             string
	RealName             string
	PositionID           uint64
	SecondaryPositionIds string
	RankID               uint64
	Bio                  string
	UniformDate          int
	AddedDate            int
	CustomFields         string

	XfUser           XfUser                     `gorm:"foreignKey:UserID;references:user_id"`
	Primary          Position                   `gorm:"foreignKey:PositionID;references:position_id"`
	Rank             Rank                       `gorm:"foreignKey:RankID;references:rank_id"`
	Records          []Record                   `gorm:"foreignKey:RelationID"`
	AwardRecords     []AwardRecord              `gorm:"foreignKey:RelationID"`
	ConnectedAccount []xenforo.ConnectedAccount `gorm:"foreignKey:UserID;references:user_id"`
}

func (Profile) TableName

func (Profile) TableName() string

func (*Profile) UniformUrl

func (profile *Profile) UniformUrl() string

func (*Profile) UnmarshalCustomFields

func (profile *Profile) UnmarshalCustomFields() CustomFields

type Rank

type Rank struct {
	RankId        uint64 `gorm:"primaryKey"`
	Title         string
	RankImage     uint
	DisplayOrder  uint
	ExtraGroupIds string
}

func (*Rank) ImageURL

func (rank *Rank) ImageURL() string

func (Rank) TableName

func (Rank) TableName() string

type Record

type Record struct {
	RecordID     uint64 `gorm:"primaryKey"`
	RelationID   uint64
	Details      string
	RecordDate   uint
	CitationDate uint
	RecordTypeId uint64
}

func (Record) TableName

func (Record) TableName() string

type RecordType

type RecordType struct {
	RecordTypeId uint64 `gorm:"primaryKey"`
	Title        string
	DisplayOrder uint
}

func (RecordType) TableName

func (RecordType) TableName() string

type Roster

type Roster struct {
	RosterID          uint64 `gorm:"primaryKey"`
	Title             string
	Description       string
	CreateDate        uint
	LastUpdateDate    uint
	DisplayOrder      uint
	Active            bool
	PositionCache     string
	FieldCache        string
	DefaultPositionId uint
	ExtraGroupIds     string

	Profiles []Profile
}

func (Roster) TableName

func (Roster) TableName() string

type XfUser

type XfUser struct {
	UserID   uint64 `gorm:"primaryKey"`
	Username string
}

func (XfUser) TableName

func (XfUser) TableName() string

Jump to

Keyboard shortcuts

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