From c8b3b862063e813a4e5afad045802cb95f29ccb2 Mon Sep 17 00:00:00 2001 From: enxtur Date: Wed, 3 Apr 2024 17:53:42 +0800 Subject: [PATCH 1/2] HPC-9142: Add parentGoverningEntityId field to planEntity model --- src/db/models/planEntity.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/db/models/planEntity.ts b/src/db/models/planEntity.ts index 337cfe40..6dcd1aab 100644 --- a/src/db/models/planEntity.ts +++ b/src/db/models/planEntity.ts @@ -4,6 +4,7 @@ import { brandedType } from '../../util/io-ts'; import type { Brand } from '../../util/types'; import { defineLegacyVersionedModel } from '../util/legacy-versioned-model'; import { ENTITY_PROTOTYPE_ID } from './entityPrototype'; +import { GOVERNING_ENTITY_ID } from './governingEntity'; import { PLAN_ID } from './plan'; export type PlanEntityId = Brand< @@ -27,6 +28,12 @@ export default defineLegacyVersionedModel({ brand: ENTITY_PROTOTYPE_ID, }, }, + optional: { + parentGoverningEntityId: { + kind: 'branded-integer', + brand: GOVERNING_ENTITY_ID, + }, + }, }, idField: 'id', softDeletionEnabled: true, From c85728e5fe4c0ab3980403274551ad6cad6ff171 Mon Sep 17 00:00:00 2001 From: Pl217 Date: Tue, 23 Apr 2024 17:27:00 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=94=96=20Bump=20version=20to=20`v7.6.?= =?UTF-8?q?0`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 167530fe..02a2ab51 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@unocha/hpc-api-core", - "version": "7.5.0", + "version": "7.6.0", "description": "Core libraries supporting HPC.Tools API Backend", "license": "Apache-2.0", "private": false,