CREATE TABLE "job" (
	"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
	"status" varchar DEFAULT 'draft' NOT NULL,
	"title" varchar(255) NOT NULL,
	"content" jsonb DEFAULT '{}'::jsonb NOT NULL,
	"order" integer DEFAULT 0 NOT NULL,
	"created_at" timestamp DEFAULT now() NOT NULL,
	"updated_at" timestamp DEFAULT now() NOT NULL,
	"deadline_at" timestamp
);
--> statement-breakpoint
CREATE INDEX "job_status_index" ON "job" USING btree ("status");--> statement-breakpoint
CREATE INDEX "job_order_index" ON "job" USING btree ("order");--> statement-breakpoint
CREATE INDEX "job_deadline_at_index" ON "job" USING btree ("deadline_at");