zero-to-production/chapter04/migrations/20200823135036_create_subscriptions_table.sql

8 lines
194 B
MySQL
Raw Normal View History

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