Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

Merge branch 'main' into deal-flow-infp

Marc Seitzde995227cad0
diff --cc prisma/schema/team.prisma
index 3790cc9e,6a505546..219eae85
--- a/prisma/schema/team.prisma
+++ b/prisma/schema/team.prisma
@@@ -43,13 -45,15 +45,18 @@@ model Team
limits Json? // Plan limits // {datarooms: 1, users: 1, domains: 1, customDomainOnPro: boolean, customDomainInDataroom: boolean}
// team settings
- enableExcelAdvancedMode Boolean @default(false) // Enable Excel advanced mode for all documents in the team
+ enableExcelAdvancedMode Boolean @default(false) // Enable Excel advanced mode for all documents in the team
replicateDataroomFolders Boolean @default(true) // Replicate dataroom folder structure in "All Documents"
- timezone String @default("Etc/UTC") // Team-wide timezone for analytics display (IANA timezone identifier)
+ timezone String @default("Etc/UTC") // Team-wide timezone for analytics display (IANA timezone identifier)
+
+ // SSO (SAML/SCIM via BoxyHQ Jackson)
+ ssoEnabled Boolean @default(false) // Feature flag: team has access to SSO
+ ssoEmailDomain String? @unique // Email domain enforced for SSO (e.g. "acme.com")
+ ssoEnforcedAt DateTime? // When set, all users with this domain MUST use SSO
+ // Survey data (stored as JSON for flexibility)
+ surveyData Json? // { dealType?: string, dealSize?: string, ... }
+
// AI agents
agentsEnabled Boolean @default(false) // Enable AI agents for the team
vectorStoreId String? // OpenAI vector store ID for team-level document search