Skip to content

Commit

Permalink
HPC-9489: Add release fields to plan model
Browse files Browse the repository at this point in the history
  • Loading branch information
enxtur committed Jul 4, 2024
1 parent 4148236 commit 64e7564
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/db/models/plan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<number, { readonly s: unique symbol }, 'plan.id'>;
Expand All @@ -26,6 +27,10 @@ export default defineIDModel({
},
optional: {
revisionState: { kind: 'checked', type: PLAN_REVISION_STATE },
releasedDate: { kind: 'checked', type: DATE },
},
nonNullWithDefault: {
isReleased: { kind: 'checked', type: t.boolean },
},
},
idField: 'id',
Expand Down

0 comments on commit 64e7564

Please sign in to comment.