ALTER TABLE "invitation" RENAME COLUMN "invited_by" TO "inviter_id";--> statement-breakpoint
ALTER TABLE "invitation" DROP CONSTRAINT "invitation_invited_by_users_id_fk";
--> statement-breakpoint
ALTER TABLE "invitation" ADD CONSTRAINT "invitation_inviter_id_users_id_fk" FOREIGN KEY ("inviter_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE no action;