Current table design
This is the current design of our table. We only have one table as it seems unnecessary to add complexity.
CREATE TABLE IF NOT EXISTS bookings (
id UUID PRIMARY KEY default get_random_uuid(),
intra TEXT NOT NULL,
room_name TEXT NOT NULL,
begin_at TIMESTAMPTZ NOT NULL,
end_at TIMESTAMPTZ NOT NULL,
is_staff BOOLEAN NOT NULL DEFAULT FALSE
);
Description of rows
id regular uuid for all insertions;
intra 42 intra username;
room_name name of the meeting room;
begin_at UNIX timestamp declaring the beginning of the booking session;
end_at UNIX timestamp declaring the end of the booking session;
is_staff boolean to separate staff from students (adding admin powers later to cancel bookings).
Current table design
This is the current design of our table. We only have one table as it seems unnecessary to add complexity.
Description of rows
idregular uuid for all insertions;intra42 intra username;room_namename of the meeting room;begin_atUNIX timestamp declaring the beginning of the booking session;end_atUNIX timestamp declaring the end of the booking session;is_staffboolean to separate staff from students (adding admin powers later to cancel bookings).