Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ dist
.DS_Store

postgres_data/
minio-data/
minio-data/
package-lock.json
11 changes: 11 additions & 0 deletions drizzle/0007_illegal_lila_cheney.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
CREATE TABLE "scratchpads" (
"id" text PRIMARY KEY NOT NULL,
"user_id" text NOT NULL,
"content" text DEFAULT '' NOT NULL,
"updated_at" timestamp DEFAULT now() NOT NULL,
"created_at" timestamp DEFAULT now() NOT NULL,
CONSTRAINT "scratchpads_userId_unique" UNIQUE("user_id")
);
--> statement-breakpoint
ALTER TABLE "scratchpads" ADD CONSTRAINT "scratchpads_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
CREATE INDEX "scratchpads_user_id_idx" ON "scratchpads" USING btree ("user_id");
Loading