2024-06-30 17:35:59 +00:00
|
|
|
package models
|
|
|
|
|
2024-07-16 11:55:35 +00:00
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
2024-07-07 20:32:32 +00:00
|
|
|
|
|
|
|
// User is the user model
|
|
|
|
type User struct {
|
|
|
|
CreatedAt time.Time
|
|
|
|
UpdatedAt time.Time
|
|
|
|
FirstName string
|
|
|
|
LastName string
|
|
|
|
Email string
|
|
|
|
Password string
|
|
|
|
ID int
|
|
|
|
AccessLevel int
|
|
|
|
}
|
|
|
|
|
|
|
|
// Room is the room model
|
|
|
|
type Room struct {
|
|
|
|
CreatedAt time.Time
|
|
|
|
UpdatedAt time.Time
|
|
|
|
RoomName string
|
|
|
|
ID int
|
|
|
|
}
|
|
|
|
|
|
|
|
// Restriction is the restriction model
|
|
|
|
type Restriction struct {
|
|
|
|
CreatedAt time.Time
|
|
|
|
UpdatedAt time.Time
|
|
|
|
RestrictionName string
|
|
|
|
ID int
|
|
|
|
}
|
|
|
|
|
|
|
|
// Reservation is the reservation model
|
2024-06-30 17:35:59 +00:00
|
|
|
type Reservation struct {
|
2024-07-07 20:32:32 +00:00
|
|
|
CreatedAt time.Time
|
|
|
|
UpdatedAt time.Time
|
|
|
|
StartDate time.Time
|
|
|
|
EndDate time.Time
|
2024-06-30 17:35:59 +00:00
|
|
|
FirstName string
|
|
|
|
LastName string
|
|
|
|
Email string
|
|
|
|
Phone string
|
2024-07-07 20:32:32 +00:00
|
|
|
Room Room
|
|
|
|
ID int
|
|
|
|
RoomID int
|
2024-07-24 12:20:30 +00:00
|
|
|
Processed int
|
2024-07-07 20:32:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// RoomRestriction is the room restriction model
|
|
|
|
type RoomRestriction struct {
|
|
|
|
StartDate time.Time
|
|
|
|
EndDate time.Time
|
|
|
|
CreatedAt time.Time
|
|
|
|
UpdatedAt time.Time
|
|
|
|
Room Room
|
|
|
|
Restriction Restriction
|
|
|
|
ID int
|
|
|
|
RoomID int
|
2024-07-09 20:57:07 +00:00
|
|
|
ReservationID int
|
2024-07-07 20:32:32 +00:00
|
|
|
RestrictionID int
|
2024-06-30 17:35:59 +00:00
|
|
|
}
|
2024-07-16 11:55:35 +00:00
|
|
|
|
|
|
|
// MailData holds an email message
|
|
|
|
type MailData struct {
|
2024-07-17 20:34:03 +00:00
|
|
|
To string
|
|
|
|
From string
|
|
|
|
Subject string
|
|
|
|
Content string
|
|
|
|
Template string
|
2024-07-16 11:55:35 +00:00
|
|
|
}
|