Skip to content

Commit

Permalink
Merge pull request #35 from polyglot-edu/20-new-execution-api-concept
Browse files Browse the repository at this point in the history
flow information added
  • Loading branch information
tmaog authored Apr 8, 2024
2 parents 410c430 + 1e91cda commit bf3dacb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/models/flow.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,21 @@ export const flowSchema = new mongoose.Schema<PolyglotFlow>({
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},
Expand Down
3 changes: 3 additions & 0 deletions src/types/PolyglotFlow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bf3dacb

Please sign in to comment.