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',