mirror of
https://github.com/documenso/documenso.git
synced 2025-11-19 03:01:59 +10:00
feat: document visibility (#1262)
Adds the ability to set a visibility scope for documents within teams.
This commit is contained in:
@ -282,6 +282,12 @@ enum DocumentSource {
|
||||
TEMPLATE_DIRECT_LINK
|
||||
}
|
||||
|
||||
enum DocumentVisibility {
|
||||
EVERYONE
|
||||
MANAGER_AND_ABOVE
|
||||
ADMIN
|
||||
}
|
||||
|
||||
model Document {
|
||||
id Int @id @default(autoincrement())
|
||||
externalId String?
|
||||
@ -289,6 +295,7 @@ model Document {
|
||||
User User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
authOptions Json?
|
||||
formValues Json?
|
||||
visibility DocumentVisibility @default(EVERYONE)
|
||||
title String
|
||||
status DocumentStatus @default(DRAFT)
|
||||
Recipient Recipient[]
|
||||
|
||||
Reference in New Issue
Block a user