32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
// WF-P8 Subframe delta (S00 boards start page) — pipeline access requests.
|
|
//
|
|
// A viewer who is locked out of a pipeline (deny-based PipelineAccess rule
|
|
// with kannSehen=false) can still see the board greyed out on the boards
|
|
// start page and ask for access ("Nutzung anfragen"). Each request is
|
|
// tracked here until a projects.admin grants access (approved) or dismisses
|
|
// it.
|
|
//
|
|
// AD-21: this module owns its schema file. Cross-module references to
|
|
// Pipeline and User are intentionally bare String scalars so this slice does
|
|
// not modify projekt/core/accounts schemas.
|
|
|
|
enum PipelineAccessRequestStatus {
|
|
open
|
|
approved
|
|
dismissed
|
|
}
|
|
|
|
model PipelineAccessRequest {
|
|
id String @id @default(cuid())
|
|
tenantId String
|
|
pipelineId String
|
|
requestedByUserId String
|
|
status PipelineAccessRequestStatus @default(open)
|
|
createdAt DateTime @default(now())
|
|
resolvedAt DateTime?
|
|
resolvedByUserId String?
|
|
|
|
@@index([tenantId, pipelineId, status])
|
|
@@index([tenantId, requestedByUserId])
|
|
}
|