trifid/trifid-api/migrations/20230204185754_magic_links.sql

5 lines
159 B
SQL

CREATE TABLE magic_links (
id VARCHAR(36) NOT NULL PRIMARY KEY UNIQUE,
user_id SERIAL NOT NULL REFERENCES users(id),
expires_on INTEGER NOT NULL
);