-- CreateTable
CREATE TABLE "ContratSla" (
    "id" TEXT NOT NULL PRIMARY KEY,
    "tenantId" TEXT NOT NULL,
    "priorite" TEXT NOT NULL,
    "gtiMinutes" INTEGER NOT NULL,
    CONSTRAINT "ContratSla_tenantId_fkey" FOREIGN KEY ("tenantId") REFERENCES "Tenant" ("id") ON DELETE CASCADE ON UPDATE CASCADE
);

-- CreateIndex
CREATE INDEX "ContratSla_tenantId_idx" ON "ContratSla"("tenantId");

-- CreateIndex
CREATE UNIQUE INDEX "ContratSla_tenantId_priorite_key" ON "ContratSla"("tenantId", "priorite");
