Updated the Project.ts model

This commit is contained in:
Mathias Wagner 2023-08-03 22:57:19 +02:00
parent 270c92551a
commit 3a409fa604
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -10,7 +10,8 @@ export interface IProjectDefaults {
licenseKey: string, licenseKey: string,
groups: string[], groups: string[],
permissions: string[], permissions: string[],
expirationDate: Date expirationDate: Date,
maxUses: number
} }
export interface IProject { export interface IProject {
@ -37,7 +38,7 @@ const ProjectSchema = new Schema<IProject>({
}, },
defaults: { defaults: {
type: Object, 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: { plan: {
type: String, type: String,