Implemented settings for properties of reservation. Fixed bugs on empty database.

This commit is contained in:
2023-12-08 17:02:00 +01:00
parent d7e33e4342
commit 55ca93406a
14 changed files with 456 additions and 21 deletions
+8 -3
View File
@@ -13,15 +13,20 @@ CREATE TABLE "user" (
password VARCHAR NOT NULL,
full_name VARCHAR,
email VARCHAR,
admin bool,
get_emails bool
admin bool NOT NULL default false,
get_emails bool NOT NULL default false
);
CREATE TYPE slot_type AS ENUM ('Quarter', 'Half', 'Hour', 'Day');
CREATE TABLE property (
id SERIAL PRIMARY KEY,
name VARCHAR NOT NULL,
description VARCHAR,
price NUMERIC(9, 2) NOT NULL
price NUMERIC(9, 2) NOT NULL,
slot slot_type NOT NULL default 'Hour',
allow_multi BOOLEAN NOT NULL default true,
active BOOLEAN NOT NULL default true
);
CREATE TYPE message_type AS ENUM ('NewReservation', 'NewReservationCust', 'ReservationApp', 'ReservationCanceled');