zero-to-production/chapter03-1/migrations/20200823135036_create_subscriptions_table.sql

8 lines
194 B
MySQL
Raw Normal View History

2020-08-25 21:19:53 +00:00
-- 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
);