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")