-- CreateTable
CREATE TABLE "despacho_plan_prices" (
    "plan" TEXT NOT NULL,
    "monthly" DECIMAL(10,2),
    "first_year" DECIMAL(10,2) NOT NULL,
    "renewal" DECIMAL(10,2) NOT NULL,
    "permite_monthly" BOOLEAN NOT NULL DEFAULT false,
    "updated_at" TIMESTAMP(3) NOT NULL,

    CONSTRAINT "despacho_plan_prices_pkey" PRIMARY KEY ("plan")
);

-- Seed inicial con valores actuales del catálogo `DESPACHO_PLAN_PRICES`.
INSERT INTO "despacho_plan_prices" ("plan", "monthly", "first_year", "renewal", "permite_monthly", "updated_at") VALUES
  ('mi_empresa',       580,    5800,  5800,  true,  NOW()),
  ('mi_empresa_plus',  900,    9000,  9000,  true,  NOW()),
  ('business_control', NULL,   25850, 25850, false, NOW()),
  ('business_cloud',   NULL,   43000, 43000, false, NOW());
