ALTER TABLE "ownership_transfers"
ADD COLUMN "requested_by_user_id" UUID,
ADD COLUMN "mode" TEXT NOT NULL DEFAULT 'COPY',
ADD COLUMN "summary" JSONB;

CREATE INDEX "ownership_transfers_requested_by_user_id_idx"
ON "ownership_transfers"("requested_by_user_id");

ALTER TABLE "ownership_transfers"
ADD CONSTRAINT "ownership_transfers_requested_by_user_id_fkey"
FOREIGN KEY ("requested_by_user_id") REFERENCES "users"("id")
ON DELETE SET NULL
ON UPDATE CASCADE;
