From 22fc66321d77e1ac8f8ea067dd8e382c50ef1e29 Mon Sep 17 00:00:00 2001 From: enxtur Date: Wed, 2 Oct 2024 17:57:13 +0800 Subject: [PATCH] HPC-9772: Add `focusLocationId` to `planVersion` model --- src/db/models/planVersion.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/db/models/planVersion.ts b/src/db/models/planVersion.ts index bfcd2d10..d093fcb6 100644 --- a/src/db/models/planVersion.ts +++ b/src/db/models/planVersion.ts @@ -4,6 +4,7 @@ import { brandedType } from '../../util/io-ts'; import type { Brand } from '../../util/types'; import { DATE } from '../util/datatypes'; import { defineLegacyVersionedModel } from '../util/legacy-versioned-model'; +import { LOCATION_ID } from './location'; import { PLAN_ID } from './plan'; import { PLAN_REPORTING_PERIOD_ID } from './planReportingPeriod'; @@ -59,6 +60,7 @@ export default defineLegacyVersionedModel({ type: PLAN_VERSION_CLUSTER_SELECTION_TYPE, }, pdfPublishDate: { kind: 'checked', type: DATE }, + focusLocationId: { kind: 'branded-integer', brand: LOCATION_ID }, }, accidentallyOptional: { shortName: { kind: 'checked', type: t.string },