Unterlagen und weitere Fehler

This commit is contained in:
Moritz Utcke
2025-04-05 13:06:50 -03:00
parent 516e854616
commit 09cd167a70
34 changed files with 205 additions and 225 deletions

View File

@@ -0,0 +1,20 @@
/*
Warnings:
- You are about to drop the column `alte_ausweis_id` on the `BedarfsausweisWohnen` table. All the data in the column will be lost.
- You are about to drop the column `alte_ausweis_id` on the `VerbrauchsausweisGewerbe` table. All the data in the column will be lost.
- You are about to drop the column `alte_ausweis_id` on the `VerbrauchsausweisWohnen` table. All the data in the column will be lost.
- Made the column `mime` on table `Unterlage` required. This step will fail if there are existing NULL values in that column.
*/
-- AlterTable
ALTER TABLE "BedarfsausweisWohnen" DROP COLUMN "alte_ausweis_id";
-- AlterTable
ALTER TABLE "Unterlage" ALTER COLUMN "mime" SET NOT NULL;
-- AlterTable
ALTER TABLE "VerbrauchsausweisGewerbe" DROP COLUMN "alte_ausweis_id";
-- AlterTable
ALTER TABLE "VerbrauchsausweisWohnen" DROP COLUMN "alte_ausweis_id";

View File

@@ -1,7 +1,6 @@
model BedarfsausweisWohnen {
id String @id @unique @db.VarChar(8)
alte_ausweis_id Int?
benutzer_id String?
ausstellgrund Ausstellgrund?
registriernummer String? @db.VarChar

View File

@@ -8,7 +8,7 @@ model Unterlage {
id String @id @unique @db.VarChar(8)
name String?
kategorie String?
mime String?
mime String
aufnahme_id String?
aufnahme Aufnahme? @relation(fields: [aufnahme_id], references: [id], onDelete: NoAction, onUpdate: NoAction)

View File

@@ -1,7 +1,6 @@
model VerbrauchsausweisGewerbe {
id String @id @unique @db.VarChar(8)
alte_ausweis_id Int?
ausstellgrund Ausstellgrund?
registriernummer String? @db.VarChar
zusaetzliche_heizquelle Boolean?

View File

@@ -2,7 +2,6 @@
model VerbrauchsausweisWohnen {
/// @zod.describe("ID des Ausweises")
id String @id @unique @db.VarChar(8)
alte_ausweis_id Int?
/// @zod.describe("Ausstellgrund wie z.B. Vermietung oder Verkauf")
ausstellgrund Ausstellgrund?
/// @zod.describe("Die Registriernummer des Ausweises")