forked from gorb/backend
feat: add email verification system
Co-Authored-By: JustTemmie <git@beaver.mom>
This commit is contained in:
parent
862e2d6709
commit
83f031779f
14 changed files with 265 additions and 33 deletions
|
@ -0,0 +1,2 @@
|
|||
-- This file should undo anything in `up.sql`
|
||||
DROP TABLE email_tokens;
|
7
migrations/2025-05-27-162114_create_email_tokens/up.sql
Normal file
7
migrations/2025-05-27-162114_create_email_tokens/up.sql
Normal file
|
@ -0,0 +1,7 @@
|
|||
-- 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)
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue