Track HiveGrid Cloud planning reference

This commit is contained in:
david committed 2026-06-26 20:48:01 +02:00
1 parent b3d5ea6764
commit e341c5938a
5784 files changed
+1104929 -3

No files matched your search

@@ -0,0 +1,36 @@
/*
Warnings:
- You are about to drop the column `role` on the `AdminUser` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "AdminUser" DROP COLUMN "role";
-- AlterTable
ALTER TABLE "Tenant" ADD COLUMN "deactivatedReason" TEXT;
-- CreateTable
CREATE TABLE "TenantIpAddress" (
"id" TEXT NOT NULL,
"tenantId" TEXT NOT NULL,
"userId" TEXT,
"apiKeyId" TEXT,
"ip" TEXT NOT NULL,
"fromUrl" TEXT NOT NULL,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "TenantIpAddress_pkey" PRIMARY KEY ("id")
);
-- CreateIndex
CREATE UNIQUE INDEX "TenantIpAddress_tenantId_ip_userId_apiKeyId_key" ON "TenantIpAddress"("tenantId", "ip", "userId", "apiKeyId");
-- AddForeignKey
ALTER TABLE "TenantIpAddress" ADD CONSTRAINT "TenantIpAddress_tenantId_fkey" FOREIGN KEY ("tenantId") REFERENCES "Tenant"("id") ON DELETE CASCADE ON UPDATE CASCADE;
-- AddForeignKey
ALTER TABLE "TenantIpAddress" ADD CONSTRAINT "TenantIpAddress_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
-- AddForeignKey
ALTER TABLE "TenantIpAddress" ADD CONSTRAINT "TenantIpAddress_apiKeyId_fkey" FOREIGN KEY ("apiKeyId") REFERENCES "ApiKey"("id") ON DELETE CASCADE ON UPDATE CASCADE;