mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-05 20:25:08 -05:00
* improvement(code-structure): move db into separate package * make db separate package * remake bun lock * update imports to not maintain two separate ones * fix CI for tests by adding dummy url * vercel build fix attempt * update bun lock * regenerate bun lock * fix mocks * remove db commands from apps/sim package json
10 lines
545 B
SQL
10 lines
545 B
SQL
CREATE TABLE "idempotency_key" (
|
|
"key" text NOT NULL,
|
|
"namespace" text DEFAULT 'default' NOT NULL,
|
|
"result" json NOT NULL,
|
|
"created_at" timestamp DEFAULT now() NOT NULL
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE UNIQUE INDEX "idempotency_key_namespace_unique" ON "idempotency_key" USING btree ("key","namespace");--> statement-breakpoint
|
|
CREATE INDEX "idempotency_key_created_at_idx" ON "idempotency_key" USING btree ("created_at");--> statement-breakpoint
|
|
CREATE INDEX "idempotency_key_namespace_idx" ON "idempotency_key" USING btree ("namespace"); |