2024-06-30 17:35:59 +00:00
|
|
|
package models
|
|
|
|
|
2024-07-07 20:32:32 +00:00
|
|
|
import "time"
|
|
|
|
|
|
|
|
// 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
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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
|
|
|
}
|