models

package
v1.0.123 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bungalow added in v1.0.106

type Bungalow struct {
	ID           int
	BungalowName string
	CreatedAt    time.Time
	UpdatedAt    time.Time
}

Bungalow is the model of bungalow data

type BungalowRestriction added in v1.0.107

type BungalowRestriction struct {
	ID            int
	StartDate     time.Time
	EndDate       time.Time
	BungalowID    int
	ReservationID int
	RestrictionID int
	CreatedAt     time.Time
	UpdatedAt     time.Time
	Bungalow      Bungalow
	Reservation   Reservation
	Restriction   Restriction
}

BungalowRestriction is a model of a bungalow restriction

type Reservation added in v1.0.67

type Reservation struct {
	ID         int
	FullName   string
	Email      string
	Phone      string
	StartDate  time.Time
	EndDate    time.Time
	BungalowID int
	CreatedAt  time.Time
	UpdatedAt  time.Time
	Bungalow   Bungalow
	Processed  int
}

Reservation is the model of a reservation

type Restriction added in v1.0.107

type Restriction struct {
	ID              int
	RestrictionName string
	CreatedAt       time.Time
	UpdatedAt       time.Time
}

Restriction is the model of a restriction

type TemplateData

type TemplateData struct {
	StringMap map[string]string
	IntMap    map[string]int
	FloatMap  map[string]float64
	Data      map[string]interface{}
	CSRFToken string
	Flash     string
	Warning   string
	Error     string
	Form      *forms.Form
}

TemplateData holds any kind of data sent from handlers to templates

type User added in v1.0.106

type User struct {
	ID        int
	FullName  string
	Email     string
	Password  string
	Role      int
	CreatedAt time.Time
	UpdatedAt time.Time
}

User is the model of user data

Jump to

Keyboard shortcuts

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