From 1e91cda66fb5e9a7e46f377da38e5feeb337653f Mon Sep 17 00:00:00 2001 From: tmaog Date: Mon, 8 Apr 2024 12:32:47 +0200 Subject: [PATCH] flow information added --- src/models/flow.model.ts | 16 ++++++++++++++-- src/types/PolyglotFlow.ts | 3 +++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/models/flow.model.ts b/src/models/flow.model.ts index ef43f69..7375a49 100644 --- a/src/models/flow.model.ts +++ b/src/models/flow.model.ts @@ -37,9 +37,21 @@ export const flowSchema = new mongoose.Schema({ required: true, default: false, }, - learningPathId: { - type: String + learningContext: { + type: String, + required: true, + default: ' ', + }, + duration: { + type: Number, + required: true, + default: 0, }, + topics: [{ + type: String, + required: true, + default: ' ', + }], tags: [{ type: { name: {type: String}, diff --git a/src/types/PolyglotFlow.ts b/src/types/PolyglotFlow.ts index 5e1d2de..8d398f0 100644 --- a/src/types/PolyglotFlow.ts +++ b/src/types/PolyglotFlow.ts @@ -12,6 +12,9 @@ export type PolyglotFlowInfo = { description: string; publish: boolean; platform: string; + learningContext: string; + duration: number; + topics:string[]; /* to be discussed: do we want to save in the database the last summarized material of the professor? sourceMaterial?: string; levelMaterial?: string;