diff options
Diffstat (limited to 'server/schema.sql')
-rw-r--r-- | server/schema.sql | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/server/schema.sql b/server/schema.sql new file mode 100644 index 0000000..b2dd533 --- /dev/null +++ b/server/schema.sql @@ -0,0 +1,15 @@ +create table guest ( + id serial PRIMARY KEY, + first_name varchar(64), + last_name varchar(64), + attendance varchar(8) DEFAULT 'no' NOT NULL, + email varchar(64), + message varchar(128), + party_size integer +); + +create table party ( + guest_id integer NOT NULL references guests(id) ON DELETE CASCADE, + first_name varchar(64), + last_name varchar(64) +);
\ No newline at end of file |