Implement offlineRenewalDays in Project.ts

This commit is contained in:
Mathias Wagner
2024-07-30 14:28:41 +02:00
parent f4ef649d7f
commit 15c0da6f48

View File

@ -17,6 +17,7 @@ export interface IProject {
validationKey: string, validationKey: string,
privateKey: string, privateKey: string,
publicKey: string, publicKey: string,
offlineRenewalDays: number,
defaults: IProjectDefaults defaults: IProjectDefaults
} }
@ -45,6 +46,10 @@ const ProjectSchema = new Schema<IProject>({
type: String, type: String,
required: true required: true
}, },
offlineRenewalDays: {
type: Number,
default: 7
},
defaults: { defaults: {
type: Object, type: Object,
default: { licenseKey: "NNUN-UUNN-UNUU-NUUN", groups: [], expirationDate: new Date(0), permissions: [], maxUses: -1 }, default: { licenseKey: "NNUN-UUNN-UNUU-NUUN", groups: [], expirationDate: new Date(0), permissions: [], maxUses: -1 },