10 lines
366 B
SQL
10 lines
366 B
SQL
CREATE TABLE "signup_tokens" (
|
|
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
"email" text NOT NULL,
|
|
"token_hash" text NOT NULL,
|
|
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
"expires_at" timestamp with time zone NOT NULL,
|
|
"consumed_at" timestamp with time zone,
|
|
CONSTRAINT "signup_tokens_token_hash_unique" UNIQUE("token_hash")
|
|
);
|