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 Apr 18, 2024
1 parent 02bc383 commit 1655c35
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 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,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',
Expand Down

0 comments on commit 1655c35

Please sign in to comment.