zero-to-production/chapter03-1/migrations/20200823135036_create_subscriptions_table.sql
2020-08-25 22:19:53 +01:00

8 lines
No EOL
194 B
SQL

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