@spfn/auth 0.3.0-beta.4 → 0.3.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,18 @@
1
+ CREATE TABLE "spfn_auth"."signup_link_tokens" (
2
+ "id" bigserial PRIMARY KEY,
3
+ "email" text NOT NULL,
4
+ "token_hash" text NOT NULL,
5
+ "return_path" text,
6
+ "expires_at" timestamp with time zone NOT NULL,
7
+ "consumed_at" timestamp with time zone,
8
+ "superseded_at" timestamp with time zone,
9
+ "setup_secret_hash" text,
10
+ "setup_expires_at" timestamp with time zone,
11
+ "completed_at" timestamp with time zone,
12
+ "created_at" timestamp with time zone DEFAULT now() NOT NULL,
13
+ "updated_at" timestamp with time zone DEFAULT now() NOT NULL
14
+ );
15
+ --> statement-breakpoint
16
+ CREATE UNIQUE INDEX "signup_link_token_hash_idx" ON "spfn_auth"."signup_link_tokens" ("token_hash");--> statement-breakpoint
17
+ CREATE UNIQUE INDEX "signup_link_setup_secret_hash_idx" ON "spfn_auth"."signup_link_tokens" ("setup_secret_hash");--> statement-breakpoint
18
+ CREATE INDEX "signup_link_email_idx" ON "spfn_auth"."signup_link_tokens" ("email","expires_at");