1+ CREATE TABLE "user_storage_connections " (
2+ " id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL ,
3+ " user_id" text NOT NULL ,
4+ " name" text NOT NULL ,
5+ " encrypted_payload" text NOT NULL ,
6+ " hash" text NOT NULL ,
7+ " additional_buckets" jsonb DEFAULT ' []' NOT NULL ,
8+ " created_at" timestamp DEFAULT now() NOT NULL ,
9+ " updated_at" timestamp DEFAULT now() NOT NULL ,
10+ CONSTRAINT " user_storage_connections_user_id_name_unique" UNIQUE(" user_id" ," name" )
11+ );
12+ -- > statement-breakpoint
113CREATE TABLE "account " (
214 " id" text PRIMARY KEY NOT NULL ,
315 " account_id" text NOT NULL ,
@@ -50,6 +62,7 @@ CREATE TABLE "verification" (
5062-- > statement-breakpoint
5163ALTER TABLE " account" ADD CONSTRAINT " account_user_id_user_id_fk" FOREIGN KEY (" user_id" ) REFERENCES " public" ." user" (" id" ) ON DELETE cascade ON UPDATE no action;-- > statement-breakpoint
5264ALTER TABLE " session" ADD CONSTRAINT " session_user_id_user_id_fk" FOREIGN KEY (" user_id" ) REFERENCES " public" ." user" (" id" ) ON DELETE cascade ON UPDATE no action;-- > statement-breakpoint
65+ CREATE INDEX "user_id_idx " ON " user_storage_connections" USING btree (" user_id" );-- > statement-breakpoint
5366CREATE INDEX "account_userId_idx " ON " account" USING btree (" user_id" );-- > statement-breakpoint
5467CREATE INDEX "session_userId_idx " ON " session" USING btree (" user_id" );-- > statement-breakpoint
55- CREATE INDEX "verification_identifier_idx " ON " verification" USING btree (" identifier" );
68+ CREATE INDEX "verification_identifier_idx " ON " verification" USING btree (" identifier" );
0 commit comments