Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -106,9 +106,18 @@ model ProjektMitglied {
|
||||
updatedAt DateTime @updatedAt
|
||||
archivedAt DateTime?
|
||||
|
||||
projekt Projekt @relation(fields: [projektId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([tenantId, projektId, archivedAt])
|
||||
@@index([tenantId, userId])
|
||||
@@index([tenantId, groupId])
|
||||
@@index([tenantId, userId, archivedAt, projektId])
|
||||
@@index([tenantId, groupId, archivedAt, projektId])
|
||||
}
|
||||
|
||||
/// WF-P8 S02-T: appointment kind offered by the "Termin erstellen" modal.
|
||||
enum ProjektTerminTyp {
|
||||
vor_ort
|
||||
telefon
|
||||
online
|
||||
}
|
||||
|
||||
model ProjektTermin {
|
||||
@@ -123,6 +132,8 @@ model ProjektTermin {
|
||||
startAt DateTime
|
||||
endAt DateTime?
|
||||
status ProjektTerminStatus @default(geplant)
|
||||
/// WF-P8 S02-T. Defaults to the on-site case, which is the SHK norm.
|
||||
typ ProjektTerminTyp @default(vor_ort)
|
||||
isDemoData Boolean @default(false)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
@@ -143,6 +154,12 @@ model Rechnung {
|
||||
status RechnungStatus @default(entwurf)
|
||||
datum DateTime @default(now())
|
||||
faelligAm DateTime?
|
||||
/// Set when the invoice moves to `bezahlt`, cleared when it moves away again.
|
||||
/// `updatedAt` cannot stand in for this: any later edit overwrites it, which
|
||||
/// makes revenue by payment date and days-to-payment unmeasurable. Invoices
|
||||
/// already marked paid before this field existed stay null and are excluded
|
||||
/// from payment-date reporting rather than counted at a wrong date.
|
||||
bezahltAm DateTime?
|
||||
dateiId String?
|
||||
quelle RechnungQuelle @default(manuell)
|
||||
isDemoData Boolean @default(false)
|
||||
@@ -153,6 +170,7 @@ model Rechnung {
|
||||
@@unique([tenantId, rechnungsnummer])
|
||||
@@index([tenantId, projektId, archivedAt])
|
||||
@@index([tenantId, status])
|
||||
@@index([tenantId, bezahltAm])
|
||||
@@index([tenantId, dateiId])
|
||||
}
|
||||
|
||||
@@ -168,7 +186,8 @@ model ProjektChecklist {
|
||||
updatedAt DateTime @updatedAt
|
||||
archivedAt DateTime?
|
||||
|
||||
items ProjektChecklistItem[]
|
||||
projekt Projekt @relation(fields: [projektId], references: [id], onDelete: Cascade)
|
||||
items ProjektChecklistItem[]
|
||||
|
||||
@@index([tenantId, projektId, typ, archivedAt])
|
||||
}
|
||||
@@ -189,7 +208,7 @@ model ProjektChecklistItem {
|
||||
|
||||
checklist ProjektChecklist @relation(fields: [checklistId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([tenantId, checklistId])
|
||||
@@index([tenantId, checklistId, status])
|
||||
@@index([tenantId, status])
|
||||
@@index([tenantId, fotoFileId])
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user