Implemented settings for properties of reservation. Fixed bugs on empty database.
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user