Skip to content

Commit 94fad76

Browse files
committed
HPC-9489: Add release fields to plan model
1 parent 4148236 commit 94fad76

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/db/models/plan.ts

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as t from 'io-ts';
22

33
import { brandedType } from '../../util/io-ts';
44
import type { Brand } from '../../util/types';
5+
import { DATE } from '../util/datatypes';
56
import { defineIDModel } from '../util/id-model';
67

78
export type PlanId = Brand<number, { readonly s: unique symbol }, 'plan.id'>;
@@ -26,6 +27,8 @@ export default defineIDModel({
2627
},
2728
optional: {
2829
revisionState: { kind: 'checked', type: PLAN_REVISION_STATE },
30+
isReleased: { kind: 'checked', type: t.boolean },
31+
releasedDate: { kind: 'checked', type: DATE },
2932
},
3033
},
3134
idField: 'id',

0 commit comments

Comments
 (0)