Stage changes to implement postgres DB as well as initialise its state

This commit is contained in:
Nick Bland
2021-11-05 12:16:04 +10:00
parent 78311c8cb3
commit 0b6fd3cd43
2 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
-- Create Subscriptions Table
CREATE TABLE Subscriptions(
id uuid NOT NULL,
PRIMARY KEY (id),
email TEXT NOT NULL UNIQUE,
name TEXT NOT NULL,
subscribed_at timestamptz NOT NULL
);