diff --git a/src/models/Project.ts b/src/models/Project.ts index 6559126..84d580b 100644 --- a/src/models/Project.ts +++ b/src/models/Project.ts @@ -15,6 +15,8 @@ export interface IProject { name: string, creatorId: ObjectId, validationKey: string, + privateKey: string, + publicKey: string, defaults: IProjectDefaults } @@ -35,6 +37,14 @@ const ProjectSchema = new Schema({ type: String, default: () => crypto.randomBytes(24).toString("hex") }, + privateKey: { + type: String, + required: true + }, + publicKey: { + type: String, + required: true + }, defaults: { type: Object, default: { licenseKey: "NNUN-UUNN-UNUU-NUUN", groups: [], expirationDate: new Date(0), permissions: [], maxUses: -1 },