From 3a409fa604bcf2c41170eee5856fa2c504820767 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Thu, 3 Aug 2023 22:57:19 +0200 Subject: [PATCH] Updated the Project.ts model --- src/models/Project.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/models/Project.ts b/src/models/Project.ts index e57ff10..c84114a 100644 --- a/src/models/Project.ts +++ b/src/models/Project.ts @@ -10,7 +10,8 @@ export interface IProjectDefaults { licenseKey: string, groups: string[], permissions: string[], - expirationDate: Date + expirationDate: Date, + maxUses: number } export interface IProject { @@ -37,7 +38,7 @@ const ProjectSchema = new Schema({ }, defaults: { type: Object, - default: { licenseKey: "NNUN-UUNN-UNAU-NAAN", groups: [], expirationDate: new Date(0), permissions: [] }, + default: { licenseKey: "NNUN-UUNN-UNAU-NAAN", groups: [], expirationDate: new Date(0), permissions: [], maxUses: -1 }, }, plan: { type: String,