-
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.
finish renaming vantage to vantage_category and vantage_mode to vantage
- Loading branch information
1 parent
493e6bd
commit 4874257
Showing
34 changed files
with
817 additions
and
534 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,35 @@ | ||
import { z } from 'zod'; | ||
|
||
/** | ||
* Vantage category model. | ||
* | ||
* @description Data model for `vantage_category`. | ||
*/ | ||
export const VantageCategoryModel = z.object({ | ||
vantage_category_id: z.number(), | ||
name: z.string(), | ||
description: 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 VantageCategoryModel = z.infer<typeof VantageCategoryModel>; | ||
|
||
/** | ||
* Vantage Category Record. | ||
* | ||
* @description Data record for `vantage_category`. | ||
*/ | ||
export const VantageCategory = VantageCategoryModel.omit({ | ||
create_date: true, | ||
create_user: true, | ||
update_date: true, | ||
update_user: true, | ||
revision_count: true | ||
}); | ||
|
||
export type VantageCategory = z.infer<typeof VantageCategory>; |
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,36 @@ | ||
import { z } from 'zod'; | ||
|
||
/** | ||
* Vantage Method Model. | ||
* | ||
* @description Data model for `vantage_method`. | ||
*/ | ||
export const VantageMethodModel = z.object({ | ||
vantage_method_id: z.number(), | ||
vantage_id: z.number(), | ||
method_lookup_id: z.number(), | ||
description: 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 VantageMethodModel = z.infer<typeof VantageMethodModel>; | ||
|
||
/** | ||
* Vantage Method Record. | ||
* | ||
* @description Data record for `vantage_method`. | ||
*/ | ||
export const VantageMethodRecord = VantageMethodModel.omit({ | ||
create_date: true, | ||
create_user: true, | ||
update_date: true, | ||
update_user: true, | ||
revision_count: true | ||
}); | ||
|
||
export type VantageMethodRecord = z.infer<typeof VantageMethodRecord>; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.