mailApp/migrations/20230831130447_create_subscription_table.sql

9 lines
256 B
MySQL
Raw Normal View History

2023-08-31 23:57:30 +10:00
-- migrations/{timestamp}_create_subscriptions_table.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
);