model

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: GPL-3.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Street     string `json:"street,omitempty" bson:"street,omitempty"`
	Number     string `json:"number,omitempty" bson:"number,omitempty"`
	City       string `json:"city,omitempty" bson:"city,omitempty"`
	PostalCode string `json:"postal_code,omitempty" bson:"postal_code,omitempty"`
}

type Athlete

type Athlete struct {
	Identifier    primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`                     // automatically
	Name          string             `json:"name,omitempty" bson:"name,omitempty"`                   // DSV-File + PDF
	Firstname     string             `json:"firstname,omitempty" bson:"firstname,omitempty"`         // DSV-File + (PDF) 	!needs update!
	Lastname      string             `json:"lastname,omitempty" bson:"lastname,omitempty"`           // DSV-File + (PDF) 	!needs update!
	Alias         []string           `json:"alias,omitempty" bson:"alias,omitempty"`                 // semiautomatically
	Year          int                `json:"year,omitempty" bson:"year,omitempty"`                   // DSV-File + PDF
	Gender        string             `json:"gender,omitempty" bson:"gender,omitempty"`               // DSV-File + (PDF) 	!needs update!
	DsvId         int                `json:"dsv_id,omitempty" bson:"dsv_id,omitempty"`               // DSV-File 			!needs update!
	TeamId        primitive.ObjectID `json:"-" bson:"team_id,omitempty"`                             // automatically
	Team          Team               `json:"team,omitempty" bson:"-"`                                // DSV-File + PDF
	FirstMeeting  string             `json:"first_meeting,omitempty" bson:"first_meeting,omitempty"` // automatically
	Participation []string           `json:"participation,omitempty" bson:"participation,omitempty"` // automatically
}

type ColorSet

type ColorSet struct {
	Primary   string `json:"primary,omitempty" bson:"primary,omitempty"`
	Secondary string `json:"secondary,omitempty" bson:"secondary,omitempty"`
	Contrast  string `json:"contrast,omitempty" bson:"contrast,omitempty"`
}

type Contact

type Contact struct {
	Name  string `json:"name,omitempty" bson:"name,omitempty"`
	EMail string `json:"email,omitempty" bson:"email,omitempty"`
	Phone string `json:"phone,omitempty" bson:"phone,omitempty"`
	Fax   string `json:"fax,omitempty" bson:"fax,omitempty"`
}

type Team

type Team struct {
	Identifier    primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`                     // automatically
	Name          string             `json:"name,omitempty" bson:"name,omitempty"`                   // DSV-File + PDF
	Alias         []string           `json:"alias,omitempty" bson:"alias,omitempty"`                 // semiautomatically
	Country       string             `json:"country,omitempty" bson:"country,omitempty"`             // DSV-File 			!needs update!
	DsvId         int                `json:"dsv_id,omitempty" bson:"dsv_id,omitempty"`               // DSV-File 			!needs update!
	StateId       int                `json:"state_id,omitempty" bson:"state_id,omitempty"`           // DSV-File 			!needs update!
	Address       Address            `json:"address,omitempty" bson:"address,omitempty"`             // manually
	Contact       Contact            `json:"contact,omitempty" bson:"contact,omitempty"`             // manually
	Website       string             `json:"website,omitempty" bson:"website,omitempty"`             // manually
	LogoUrl       string             `json:"logo_url,omitempty" bson:"logo_url,omitempty"`           // manually
	ColorSet      ColorSet           `json:"color_set,omitempty" bson:"color_set,omitempty"`         // manually
	FirstMeeting  string             `json:"first_meeting,omitempty" bson:"first_meeting,omitempty"` // automatically
	Participation []string           `json:"participation,omitempty" bson:"participation,omitempty"` // automatically
}

Jump to

Keyboard shortcuts

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