61 lines
1.1 KiB
Go
Raw Normal View History

2024-06-30 19:35:59 +02:00
package models
2024-07-07 22:32:32 +02: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 19:35:59 +02:00
type Reservation struct {
2024-07-07 22:32:32 +02:00
CreatedAt time.Time
UpdatedAt time.Time
StartDate time.Time
EndDate time.Time
2024-06-30 19:35:59 +02:00
FirstName string
LastName string
Email string
Phone string
2024-07-07 22:32:32 +02: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 22:57:07 +02:00
ReservationID int
2024-07-07 22:32:32 +02:00
RestrictionID int
2024-06-30 19:35:59 +02:00
}