mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
9 lines
353 B
SQL
9 lines
353 B
SQL
CREATE TABLE "kyoo"."mqueue" (
|
|
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
"kind" varchar(255) NOT NULL,
|
|
"message" jsonb NOT NULL,
|
|
"attempt" integer DEFAULT 0 NOT NULL,
|
|
"created_at" timestamp with time zone DEFAULT now() NOT NULL
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE INDEX "mqueue_created" ON "kyoo"."mqueue" USING btree ("created_at"); |