models

package
v0.0.0-...-e6a2447 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2022 License: 0BSD Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Appointment

type Appointment struct {
	ID               string    `json:"ID,omitempty" bson:"_id,omitempty"`
	Start            time.Time `binding:"required"`
	End              time.Time `binding:"required"`
	Coach            string    `binding:"required"`
	User             string    `binding:"required"`
	Status           dto.AppointmentStatus
	RescheduledStart *time.Time
	RescheduledEnd   *time.Time
}

type AppointmentCollection

type AppointmentCollection struct {
	*mongo.Collection
}

func NewAppointmentCollection

func NewAppointmentCollection(db lib.Database) AppointmentCollection

type CoachAvailability

type CoachAvailability struct {
	ID    string `json:"id,omitempty" bson:"_id"`
	Start string
	End   string
	Name  string
}

type CoachAvailabilityCollection

type CoachAvailabilityCollection struct {
	*mongo.Collection
}

func NewCoachAvailabilityCollection

func NewCoachAvailabilityCollection(db lib.Database) CoachAvailabilityCollection

Jump to

Keyboard shortcuts

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