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,