Updated the Project.ts model
This commit is contained in:
parent
270c92551a
commit
3a409fa604
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user