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
+702
-52
@@ -27,11 +27,6 @@ export type User = Prisma.UserModel
|
||||
*
|
||||
*/
|
||||
export type MagicLinkToken = Prisma.MagicLinkTokenModel
|
||||
/**
|
||||
* Model AdminUser
|
||||
*
|
||||
*/
|
||||
export type AdminUser = Prisma.AdminUserModel
|
||||
/**
|
||||
* Model Tenant
|
||||
*
|
||||
@@ -72,11 +67,6 @@ export type Blacklist = Prisma.BlacklistModel
|
||||
*
|
||||
*/
|
||||
export type TenantIpAddress = Prisma.TenantIpAddressModel
|
||||
/**
|
||||
* Model TenantType
|
||||
*
|
||||
*/
|
||||
export type TenantType = Prisma.TenantTypeModel
|
||||
/**
|
||||
* Model Activity
|
||||
* User-facing business activity timeline (M045 / M01 Block E).
|
||||
@@ -111,6 +101,405 @@ export type AdminTenantNote = Prisma.AdminTenantNoteModel
|
||||
* tenant. A null author means an inbound message from the customer side.
|
||||
*/
|
||||
export type SupportTicketMessage = Prisma.SupportTicketMessageModel
|
||||
/**
|
||||
* Model AdminMeetingType
|
||||
*
|
||||
*/
|
||||
export type AdminMeetingType = Prisma.AdminMeetingTypeModel
|
||||
/**
|
||||
* Model AdminAvailabilityRule
|
||||
*
|
||||
*/
|
||||
export type AdminAvailabilityRule = Prisma.AdminAvailabilityRuleModel
|
||||
/**
|
||||
* Model AdminAvailabilityOverride
|
||||
*
|
||||
*/
|
||||
export type AdminAvailabilityOverride = Prisma.AdminAvailabilityOverrideModel
|
||||
/**
|
||||
* Model AdminBookingPage
|
||||
*
|
||||
*/
|
||||
export type AdminBookingPage = Prisma.AdminBookingPageModel
|
||||
/**
|
||||
* Model AdminBooking
|
||||
*
|
||||
*/
|
||||
export type AdminBooking = Prisma.AdminBookingModel
|
||||
/**
|
||||
* Model AdminBookingParticipant
|
||||
*
|
||||
*/
|
||||
export type AdminBookingParticipant = Prisma.AdminBookingParticipantModel
|
||||
/**
|
||||
* Model AdminBookingAssignment
|
||||
*
|
||||
*/
|
||||
export type AdminBookingAssignment = Prisma.AdminBookingAssignmentModel
|
||||
/**
|
||||
* Model AdminBookingReminder
|
||||
*
|
||||
*/
|
||||
export type AdminBookingReminder = Prisma.AdminBookingReminderModel
|
||||
/**
|
||||
* Model AdminCalendarConnection
|
||||
*
|
||||
*/
|
||||
export type AdminCalendarConnection = Prisma.AdminCalendarConnectionModel
|
||||
/**
|
||||
* Model AdminCalendarSyncCursor
|
||||
*
|
||||
*/
|
||||
export type AdminCalendarSyncCursor = Prisma.AdminCalendarSyncCursorModel
|
||||
/**
|
||||
* Model AdminDataConnection
|
||||
*
|
||||
*/
|
||||
export type AdminDataConnection = Prisma.AdminDataConnectionModel
|
||||
/**
|
||||
* Model AdminConnectionCredential
|
||||
*
|
||||
*/
|
||||
export type AdminConnectionCredential = Prisma.AdminConnectionCredentialModel
|
||||
/**
|
||||
* Model AdminMailbox
|
||||
*
|
||||
*/
|
||||
export type AdminMailbox = Prisma.AdminMailboxModel
|
||||
/**
|
||||
* Model AdminMailboxSyncCursor
|
||||
*
|
||||
*/
|
||||
export type AdminMailboxSyncCursor = Prisma.AdminMailboxSyncCursorModel
|
||||
/**
|
||||
* Model AdminMailboxWebhookEvent
|
||||
*
|
||||
*/
|
||||
export type AdminMailboxWebhookEvent = Prisma.AdminMailboxWebhookEventModel
|
||||
/**
|
||||
* Model AdminEmailThread
|
||||
*
|
||||
*/
|
||||
export type AdminEmailThread = Prisma.AdminEmailThreadModel
|
||||
/**
|
||||
* Model AdminEmailMessage
|
||||
*
|
||||
*/
|
||||
export type AdminEmailMessage = Prisma.AdminEmailMessageModel
|
||||
/**
|
||||
* Model AdminEmailParticipant
|
||||
*
|
||||
*/
|
||||
export type AdminEmailParticipant = Prisma.AdminEmailParticipantModel
|
||||
/**
|
||||
* Model AdminEmailAttachment
|
||||
*
|
||||
*/
|
||||
export type AdminEmailAttachment = Prisma.AdminEmailAttachmentModel
|
||||
/**
|
||||
* Model AdminEmailEvent
|
||||
*
|
||||
*/
|
||||
export type AdminEmailEvent = Prisma.AdminEmailEventModel
|
||||
/**
|
||||
* Model AdminEmailLink
|
||||
*
|
||||
*/
|
||||
export type AdminEmailLink = Prisma.AdminEmailLinkModel
|
||||
/**
|
||||
* Model AdminEmailTemplate
|
||||
*
|
||||
*/
|
||||
export type AdminEmailTemplate = Prisma.AdminEmailTemplateModel
|
||||
/**
|
||||
* Model AdminEmailSnippet
|
||||
*
|
||||
*/
|
||||
export type AdminEmailSnippet = Prisma.AdminEmailSnippetModel
|
||||
/**
|
||||
* Model AdminEmailSignature
|
||||
*
|
||||
*/
|
||||
export type AdminEmailSignature = Prisma.AdminEmailSignatureModel
|
||||
/**
|
||||
* Model AdminEmailOutboundPolicy
|
||||
*
|
||||
*/
|
||||
export type AdminEmailOutboundPolicy = Prisma.AdminEmailOutboundPolicyModel
|
||||
/**
|
||||
* Model AdminScheduledEmail
|
||||
*
|
||||
*/
|
||||
export type AdminScheduledEmail = Prisma.AdminScheduledEmailModel
|
||||
/**
|
||||
* Model AdminNoReplyReminder
|
||||
*
|
||||
*/
|
||||
export type AdminNoReplyReminder = Prisma.AdminNoReplyReminderModel
|
||||
/**
|
||||
* Model AdminBulkEmailRun
|
||||
*
|
||||
*/
|
||||
export type AdminBulkEmailRun = Prisma.AdminBulkEmailRunModel
|
||||
/**
|
||||
* Model AdminSendingDomain
|
||||
*
|
||||
*/
|
||||
export type AdminSendingDomain = Prisma.AdminSendingDomainModel
|
||||
/**
|
||||
* Model AdminBccAddress
|
||||
*
|
||||
*/
|
||||
export type AdminBccAddress = Prisma.AdminBccAddressModel
|
||||
/**
|
||||
* Model AdminUser
|
||||
*
|
||||
*/
|
||||
export type AdminUser = Prisma.AdminUserModel
|
||||
/**
|
||||
* Model AdminSession
|
||||
*
|
||||
*/
|
||||
export type AdminSession = Prisma.AdminSessionModel
|
||||
/**
|
||||
* Model AdminRole
|
||||
*
|
||||
*/
|
||||
export type AdminRole = Prisma.AdminRoleModel
|
||||
/**
|
||||
* Model AdminPermission
|
||||
*
|
||||
*/
|
||||
export type AdminPermission = Prisma.AdminPermissionModel
|
||||
/**
|
||||
* Model AdminRolePermission
|
||||
*
|
||||
*/
|
||||
export type AdminRolePermission = Prisma.AdminRolePermissionModel
|
||||
/**
|
||||
* Model AdminUserRole
|
||||
*
|
||||
*/
|
||||
export type AdminUserRole = Prisma.AdminUserRoleModel
|
||||
/**
|
||||
* Model AdminLeadSource
|
||||
*
|
||||
*/
|
||||
export type AdminLeadSource = Prisma.AdminLeadSourceModel
|
||||
/**
|
||||
* Model AdminLeadSourceCredential
|
||||
* Rotatable source credential. Only a one-way digest is persisted; the raw
|
||||
* bearer value is returned once by the source administration service.
|
||||
*/
|
||||
export type AdminLeadSourceCredential = Prisma.AdminLeadSourceCredentialModel
|
||||
/**
|
||||
* Model AdminLead
|
||||
*
|
||||
*/
|
||||
export type AdminLead = Prisma.AdminLeadModel
|
||||
/**
|
||||
* Model AdminLeadActivity
|
||||
* Append-only business timeline. Notes are activities rather than a mutable
|
||||
* blob on AdminLead so every operator-visible change remains attributable.
|
||||
*/
|
||||
export type AdminLeadActivity = Prisma.AdminLeadActivityModel
|
||||
/**
|
||||
* Model AdminCompany
|
||||
*
|
||||
*/
|
||||
export type AdminCompany = Prisma.AdminCompanyModel
|
||||
/**
|
||||
* Model AdminContact
|
||||
*
|
||||
*/
|
||||
export type AdminContact = Prisma.AdminContactModel
|
||||
/**
|
||||
* Model AdminContactChannel
|
||||
*
|
||||
*/
|
||||
export type AdminContactChannel = Prisma.AdminContactChannelModel
|
||||
/**
|
||||
* Model AdminPipeline
|
||||
*
|
||||
*/
|
||||
export type AdminPipeline = Prisma.AdminPipelineModel
|
||||
/**
|
||||
* Model AdminPipelineStage
|
||||
*
|
||||
*/
|
||||
export type AdminPipelineStage = Prisma.AdminPipelineStageModel
|
||||
/**
|
||||
* Model AdminStageRequiredField
|
||||
*
|
||||
*/
|
||||
export type AdminStageRequiredField = Prisma.AdminStageRequiredFieldModel
|
||||
/**
|
||||
* Model AdminDealLossReason
|
||||
*
|
||||
*/
|
||||
export type AdminDealLossReason = Prisma.AdminDealLossReasonModel
|
||||
/**
|
||||
* Model AdminDeal
|
||||
*
|
||||
*/
|
||||
export type AdminDeal = Prisma.AdminDealModel
|
||||
/**
|
||||
* Model AdminDealContact
|
||||
*
|
||||
*/
|
||||
export type AdminDealContact = Prisma.AdminDealContactModel
|
||||
/**
|
||||
* Model AdminDealStageHistory
|
||||
* Immutable record of every deal stage transition. The first history row has
|
||||
* no fromStageId and represents entry into the pipeline.
|
||||
*/
|
||||
export type AdminDealStageHistory = Prisma.AdminDealStageHistoryModel
|
||||
/**
|
||||
* Model AdminTaskRecurrence
|
||||
*
|
||||
*/
|
||||
export type AdminTaskRecurrence = Prisma.AdminTaskRecurrenceModel
|
||||
/**
|
||||
* Model AdminTask
|
||||
*
|
||||
*/
|
||||
export type AdminTask = Prisma.AdminTaskModel
|
||||
/**
|
||||
* Model AdminTag
|
||||
*
|
||||
*/
|
||||
export type AdminTag = Prisma.AdminTagModel
|
||||
/**
|
||||
* Model AdminContactTag
|
||||
*
|
||||
*/
|
||||
export type AdminContactTag = Prisma.AdminContactTagModel
|
||||
/**
|
||||
* Model AdminCustomFieldDefinition
|
||||
*
|
||||
*/
|
||||
export type AdminCustomFieldDefinition = Prisma.AdminCustomFieldDefinitionModel
|
||||
/**
|
||||
* Model AdminCustomFieldValue
|
||||
*
|
||||
*/
|
||||
export type AdminCustomFieldValue = Prisma.AdminCustomFieldValueModel
|
||||
/**
|
||||
* Model AdminContactNote
|
||||
*
|
||||
*/
|
||||
export type AdminContactNote = Prisma.AdminContactNoteModel
|
||||
/**
|
||||
* Model AdminImportJob
|
||||
*
|
||||
*/
|
||||
export type AdminImportJob = Prisma.AdminImportJobModel
|
||||
/**
|
||||
* Model AdminImportRowError
|
||||
*
|
||||
*/
|
||||
export type AdminImportRowError = Prisma.AdminImportRowErrorModel
|
||||
/**
|
||||
* Model AdminExportJob
|
||||
*
|
||||
*/
|
||||
export type AdminExportJob = Prisma.AdminExportJobModel
|
||||
/**
|
||||
* Model AdminActivity
|
||||
* Append-only business timeline shared by leads, contacts, companies and
|
||||
* deals. At least one context id is required by the repository contract.
|
||||
*/
|
||||
export type AdminActivity = Prisma.AdminActivityModel
|
||||
/**
|
||||
* Model AdminLeadAssignmentRule
|
||||
* Ordered, deterministic assignment rule. `sourceId` and `region` are ANDed;
|
||||
* a null criterion is a wildcard. The mutable cursor is locked together with
|
||||
* the lead so concurrent round-robin assignments cannot select the same slot.
|
||||
*/
|
||||
export type AdminLeadAssignmentRule = Prisma.AdminLeadAssignmentRuleModel
|
||||
/**
|
||||
* Model AdminLeadScoreRule
|
||||
* Versionable score rule. Rules are additive and evaluated in stable
|
||||
* priority/id order. The score snapshot on AdminLeadQualification records the
|
||||
* rule-set version so historical decisions stay explainable.
|
||||
*/
|
||||
export type AdminLeadScoreRule = Prisma.AdminLeadScoreRuleModel
|
||||
/**
|
||||
* Model AdminLeadQualification
|
||||
*
|
||||
*/
|
||||
export type AdminLeadQualification = Prisma.AdminLeadQualificationModel
|
||||
/**
|
||||
* Model AdminDuplicateCandidate
|
||||
*
|
||||
*/
|
||||
export type AdminDuplicateCandidate = Prisma.AdminDuplicateCandidateModel
|
||||
/**
|
||||
* Model AdminMergeRecord
|
||||
* Append-only record of a controlled lead merge. The losing lead is archived,
|
||||
* never deleted, and its original activity stream remains intact.
|
||||
*/
|
||||
export type AdminMergeRecord = Prisma.AdminMergeRecordModel
|
||||
/**
|
||||
* Model AdminPhoneConnection
|
||||
*
|
||||
*/
|
||||
export type AdminPhoneConnection = Prisma.AdminPhoneConnectionModel
|
||||
/**
|
||||
* Model AdminPhoneNumber
|
||||
*
|
||||
*/
|
||||
export type AdminPhoneNumber = Prisma.AdminPhoneNumberModel
|
||||
/**
|
||||
* Model AdminTelephonyPolicy
|
||||
*
|
||||
*/
|
||||
export type AdminTelephonyPolicy = Prisma.AdminTelephonyPolicyModel
|
||||
/**
|
||||
* Model AdminCallDisposition
|
||||
*
|
||||
*/
|
||||
export type AdminCallDisposition = Prisma.AdminCallDispositionModel
|
||||
/**
|
||||
* Model AdminCallSession
|
||||
*
|
||||
*/
|
||||
export type AdminCallSession = Prisma.AdminCallSessionModel
|
||||
/**
|
||||
* Model AdminCallParticipant
|
||||
*
|
||||
*/
|
||||
export type AdminCallParticipant = Prisma.AdminCallParticipantModel
|
||||
/**
|
||||
* Model AdminCallEvent
|
||||
*
|
||||
*/
|
||||
export type AdminCallEvent = Prisma.AdminCallEventModel
|
||||
/**
|
||||
* Model AdminCallMatchCandidate
|
||||
*
|
||||
*/
|
||||
export type AdminCallMatchCandidate = Prisma.AdminCallMatchCandidateModel
|
||||
/**
|
||||
* Model AdminCallRecording
|
||||
*
|
||||
*/
|
||||
export type AdminCallRecording = Prisma.AdminCallRecordingModel
|
||||
/**
|
||||
* Model AdminDialerList
|
||||
*
|
||||
*/
|
||||
export type AdminDialerList = Prisma.AdminDialerListModel
|
||||
/**
|
||||
* Model AdminDialerEntry
|
||||
*
|
||||
*/
|
||||
export type AdminDialerEntry = Prisma.AdminDialerEntryModel
|
||||
/**
|
||||
* Model AdminOutboundCallRequest
|
||||
*
|
||||
*/
|
||||
export type AdminOutboundCallRequest = Prisma.AdminOutboundCallRequestModel
|
||||
/**
|
||||
* Model AnalyticsSettings
|
||||
*
|
||||
@@ -163,6 +552,27 @@ export type AppSyncRunLog = Prisma.AppSyncRunLogModel
|
||||
* external system id (`externalId`). Polymorphic.
|
||||
*/
|
||||
export type AppSyncItem = Prisma.AppSyncItemModel
|
||||
/**
|
||||
* Model AppEntityBinding
|
||||
* Durable provider-neutral identity mapping. AppSyncItem remains the history
|
||||
* of one run; this row survives runs, reconnects and process restarts.
|
||||
*/
|
||||
export type AppEntityBinding = Prisma.AppEntityBindingModel
|
||||
/**
|
||||
* Model AuditChainCheckpoint
|
||||
*
|
||||
*/
|
||||
export type AuditChainCheckpoint = Prisma.AuditChainCheckpointModel
|
||||
/**
|
||||
* Model AuditChainHead
|
||||
*
|
||||
*/
|
||||
export type AuditChainHead = Prisma.AuditChainHeadModel
|
||||
/**
|
||||
* Model AuditChainCheckpointHead
|
||||
*
|
||||
*/
|
||||
export type AuditChainCheckpointHead = Prisma.AuditChainCheckpointHeadModel
|
||||
/**
|
||||
* Model ProjektMitglied
|
||||
*
|
||||
@@ -349,6 +759,63 @@ export type CalendarWebhookEvent = Prisma.CalendarWebhookEventModel
|
||||
* 50 with a Klartext description + how it was resolved (Last-Write-Wins).
|
||||
*/
|
||||
export type CalendarConflict = Prisma.CalendarConflictModel
|
||||
/**
|
||||
* Model TeamChat
|
||||
* A project-linked, group, or direct-message channel. Project and direct
|
||||
* message channels are always private; group privacy is selected at creation.
|
||||
* The merge migration enforces kind-specific CHECK constraints and partial
|
||||
* unique indexes for active project channels and direct-message pairs.
|
||||
*/
|
||||
export type TeamChat = Prisma.TeamChatModel
|
||||
/**
|
||||
* Model TeamChatGroupSource
|
||||
* Permission-group sources selected while creating a group chat. Sources are
|
||||
* kept even when synchronization is disabled so the channel configuration is
|
||||
* explicit and can be enabled later without guessing its original scope.
|
||||
* `groupId` deliberately remains a bare cross-module identifier (AD-21).
|
||||
*/
|
||||
export type TeamChatGroupSource = Prisma.TeamChatGroupSourceModel
|
||||
/**
|
||||
* Model TeamChatEvent
|
||||
* Append-only event ledger for reconnect gap-fill. The wire cursor combines
|
||||
* the channel's `eventStreamId` with `sequence`, which is serialized as a
|
||||
* decimal string so JavaScript clients never lose BigInt precision. Redis
|
||||
* fans these events out but is never their source of truth.
|
||||
*/
|
||||
export type TeamChatEvent = Prisma.TeamChatEventModel
|
||||
/**
|
||||
* Model TeamChatMember
|
||||
* One user's membership and per-channel notification/read preferences.
|
||||
* Rejoining reactivates the existing row by clearing `leftAt`.
|
||||
*/
|
||||
export type TeamChatMember = Prisma.TeamChatMemberModel
|
||||
/**
|
||||
* Model TeamChatMessage
|
||||
* A channel message or one-level thread reply. User-authored sends use a
|
||||
* stable client id so retries and WebSocket echoes remain idempotent.
|
||||
*/
|
||||
export type TeamChatMessage = Prisma.TeamChatMessageModel
|
||||
/**
|
||||
* Model TeamChatThread
|
||||
* Denormalized aggregate for the one-level reply list of a parent message.
|
||||
*/
|
||||
export type TeamChatThread = Prisma.TeamChatThreadModel
|
||||
/**
|
||||
* Model TeamChatPinnedMessage
|
||||
* A channel-level message pin. Domain guards enforce the 50-pin limit and
|
||||
* reject message pins for direct-message channels.
|
||||
*/
|
||||
export type TeamChatPinnedMessage = Prisma.TeamChatPinnedMessageModel
|
||||
/**
|
||||
* Model TeamChatReaction
|
||||
* One user's Unicode emoji reaction to a message.
|
||||
*/
|
||||
export type TeamChatReaction = Prisma.TeamChatReactionModel
|
||||
/**
|
||||
* Model TeamChatRead
|
||||
* Per-user read receipt written only after a message was visibly read.
|
||||
*/
|
||||
export type TeamChatRead = Prisma.TeamChatReadModel
|
||||
/**
|
||||
* Model CollabDoc
|
||||
*
|
||||
@@ -458,8 +925,7 @@ export type KontaktRelation = Prisma.KontaktRelationModel
|
||||
export type KontaktEmail = Prisma.KontaktEmailModel
|
||||
/**
|
||||
* Model KontaktTelefon
|
||||
* One of a contact's phone numbers. Exactly one carries `primaer = true`
|
||||
* (enforced in the service), mirrored to `Kontakt.primaerTelefon`.
|
||||
*
|
||||
*/
|
||||
export type KontaktTelefon = Prisma.KontaktTelefonModel
|
||||
/**
|
||||
@@ -683,6 +1149,12 @@ export type FeatureFlag = Prisma.FeatureFlagModel
|
||||
*
|
||||
*/
|
||||
export type FeatureFlagFilter = Prisma.FeatureFlagFilterModel
|
||||
/**
|
||||
* Model AdminFeatureFlagOverride
|
||||
* Operator-managed rollout override. This is deliberately not the
|
||||
* subscription/entitlement TenantFeatureOverride model.
|
||||
*/
|
||||
export type AdminFeatureFlagOverride = Prisma.AdminFeatureFlagOverrideModel
|
||||
/**
|
||||
* Model FeatureFlagAudit
|
||||
* Append-only audit trail for every mutation of a FeatureFlag (create / update / delete / toggle).
|
||||
@@ -983,6 +1455,47 @@ export type KnowledgeBaseArticleUpvotes = Prisma.KnowledgeBaseArticleUpvotesMode
|
||||
*
|
||||
*/
|
||||
export type KnowledgeBaseArticleDownvotes = Prisma.KnowledgeBaseArticleDownvotesModel
|
||||
/**
|
||||
* Model KwpApiContractSnapshot
|
||||
*
|
||||
*/
|
||||
export type KwpApiContractSnapshot = Prisma.KwpApiContractSnapshotModel
|
||||
/**
|
||||
* Model KwpCapabilityState
|
||||
*
|
||||
*/
|
||||
export type KwpCapabilityState = Prisma.KwpCapabilityStateModel
|
||||
/**
|
||||
* Model KwpErrorReport
|
||||
*
|
||||
*/
|
||||
export type KwpErrorReport = Prisma.KwpErrorReportModel
|
||||
/**
|
||||
* Model KwpProjectRouting
|
||||
* Stable provider-status to HiveGrid Pipeline/Stage routing. Names are never
|
||||
* used as runtime identifiers; archived/missing targets quarantine the item.
|
||||
*/
|
||||
export type KwpProjectRouting = Prisma.KwpProjectRoutingModel
|
||||
/**
|
||||
* Model KwpProjectCatalogState
|
||||
* Connection-level progress for the automatic read-only KWP project catalog.
|
||||
* Discovery is intentionally cursorless and represents only the project set
|
||||
* visible through the confirmed mandant's Projektampel settings.
|
||||
*/
|
||||
export type KwpProjectCatalogState = Prisma.KwpProjectCatalogStateModel
|
||||
/**
|
||||
* Model KwpProjectCatalogItem
|
||||
* Safe, normalized project fields used for cache-first KWP search. No raw
|
||||
* provider payload and no prohibited financial/address-internal fields are
|
||||
* persisted here.
|
||||
*/
|
||||
export type KwpProjectCatalogItem = Prisma.KwpProjectCatalogItemModel
|
||||
/**
|
||||
* Model KwpMaterialPosition
|
||||
* Read-only material/ERP position mirrored from the KWP project view. KWP is
|
||||
* authoritative for these fields; local project data remains independent.
|
||||
*/
|
||||
export type KwpMaterialPosition = Prisma.KwpMaterialPositionModel
|
||||
/**
|
||||
* Model InboxLead
|
||||
*
|
||||
@@ -1128,6 +1641,24 @@ export type Group = Prisma.GroupModel
|
||||
*
|
||||
*/
|
||||
export type GroupUser = Prisma.GroupUserModel
|
||||
/**
|
||||
* Model PipelineAccessRequest
|
||||
*
|
||||
*/
|
||||
export type PipelineAccessRequest = Prisma.PipelineAccessRequestModel
|
||||
/**
|
||||
* Model PipelineHandover
|
||||
* One completed pipeline handover of a single project. Append-only: an undo
|
||||
* writes a new `ProjektStageChange`, it does not delete the handover trail.
|
||||
*/
|
||||
export type PipelineHandover = Prisma.PipelineHandoverModel
|
||||
/**
|
||||
* Model PipelineHandoverItem
|
||||
* A single companion record the user ticked in M04. `sourceId` addresses the
|
||||
* note/file/task/appointment; it stays a bare scalar because the four sources
|
||||
* live in four different module schemas.
|
||||
*/
|
||||
export type PipelineHandoverItem = Prisma.PipelineHandoverItemModel
|
||||
/**
|
||||
* Model Plugin
|
||||
*
|
||||
@@ -1163,51 +1694,118 @@ export type Portal = Prisma.PortalModel
|
||||
*
|
||||
*/
|
||||
export type PortalUser = Prisma.PortalUserModel
|
||||
/**
|
||||
* Model PortalSession
|
||||
* Server-side session for the separate customer-portal identity class. The
|
||||
* raw cookie value is never stored; tenantId and portalUserId are immutable
|
||||
* under the dedicated portal RLS policy.
|
||||
*/
|
||||
export type PortalSession = Prisma.PortalSessionModel
|
||||
/**
|
||||
* Model PortalDomainHostnameClaim
|
||||
* Durable global hostname reservation. The row survives deprovisioning and
|
||||
* carries the 30-day reclaim cooldown so a dangling CNAME cannot be claimed
|
||||
* by another workspace. Only the SHA-256 TXT proof is persisted.
|
||||
*/
|
||||
export type PortalDomainHostnameClaim = Prisma.PortalDomainHostnameClaimModel
|
||||
/**
|
||||
* Model PortalCustomDomain
|
||||
* Exactly one current custom-domain generation per portal. Host resolution
|
||||
* reads only `active` rows with a matching claim generation and non-null
|
||||
* origin through a SECURITY DEFINER function; the portal login has no direct
|
||||
* table grant.
|
||||
*/
|
||||
export type PortalCustomDomain = Prisma.PortalCustomDomainModel
|
||||
/**
|
||||
* Model PortalToken
|
||||
* Hashed, single-purpose portal authentication capability. Magic-link,
|
||||
* first-login setup, email verification and password reset share this table
|
||||
* but can never be exchanged across purposes.
|
||||
*/
|
||||
export type PortalToken = Prisma.PortalTokenModel
|
||||
/**
|
||||
* Model PortalProjectAccess
|
||||
* Explicit project allow-list for one portal identity. Project visibility is
|
||||
* never inferred from tenant membership alone.
|
||||
*/
|
||||
export type PortalProjectAccess = Prisma.PortalProjectAccessModel
|
||||
/**
|
||||
* Model PortalStageVisibility
|
||||
* Tenant-admin configuration for the stages that an end customer may see.
|
||||
*/
|
||||
export type PortalStageVisibility = Prisma.PortalStageVisibilityModel
|
||||
/**
|
||||
* Model PortalProjectDocument
|
||||
* Explicit document release. A File or FileEntityLink by itself never grants
|
||||
* customer-portal read access.
|
||||
*/
|
||||
export type PortalProjectDocument = Prisma.PortalProjectDocumentModel
|
||||
/**
|
||||
* Model PortalEmailTemplate
|
||||
* Stage-change mail template managed by the tenant-facing core application.
|
||||
* The portal runtime only reads rendered project/status data, never edits it.
|
||||
*/
|
||||
export type PortalEmailTemplate = Prisma.PortalEmailTemplateModel
|
||||
/**
|
||||
* Model PortalUpload
|
||||
* Persisted contract for one portal upload. File/FileUpload/FileEntityLink
|
||||
* identifiers remain bare cross-module scalars per AD-21; the file tables
|
||||
* independently carry the same PortalUser actor and tenant scope.
|
||||
*/
|
||||
export type PortalUpload = Prisma.PortalUploadModel
|
||||
/**
|
||||
* Model PortalComplaint
|
||||
* Authenticated portal-form complaint. The validated form payload remains in
|
||||
* FormSubmission; this row supplies the portal/project lifecycle contract.
|
||||
*/
|
||||
export type PortalComplaint = Prisma.PortalComplaintModel
|
||||
/**
|
||||
* Model PortalSubcontractorAccess
|
||||
* One-to-one visibility extension for a subcontractor project grant. Customer
|
||||
* access continues to use PortalProjectAccess without this restricted matrix.
|
||||
*/
|
||||
export type PortalSubcontractorAccess = Prisma.PortalSubcontractorAccessModel
|
||||
/**
|
||||
* Model PortalConfiguration
|
||||
*
|
||||
*/
|
||||
export type PortalConfiguration = Prisma.PortalConfigurationModel
|
||||
/**
|
||||
* Model PortalDocumentAutoReleaseRule
|
||||
*
|
||||
*/
|
||||
export type PortalDocumentAutoReleaseRule = Prisma.PortalDocumentAutoReleaseRuleModel
|
||||
/**
|
||||
* Model PortalNotificationPreference
|
||||
*
|
||||
*/
|
||||
export type PortalNotificationPreference = Prisma.PortalNotificationPreferenceModel
|
||||
/**
|
||||
* Model PortalServiceInboxItem
|
||||
* Persistent, seven-day internal service queue. It is written by trusted
|
||||
* app/worker consumers and deliberately never exposed to hivegrid_portal.
|
||||
*/
|
||||
export type PortalServiceInboxItem = Prisma.PortalServiceInboxItemModel
|
||||
/**
|
||||
* Model PortalActivityRoutingRule
|
||||
*
|
||||
*/
|
||||
export type PortalActivityRoutingRule = Prisma.PortalActivityRoutingRuleModel
|
||||
/**
|
||||
* Model PortalDeletionRequest
|
||||
*
|
||||
*/
|
||||
export type PortalDeletionRequest = Prisma.PortalDeletionRequestModel
|
||||
/**
|
||||
* Model PortalGdprExportJob
|
||||
*
|
||||
*/
|
||||
export type PortalGdprExportJob = Prisma.PortalGdprExportJobModel
|
||||
/**
|
||||
* Model PortalPage
|
||||
*
|
||||
*/
|
||||
export type PortalPage = Prisma.PortalPageModel
|
||||
/**
|
||||
* Model PortalUserRegistration
|
||||
*
|
||||
*/
|
||||
export type PortalUserRegistration = Prisma.PortalUserRegistrationModel
|
||||
/**
|
||||
* Model PortalSubscriptionProduct
|
||||
*
|
||||
*/
|
||||
export type PortalSubscriptionProduct = Prisma.PortalSubscriptionProductModel
|
||||
/**
|
||||
* Model PortalSubscriptionPrice
|
||||
*
|
||||
*/
|
||||
export type PortalSubscriptionPrice = Prisma.PortalSubscriptionPriceModel
|
||||
/**
|
||||
* Model PortalSubscriptionFeature
|
||||
*
|
||||
*/
|
||||
export type PortalSubscriptionFeature = Prisma.PortalSubscriptionFeatureModel
|
||||
/**
|
||||
* Model PortalUserSubscription
|
||||
*
|
||||
*/
|
||||
export type PortalUserSubscription = Prisma.PortalUserSubscriptionModel
|
||||
/**
|
||||
* Model PortalUserSubscriptionProduct
|
||||
*
|
||||
*/
|
||||
export type PortalUserSubscriptionProduct = Prisma.PortalUserSubscriptionProductModel
|
||||
/**
|
||||
* Model PortalUserSubscriptionProductPrice
|
||||
*
|
||||
*/
|
||||
export type PortalUserSubscriptionProductPrice = Prisma.PortalUserSubscriptionProductPriceModel
|
||||
/**
|
||||
* Model PortalCheckoutSessionStatus
|
||||
*
|
||||
*/
|
||||
export type PortalCheckoutSessionStatus = Prisma.PortalCheckoutSessionStatusModel
|
||||
/**
|
||||
* Model HiveNumberSeq
|
||||
*
|
||||
@@ -1228,6 +1826,13 @@ export type PipelineStage = Prisma.PipelineStageModel
|
||||
*
|
||||
*/
|
||||
export type PipelineAccess = Prisma.PipelineAccessModel
|
||||
/**
|
||||
* Model PipelineFieldGroup
|
||||
* WF-P8 S05: a named section of the project detail template ("Grunddaten",
|
||||
* "Planung & Verantwortliche", "KWP-Integration", …). System groups ship with
|
||||
* the pipeline and may be reordered but not deleted (`istSystem`).
|
||||
*/
|
||||
export type PipelineFieldGroup = Prisma.PipelineFieldGroupModel
|
||||
/**
|
||||
* Model PipelineFieldConfig
|
||||
*
|
||||
@@ -1263,6 +1868,19 @@ export type PipelineAggregateSnapshot = Prisma.PipelineAggregateSnapshotModel
|
||||
*
|
||||
*/
|
||||
export type ProjektKontakt = Prisma.ProjektKontaktModel
|
||||
/**
|
||||
* Model ProjektAdressDetail
|
||||
* The per-slot extras the S02 address group asks for on top of the shared
|
||||
* `Adresse`. Deliberately NOT columns on `Adresse`: that is a shared CRM entity
|
||||
* which contacts reuse, so a project's "Zahlungsziel" or "Zufahrt" would leak
|
||||
* into every contact address. One row per project and slot.
|
||||
*/
|
||||
export type ProjektAdressDetail = Prisma.ProjektAdressDetailModel
|
||||
/**
|
||||
* Model ProjektNotiz
|
||||
*
|
||||
*/
|
||||
export type ProjektNotiz = Prisma.ProjektNotizModel
|
||||
/**
|
||||
* Model PublicIncomingWebhookEndpoint
|
||||
*
|
||||
@@ -1363,6 +1981,15 @@ export type TenantSubscription = Prisma.TenantSubscriptionModel
|
||||
*
|
||||
*/
|
||||
export type TenantSubscriptionProduct = Prisma.TenantSubscriptionProductModel
|
||||
/**
|
||||
* Model TenantProductAcquisition
|
||||
* Idempotent tenant-owned ledger for products acquired outside the one-base-plan
|
||||
* lifecycle. `scopeKey` is the stable business scope (for example `tenant` or a
|
||||
* normalized hostname) and makes provider retries safe without granting the same
|
||||
* entitlement twice. Provider failures remain local to this row and must never
|
||||
* mutate the base TenantSubscription status.
|
||||
*/
|
||||
export type TenantProductAcquisition = Prisma.TenantProductAcquisitionModel
|
||||
/**
|
||||
* Model TenantSubscriptionProductPrice
|
||||
*
|
||||
@@ -1411,6 +2038,29 @@ export type Task = Prisma.TaskModel
|
||||
* addition to the assignee.
|
||||
*/
|
||||
export type TaskWatcher = Prisma.TaskWatcherModel
|
||||
/**
|
||||
* Model TelephonyConnection
|
||||
* Tenant-specific provider extension of one Apps Engine DataConnection.
|
||||
* Credentials and lifecycle status remain canonical on DataConnection.
|
||||
*/
|
||||
export type TelephonyConnection = Prisma.TelephonyConnectionModel
|
||||
/**
|
||||
* Model TelephonyUserBinding
|
||||
* Mapping between a HiveGrid TenantUser and a provider user (Aircall in v1).
|
||||
*/
|
||||
export type TelephonyUserBinding = Prisma.TelephonyUserBindingModel
|
||||
/**
|
||||
* Model TelephonyCallSession
|
||||
* Normalized inbound or outbound call, optionally matched to one CRM entity.
|
||||
*/
|
||||
export type TelephonyCallSession = Prisma.TelephonyCallSessionModel
|
||||
/**
|
||||
* Model TelephonyWebhookEvent
|
||||
* Redacted provider webhook envelope. Provider payload data is immutable;
|
||||
* only processing metadata changes. Completed rows expire after 30 days and
|
||||
* failed rows after 90 days through the tenant-scoped retention worker.
|
||||
*/
|
||||
export type TelephonyWebhookEvent = Prisma.TelephonyWebhookEventModel
|
||||
/**
|
||||
* Model Workflow
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user