From 82f8cfc0fff51001dc56ead5793475565f547fd5 Mon Sep 17 00:00:00 2001 From: Moritz Utcke Date: Wed, 24 Sep 2025 14:26:08 -0400 Subject: [PATCH] Int zu float umgestellt --- .../20250924181725_flaeche_float/migration.sql | 12 ++++++++++++ prisma/schema/Aufnahme.prisma | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 prisma/migrations/20250924181725_flaeche_float/migration.sql diff --git a/prisma/migrations/20250924181725_flaeche_float/migration.sql b/prisma/migrations/20250924181725_flaeche_float/migration.sql new file mode 100644 index 00000000..071c27d1 --- /dev/null +++ b/prisma/migrations/20250924181725_flaeche_float/migration.sql @@ -0,0 +1,12 @@ +/* + Warnings: + + - Added the required column `ausweistyp` to the `Provisionen` table without a default value. This is not possible if the table is not empty. + +*/ +-- AlterTable +ALTER TABLE "Aufnahme" ALTER COLUMN "flaeche" SET DATA TYPE DOUBLE PRECISION, +ALTER COLUMN "nutzflaeche" SET DATA TYPE DOUBLE PRECISION; + +-- AlterTable +ALTER TABLE "Provisionen" ADD COLUMN "ausweistyp" "AusweisTyp" NOT NULL; diff --git a/prisma/schema/Aufnahme.prisma b/prisma/schema/Aufnahme.prisma index 07d1d032..3ede54df 100644 --- a/prisma/schema/Aufnahme.prisma +++ b/prisma/schema/Aufnahme.prisma @@ -29,9 +29,9 @@ model Aufnahme { /// @zod.describe("Anzahl der (Wohn)Einheiten im Gebäude") einheiten Int? /// @zod.describe("Wohnfläche bei Wohngebäuden, Nutzfläche bei Gewerbegebäuden") - flaeche Int? + flaeche Float? /// @zod.describe("(energetische) Nutzfläche des Gebäudes. Bei Gewerbegebäuden entspricht Sie der Nutzfläche") - nutzflaeche Int? + nutzflaeche Float? /// @zod.describe("Falls das Gebäude energetisch saniert ist, sollte dieser Wert auf true stehen") saniert Boolean? /// @zod.describe("Ob ein Keller vorhanden, beheizt oder unbeheizt ist")