models

package
v0.0.0-...-dea8209 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: Unlicense Imports: 1 Imported by: 0

Documentation

Overview

The models package implements the types and logic needed to represent our data model.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Booking

type Booking struct {
	ID       int
	Date     time.Time `json:"date" db:"date"`
	Customer string    `json:"customer" db:"customer"`
	Class    string    `json:"class" db:"class"`
}

Booking represents a customer's booking for a certain class

type Class

type Class struct {
	ID        string
	Name      string    `json:"name" db:"name"`
	StartDate time.Time `json:"start_date" db:"start_date"`
	EndDate   time.Time `json:"end_date" db:"end_date"`
	Capacity  int       `json:"capacity" db:"capacity"`
}

Class represents a class in a gym or studio

Jump to

Keyboard shortcuts

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