Plume/migrations/postgres/2022-01-04-122156_create_email_signups_table/up.sql

10 lines
287 B
MySQL
Raw Normal View History

2022-01-04 13:00:30 +00:00
CREATE TABLE email_signups (
id SERIAL PRIMARY KEY,
email VARCHAR NOT NULL,
token VARCHAR NOT NULL,
expiration_date TIMESTAMP NOT NULL
);
CREATE INDEX email_signups_token ON email_signups (token);
CREATE UNIQUE INDEX email_signups_token_requests_email ON email_signups (email);