ALTER TABLE "posts" ALTER COLUMN "published_at" SET DEFAULT now();--> statement-breakpoint
ALTER TABLE "posts" ALTER COLUMN "published_at" SET NOT NULL;--> statement-breakpoint
ALTER TABLE "posts" ADD COLUMN "access_level" varchar(20) DEFAULT 'public' NOT NULL;--> statement-breakpoint
CREATE INDEX "posts_access_level_index" ON "posts" USING btree ("access_level");--> statement-breakpoint
ALTER TABLE "posts" ADD CONSTRAINT "posts_access_level_check" CHECK (access_level IN ('public', 'subscribers', 'plus_only'));