CREATE TABLE "feature_flags" (
	"feature_key" text NOT NULL,
	"tier" "tier" NOT NULL,
	"enabled" boolean DEFAULT true NOT NULL,
	"updated_at" timestamp DEFAULT now() NOT NULL,
	"updated_by_id" text,
	CONSTRAINT "feature_flags_feature_key_tier_pk" PRIMARY KEY("feature_key","tier")
);
--> statement-breakpoint
ALTER TABLE "feature_flags" ADD CONSTRAINT "feature_flags_updated_by_id_users_id_fk" FOREIGN KEY ("updated_by_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE no action;