backend/migrations/2025-05-27-162114_create_email_tokens/up.sql
Radical 83f031779f feat: add email verification system
Co-Authored-By: JustTemmie <git@beaver.mom>
2025-05-27 21:57:08 +02:00

7 lines
216 B
SQL

-- Your SQL goes here
CREATE TABLE email_tokens (
token VARCHAR(64) NOT NULL,
user_uuid uuid UNIQUE NOT NULL REFERENCES users(uuid),
created_at TIMESTAMPTZ NOT NULL,
PRIMARY KEY (token, user_uuid)
);