/*
  Warnings:

  - Added the required column `legalName` to the `Tenant` table without a default value. This is not possible if the table is not empty.

*/
-- AlterTable
ALTER TABLE "Tenant" ADD COLUMN     "legalName" TEXT,
ADD COLUMN     "logoUrl" TEXT;

-- Backfill existing rows: legalName defaults to the current visible name
-- until staff fills in the real razón social via the company config page.
UPDATE "Tenant" SET "legalName" = "name" WHERE "legalName" IS NULL;

ALTER TABLE "Tenant" ALTER COLUMN "legalName" SET NOT NULL;
