zero-to-production/migrations/20210307185410_create_subscription_tokens_table.sql
2021-03-11 22:30:22 +00:00

6 lines
208 B
SQL

-- Create Subscription Tokens Table
CREATE TABLE subscription_tokens(
subscription_token TEXT NOT NULL,
subscriber_id uuid NOT NULL REFERENCES subscriptions (id),
PRIMARY KEY (subscription_token)
);