From 2f7eb99f66c685a2e05c844b775d6afe6a8a270a Mon Sep 17 00:00:00 2001 From: enxtur Date: Thu, 18 Apr 2024 22:03:03 +0800 Subject: [PATCH] HPC-9489: Add release fields to plan model --- src/db/models/plan.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/db/models/plan.ts b/src/db/models/plan.ts index 16dab09b..634a28d3 100644 --- a/src/db/models/plan.ts +++ b/src/db/models/plan.ts @@ -2,6 +2,7 @@ import * as t from 'io-ts'; import { brandedType } from '../../util/io-ts'; import type { Brand } from '../../util/types'; +import { DATE } from '../util/datatypes'; import { defineIDModel } from '../util/id-model'; export type PlanId = Brand; @@ -26,6 +27,8 @@ export default defineIDModel({ }, optional: { revisionState: { kind: 'checked', type: PLAN_REVISION_STATE }, + isReleased: { kind: 'checked', type: t.boolean }, + releasedDate: { kind: 'checked', type: DATE }, }, }, idField: 'id',