zero-to-production/migrations/20210307185410_create_subscription_tokens_table.sql

7 lines
208 B
MySQL
Raw Normal View History

2021-03-11 22:09:47 +00:00
-- Create Subscription Tokens Table
CREATE TABLE subscription_tokens(
2021-03-11 22:30:22 +00:00
subscription_token TEXT NOT NULL,
subscriber_id uuid NOT NULL REFERENCES subscriptions (id),
PRIMARY KEY (subscription_token)
2021-03-11 22:09:47 +00:00
);