Reorganize repo structure and standards references

This commit is contained in:
david committed 2026-06-29 05:03:42 +02:00
1 parent 3cb93a81be
commit be2054274d
5885 files changed
+2588 -195

No files matched your search

@@ -0,0 +1,45 @@
/*
Warnings:
- You are about to drop the column `formula` on the `Property` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "AppConfiguration" ADD COLUMN "metricsEnabled" BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN "metricsIgnoreUrls" TEXT,
ADD COLUMN "metricsLogToConsole" BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN "metricsSaveToDatabase" BOOLEAN NOT NULL DEFAULT false;
-- AlterTable
ALTER TABLE "Property" DROP COLUMN "formula",
ADD COLUMN "formulaId" TEXT;
-- CreateTable
CREATE TABLE "Formula" (
"id" TEXT NOT NULL,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"name" TEXT NOT NULL,
"description" TEXT,
"resultAs" TEXT NOT NULL,
"calculationTrigger" TEXT NOT NULL,
CONSTRAINT "Formula_pkey" PRIMARY KEY ("id")
);
-- CreateTable
CREATE TABLE "FormulaComponent" (
"id" TEXT NOT NULL,
"formulaId" TEXT NOT NULL,
"order" INTEGER NOT NULL,
"name" TEXT,
"operator" TEXT,
"parenthesis" TEXT,
CONSTRAINT "FormulaComponent_pkey" PRIMARY KEY ("id")
);
-- AddForeignKey
ALTER TABLE "Property" ADD CONSTRAINT "Property_formulaId_fkey" FOREIGN KEY ("formulaId") REFERENCES "Formula"("id") ON DELETE CASCADE ON UPDATE CASCADE;
-- AddForeignKey
ALTER TABLE "FormulaComponent" ADD CONSTRAINT "FormulaComponent_formulaId_fkey" FOREIGN KEY ("formulaId") REFERENCES "Formula"("id") ON DELETE CASCADE ON UPDATE CASCADE;