Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
feat(db): add length to documentversion
Marc Seitz8b6017833892
diff --git a/prisma/migrations/20250110000000_add_length_to_document_version/migration.sql b/prisma/migrations/20250110000000_add_length_to_document_version/migration.sqlnew file mode 100644index 00000000..d34cf1fa--- /dev/null+++ b/prisma/migrations/20250110000000_add_length_to_document_version/migration.sql@@ -0,0 +1,3 @@+-- AlterTable+ALTER TABLE "DocumentVersion" ADD COLUMN "length" INTEGER;+diff --git a/prisma/schema.prisma b/prisma/schema.prismaindex d3051e8d..d5b96e99 100644--- a/prisma/schema.prisma+++ b/prisma/schema.prisma@@ -186,6 +186,7 @@ model DocumentVersion {fileId String? // This is the file ID of the OpenAI File APIpages DocumentPage[]hasPages Boolean @default(false) // Indicates if the document has pages+ length Int? // This is the length of the video in secondscreatedAt DateTime @default(now())updatedAt DateTime @updatedAt