@dirayaah/assessment-module 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.1.0",
6
+ "version": "1.1.1",
7
7
  "description": "A reusable module for handling assessments in nestjs applications",
8
8
  "main": "dist/index.js",
9
9
  "type": "commonjs",
@@ -53,4 +53,11 @@ export class AssessmentEntity extends BaseEntity {
53
53
 
54
54
  @OneToOne(() => AssessmentReportTemplateEntity, (report) => report.assessment)
55
55
  report?: AssessmentReportTemplateEntity;
56
+
57
+ /**
58
+ * One-to-many to RelAssessmentCategory (entity from consuming app, e.g. bissat-backend).
59
+ * Resolved at runtime when both AssessmentEntity and RelAssessmentCategory are registered.
60
+ */
61
+ @OneToMany('RelAssessmentCategory', 'assessment')
62
+ relAssessmentCategories?: any[];
56
63
  }