mirror of
https://github.com/documenso/documenso.git
synced 2025-11-17 10:11:35 +10:00
feat: expiry links
This commit is contained in:
@ -0,0 +1,10 @@
|
||||
-- AlterEnum
|
||||
ALTER TYPE "SigningStatus" ADD VALUE 'EXPIRED';
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "DocumentMeta" ADD COLUMN "expiryAmount" INTEGER,
|
||||
ADD COLUMN "expiryUnit" TEXT;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "TemplateMeta" ADD COLUMN "defaultExpiryAmount" INTEGER,
|
||||
ADD COLUMN "defaultExpiryUnit" TEXT;
|
||||
@ -472,6 +472,9 @@ model DocumentMeta {
|
||||
emailSettings Json? /// [DocumentEmailSettings] @zod.custom.use(ZDocumentEmailSettingsSchema)
|
||||
emailReplyTo String?
|
||||
emailId String?
|
||||
|
||||
expiryAmount Int?
|
||||
expiryUnit String?
|
||||
}
|
||||
|
||||
enum ReadStatus {
|
||||
@ -488,6 +491,7 @@ enum SigningStatus {
|
||||
NOT_SIGNED
|
||||
SIGNED
|
||||
REJECTED
|
||||
EXPIRED
|
||||
}
|
||||
|
||||
enum RecipientRole {
|
||||
@ -854,6 +858,10 @@ model TemplateMeta {
|
||||
allowDictateNextSigner Boolean @default(false)
|
||||
distributionMethod DocumentDistributionMethod @default(EMAIL)
|
||||
|
||||
// Default expiry settings
|
||||
defaultExpiryAmount Int?
|
||||
defaultExpiryUnit String?
|
||||
|
||||
typedSignatureEnabled Boolean @default(true)
|
||||
uploadSignatureEnabled Boolean @default(true)
|
||||
drawSignatureEnabled Boolean @default(true)
|
||||
|
||||
Reference in New Issue
Block a user