CREATE TABLE "block" (
	"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
	"scope" varchar(45) DEFAULT 'post' NOT NULL,
	"key" varchar(45) NOT NULL,
	"title" varchar(255) NOT NULL,
	"content" jsonb DEFAULT '{}'::jsonb NOT NULL,
	"created_at" timestamp with time zone DEFAULT now() NOT NULL,
	"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
	CONSTRAINT "block_scope_key_unique" UNIQUE("scope","key")
);
--> statement-breakpoint
CREATE UNIQUE INDEX "block_scope_key_unique_index" ON "block" USING btree ("scope","key");