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), +);