model

package
v0.0.0-...-a8c8c94 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	ID       primitive.ObjectID `bson:"_id" json:"_id"`
	Username string             `json:"username"`
	Password string             `json:"password"`
}

Credentials - User Credentials for the login

type Event

type Event struct {
	ID          primitive.ObjectID `bson:"_id" json:"id"`
	Name        string             `json:"name"`
	Description string             `json:"description"`
	TrackName   string             `json:"trackname"`
	StartDate   primitive.DateTime `json:"startdate"`
	EndDate     primitive.DateTime `json:"enddate"`
	Group       []struct {
		Name        string `json:"name"`
		JourneyTime []struct {
			Start primitive.DateTime `json:"start"`
			End   primitive.DateTime `json:"end"`
		} `json:"journeytime"`
	} `json:"group"`
}

Event - Model of a basic track

type Track

type Track struct {
	ID          primitive.ObjectID `bson:"_id" json:"_id"`
	Name        string             `json:"name"`
	Description string             `json:"description"`
}

Track - Model of a basic track

Jump to

Keyboard shortcuts

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