Skip to content

Commit

Permalink
Missing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sedoski-duna committed Aug 21, 2024
1 parent afb99fb commit f122822
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/entity/validationEntityDb.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ function createEntityCollectionWithValidation(uri, databaseName, collectionName)
bsonType: 'array',
description: 'Holds locations of other objects belonging to the entity. Not required.',
},
segmentationFeatures: {
bsonType: 'array',
description: 'Holds a list of classificaton features used during the segmentation process. Not required.',
},
},
},
},
Expand Down
1 change: 1 addition & 0 deletions build/entity/validationEntityModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ const entitySchema = new mongoose_1.Schema({
shareGroup: { type: String, required: true },
parentName: { type: String, required: false },
childLocations: { type: [String], required: false },
segmentationFeatures: { type: [String], required: false },
});
exports.entityModel = (0, mongoose_1.model)('entity', entitySchema);
5 changes: 5 additions & 0 deletions src/entity/validationEntityDb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ export async function createEntityCollectionWithValidation(
description:
'Holds locations of other objects belonging to the entity. Not required.',
},
segmentationFeatures: {
bsonType: 'array',
description:
'Holds a list of classificaton features used during the segmentation process. Not required.',
},
},
},
},
Expand Down
1 change: 1 addition & 0 deletions src/entity/validationEntityModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const entitySchema = new Schema<IEntityDb>({
shareGroup: { type: String, required: true },
parentName: { type: String, required: false },
childLocations: { type: [String], required: false },
segmentationFeatures: { type: [String], required: false },
})

export const entityModel = model<IEntityDb>('entity', entitySchema)

0 comments on commit f122822

Please sign in to comment.