score-the-pigs/resources/migrations/20240331175244-create-auth-code.up.sql

7 lines
225 B
SQL

CREATE TABLE IF NOT EXISTS auth_code (
id uuid PRIMARY KEY,
email text NOT NULL UNIQUE,
code text NOT NULL,
created_at timestamp NOT NULL,
failed_attempts integer DEFAULT 0
);