Skip to content

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

schema rebase

Ashish Viradiyabeea3813d65b
diff --git a/prisma/schema/schema.prisma b/prisma/schema/schema.prisma
index 81e2e65a..5df6ad1d 100644
--- a/prisma/schema/schema.prisma
+++ b/prisma/schema/schema.prisma
@@ -67,56 +67,7 @@ model User {
publishedFaqItems DataroomFaqItem[]
}
-model Team {
- id String @id @default(cuid())
- name String
- users UserTeam[]
- documents Document[]
- folders Folder[]
- domains Domain[]
- invitations Invitation[]
- sentEmails SentEmail[]
- brand Brand?
- datarooms Dataroom[]
- agreements Agreement[]
- viewerGroups ViewerGroup[]
- viewers Viewer[]
-
- permissionGroups PermissionGroup[]
-
- links Link[]
- views View[]
-
- plan String @default("free")
- stripeId String? @unique // Stripe customer ID
- subscriptionId String? @unique // Stripe subscription ID
- startsAt DateTime? // Stripe subscription start date
- endsAt DateTime? // Stripe subscription end date
-
- linkPresets LinkPreset[] // Link presets for the team
-
- limits Json? // Plan limits // {datarooms: 1, users: 1, domains: 1, customDomainOnPro: boolean, customDomainInDataroom: boolean}
-
- incomingWebhooks IncomingWebhook[]
- restrictedTokens RestrictedToken[]
- webhooks Webhook[]
- slackNotifications SlackNotification[]
- conversations Conversation[]
-
- uploadedDocuments DocumentUpload[]
- slackIntegration SlackIntegration?
-
- // team settings
- enableExcelAdvancedMode Boolean @default(false) // Enable Excel advanced mode for all documents in the team
-
- createdAt DateTime @default(now())
- updatedAt DateTime @updatedAt
- Tag Tag[]
-
- ignoredDomains String[] // Domains that are ignored for the team
- globalBlockList String[]
-}
model Brand {
id String @id @default(cuid())
logo String? // This should be a reference to where the file is stored (S3, Google Cloud Storage, etc.)
diff --git a/prisma/schema/team.prisma b/prisma/schema/team.prisma
index f3c6a0de..4ecaabe9 100644
--- a/prisma/schema/team.prisma
+++ b/prisma/schema/team.prisma
@@ -22,6 +22,8 @@ model Team {
dataroomFaqItems DataroomFaqItem[]
uploadedDocuments DocumentUpload[]
Tag Tag[]
+ slackIntegration SlackIntegration?
+ slackNotifications SlackNotification[]
links Link[]
views View[]