CREATE TABLE "post_review" (
	"post_id" uuid PRIMARY KEY NOT NULL,
	"name" varchar(255) NOT NULL,
	"type" varchar(45) NOT NULL,
	"created_at" timestamp DEFAULT now() NOT NULL,
	"updated_at" timestamp DEFAULT now() NOT NULL
);
--> statement-breakpoint
ALTER TABLE "post_review" ADD CONSTRAINT "post_review_post_id_posts_id_fk" FOREIGN KEY ("post_id") REFERENCES "public"."posts"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
CREATE INDEX "post_review_type_index" ON "post_review" USING btree ("type");--> statement-breakpoint
CREATE INDEX "post_review_created_at_index" ON "post_review" USING btree ("created_at");--> statement-breakpoint
CREATE INDEX "post_review_updated_at_index" ON "post_review" USING btree ("updated_at");