From 915a227fd93e7e46a55f4b47647140479a9986a2 Mon Sep 17 00:00:00 2001 From: LukeMathWalker Date: Thu, 11 Mar 2021 22:09:47 +0000 Subject: [PATCH] Migration. --- .../20210307185410_create_subscription_tokens_table.sql | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/migrations/20210307185410_create_subscription_tokens_table.sql b/migrations/20210307185410_create_subscription_tokens_table.sql index 8ddc1d3..a840001 100644 --- a/migrations/20210307185410_create_subscription_tokens_table.sql +++ b/migrations/20210307185410_create_subscription_tokens_table.sql @@ -1 +1,7 @@ --- Add migration script here +-- Create Subscription Tokens Table +CREATE TABLE subscription_tokens( + subscription_token uuid NOT NULL, + subscriber_id uuid NOT NULL + REFERENCES subscriptions (id), + PRIMARY KEY (subscription_token), +);