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
@@ -76,6 +76,14 @@ enum CustomFieldDatentyp {
|
||||
email
|
||||
telefon
|
||||
datei
|
||||
// WF-P8 S05: the remaining types Davids field picker offers. Added to the
|
||||
// shared enum so the picker can store them; value rendering is a plain text
|
||||
// box for every type today, new and old alike.
|
||||
prozent
|
||||
datum_zeit
|
||||
person_team
|
||||
adresse
|
||||
link
|
||||
}
|
||||
|
||||
/// A contact (Kontakt), the CRM core entity. Oberbegriff for both private persons
|
||||
@@ -96,6 +104,23 @@ model Kontakt {
|
||||
// Organisation fields (kontaktTyp = organisation).
|
||||
orgName String?
|
||||
orgMerkmal OrgMerkmal?
|
||||
// WF-P8 S02 company card (P8 baseline, consumed read-only there). Company
|
||||
// master data belongs to the contact, not to a project: the same company shows
|
||||
// up on many projects, and duplicating these per project would fork the truth.
|
||||
website String?
|
||||
ustIdNr String?
|
||||
handelsregister String?
|
||||
kundennummer String?
|
||||
kundeSeit DateTime?
|
||||
branche String?
|
||||
mitarbeiterzahl Int?
|
||||
// WF-P8 S02 contact-person card (kontaktTyp = privatperson).
|
||||
position String?
|
||||
erreichbarkeit String?
|
||||
// Free text on both card types: the standing arrangements with this contact
|
||||
// (how they want to be invoiced, who decides, when to call). Not the activity
|
||||
// timeline — that records what happened, this is what stays true.
|
||||
notizen String?
|
||||
// Denormalised primary channels, kept in sync from KontaktEmail/KontaktTelefon
|
||||
// by the service so list/dup-check queries stay single-table.
|
||||
primaerEmail String?
|
||||
@@ -161,13 +186,24 @@ model KontaktEmail {
|
||||
|
||||
/// One of a contact's phone numbers. Exactly one carries `primaer = true`
|
||||
/// (enforced in the service), mirrored to `Kontakt.primaerTelefon`.
|
||||
/// WF-P8 S02 asks for "Durchwahl" and "Mobil" next to the main number. That is a
|
||||
/// kind of number, not two more scalars on Kontakt — a contact can have several
|
||||
/// of each, which is exactly what KontaktTelefon already models.
|
||||
enum KontaktTelefonTyp {
|
||||
haupt
|
||||
durchwahl
|
||||
mobil
|
||||
fax
|
||||
}
|
||||
|
||||
model KontaktTelefon {
|
||||
id String @id @default(cuid())
|
||||
createdAt DateTime @default(now())
|
||||
id String @id @default(cuid())
|
||||
createdAt DateTime @default(now())
|
||||
tenantId String
|
||||
kontaktId String
|
||||
telefon String
|
||||
primaer Boolean @default(false)
|
||||
typ KontaktTelefonTyp @default(haupt)
|
||||
primaer Boolean @default(false)
|
||||
|
||||
kontakt Kontakt @relation(fields: [kontaktId], references: [id], onDelete: Cascade)
|
||||
|
||||
|
||||
Reference in new issue
Block a user