From f122822df26eafa0ebfe5b3c787996608b167ba8 Mon Sep 17 00:00:00 2001 From: Marcelo Sedoski Date: Wed, 21 Aug 2024 21:04:27 +0200 Subject: [PATCH] Missing changes --- build/entity/validationEntityDb.js | 4 ++++ build/entity/validationEntityModel.js | 1 + src/entity/validationEntityDb.ts | 5 +++++ src/entity/validationEntityModel.ts | 1 + 4 files changed, 11 insertions(+) diff --git a/build/entity/validationEntityDb.js b/build/entity/validationEntityDb.js index ca5c746..d0bb79b 100644 --- a/build/entity/validationEntityDb.js +++ b/build/entity/validationEntityDb.js @@ -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.', + }, }, }, }, diff --git a/build/entity/validationEntityModel.js b/build/entity/validationEntityModel.js index 397fcc5..0bf594c 100644 --- a/build/entity/validationEntityModel.js +++ b/build/entity/validationEntityModel.js @@ -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); diff --git a/src/entity/validationEntityDb.ts b/src/entity/validationEntityDb.ts index 867ef0f..3484aa2 100644 --- a/src/entity/validationEntityDb.ts +++ b/src/entity/validationEntityDb.ts @@ -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.', + }, }, }, }, diff --git a/src/entity/validationEntityModel.ts b/src/entity/validationEntityModel.ts index 9914f04..0aeb6b1 100644 --- a/src/entity/validationEntityModel.ts +++ b/src/entity/validationEntityModel.ts @@ -11,6 +11,7 @@ const entitySchema = new Schema({ shareGroup: { type: String, required: true }, parentName: { type: String, required: false }, childLocations: { type: [String], required: false }, + segmentationFeatures: { type: [String], required: false }, }) export const entityModel = model('entity', entitySchema)