CREATE TABLE "post_vision" (
	"post_id" uuid PRIMARY KEY NOT NULL,
	"tag" varchar(255),
	"is_chosen" boolean,
	"created_at" timestamp DEFAULT now() NOT NULL,
	"updated_at" timestamp DEFAULT now() NOT NULL
);
--> statement-breakpoint
ALTER TABLE "post_vision" ADD CONSTRAINT "post_vision_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_vision_tag_index" ON "post_vision" USING btree ("tag");--> statement-breakpoint
CREATE INDEX "post_vision_created_at_index" ON "post_vision" USING btree ("created_at");--> statement-breakpoint
CREATE INDEX "post_vision_updated_at_index" ON "post_vision" USING btree ("updated_at");