-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/SIMSBIOHUB-627' into SIMSBIOHUB-…
…627-Device-Frontend-3
- Loading branch information
Showing
27 changed files
with
452 additions
and
1,484 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { z } from 'zod'; | ||
/** | ||
* Device Make Model. | ||
* | ||
* @description Data model for `device_make`. | ||
*/ | ||
export const DeviceMakeModel = z.object({ | ||
device_make_id: z.number(), | ||
name: z.string(), | ||
description: z.string().nullable(), | ||
notes: z.string().nullable(), | ||
record_effective_date: z.string().nullable(), | ||
record_end_date: z.string().nullable(), | ||
create_date: z.string(), | ||
create_user: z.number(), | ||
update_date: z.string().nullable(), | ||
update_user: z.number().nullable(), | ||
revision_count: z.number() | ||
}); | ||
|
||
export type DeviceMakeModel = z.infer<typeof DeviceMakeModel>; | ||
|
||
/** | ||
* Device Make Record. | ||
* | ||
* @description Data record for `device_make`. | ||
*/ | ||
export const DeviceMakeRecord = DeviceMakeModel.omit({ | ||
record_effective_date: true, | ||
record_end_date: true, | ||
create_date: true, | ||
create_user: true, | ||
update_date: true, | ||
update_user: true, | ||
revision_count: true | ||
}); | ||
|
||
export type DeviceMakeRecord = z.infer<typeof DeviceMakeRecord>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.