19 lines
559 B
Go
Executable File
19 lines
559 B
Go
Executable File
package models
|
|
|
|
type (
|
|
Table struct {
|
|
Id int64 `db:"id" json:"id"`
|
|
Name int64 `db:"name" json:"name"`
|
|
MaxPeople int64 `db:"max_people" json:"max_people"`
|
|
Room string `db:"room" json:"room"`
|
|
}
|
|
|
|
Booking struct {
|
|
Id int64 `db:"id" json:"id"`
|
|
IdTables int64 `db:"id_tables" json:"id_tables"`
|
|
ReservationDatetime string `db:"reservation" json:"reservation"`
|
|
TimeReserve string `db:"time_reserve" json:"time_reserve"`
|
|
WhoBooked string `db:"who_booked" json:"who_booked"`
|
|
}
|
|
)
|