We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4148236 commit 94fad76Copy full SHA for 94fad76
src/db/models/plan.ts
@@ -2,6 +2,7 @@ import * as t from 'io-ts';
2
3
import { brandedType } from '../../util/io-ts';
4
import type { Brand } from '../../util/types';
5
+import { DATE } from '../util/datatypes';
6
import { defineIDModel } from '../util/id-model';
7
8
export type PlanId = Brand<number, { readonly s: unique symbol }, 'plan.id'>;
@@ -26,6 +27,8 @@ export default defineIDModel({
26
27
},
28
optional: {
29
revisionState: { kind: 'checked', type: PLAN_REVISION_STATE },
30
+ isReleased: { kind: 'checked', type: t.boolean },
31
+ releasedDate: { kind: 'checked', type: DATE },
32
33
34
idField: 'id',
0 commit comments