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