64 lines
1.1 KiB
Go
64 lines
1.1 KiB
Go
|
// Code generated by sqlc. DO NOT EDIT.
|
||
|
// versions:
|
||
|
// sqlc v1.26.0
|
||
|
|
||
|
package db
|
||
|
|
||
|
import (
|
||
|
"github.com/jackc/pgx/v5/pgtype"
|
||
|
)
|
||
|
|
||
|
type Reservation struct {
|
||
|
ID int32
|
||
|
FirstName string
|
||
|
LastName string
|
||
|
Email string
|
||
|
Phone string
|
||
|
StartDate pgtype.Date
|
||
|
EndDate pgtype.Date
|
||
|
RoomID int32
|
||
|
CreatedAt pgtype.Timestamp
|
||
|
UpdatedAt pgtype.Timestamp
|
||
|
Processed int32
|
||
|
}
|
||
|
|
||
|
type Restriction struct {
|
||
|
ID int32
|
||
|
RestrictionName string
|
||
|
CreatedAt pgtype.Timestamp
|
||
|
UpdatedAt pgtype.Timestamp
|
||
|
}
|
||
|
|
||
|
type Room struct {
|
||
|
ID int32
|
||
|
RoomName string
|
||
|
CreatedAt pgtype.Timestamp
|
||
|
UpdatedAt pgtype.Timestamp
|
||
|
}
|
||
|
|
||
|
type RoomRestriction struct {
|
||
|
ID int32
|
||
|
StartDate pgtype.Date
|
||
|
EndDate pgtype.Date
|
||
|
RoomID int32
|
||
|
ReservationID pgtype.Int4
|
||
|
RestrictionID int32
|
||
|
CreatedAt pgtype.Timestamp
|
||
|
UpdatedAt pgtype.Timestamp
|
||
|
}
|
||
|
|
||
|
type SchemaMigration struct {
|
||
|
Version string
|
||
|
}
|
||
|
|
||
|
type User struct {
|
||
|
ID int32
|
||
|
FirstName string
|
||
|
LastName string
|
||
|
Email string
|
||
|
Password string
|
||
|
AccessLevel int32
|
||
|
CreatedAt pgtype.Timestamp
|
||
|
UpdatedAt pgtype.Timestamp
|
||
|
}
|