-
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.
- Loading branch information
Showing
9 changed files
with
138 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { z } from 'zod'; | ||
|
||
/** | ||
* Markdown Model. | ||
* | ||
* @description Data model for `markdown`. | ||
*/ | ||
export const MarkdownModel = z.object({ | ||
markdown_id: z.number(), | ||
markdown_type_id: z.number(), | ||
data: z.string().nullable(), | ||
score: z.number(), | ||
record_end_date: z.string(), | ||
create_date: z.string(), | ||
create_user: z.number(), | ||
update_date: z.string().nullable(), | ||
update_user: z.number().nullable(), | ||
revision_count: z.number() | ||
}); | ||
|
||
export type MarkdownModel = z.infer<typeof MarkdownModel>; | ||
|
||
/** | ||
* Markdown Record. | ||
* | ||
* @description Data record for `markdown`. | ||
*/ | ||
export const MarkdownRecord = MarkdownModel.omit({ | ||
create_date: true, | ||
create_user: true, | ||
update_date: true, | ||
update_user: true, | ||
revision_count: true | ||
}); | ||
|
||
export type MarkdownRecord = z.infer<typeof MarkdownRecord>; |
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,34 @@ | ||
import { z } from 'zod'; | ||
|
||
/** | ||
* Markdown Type Model. | ||
* | ||
* @description Data model for `markdown_type`. | ||
*/ | ||
export const MarkdownTypeModel = z.object({ | ||
markdown_type_id: z.number(), | ||
name: z.string(), | ||
description: z.string(), | ||
create_date: z.string(), | ||
create_user: z.number(), | ||
update_date: z.string().nullable(), | ||
update_user: z.number().nullable(), | ||
revision_count: z.number() | ||
}); | ||
|
||
export type MarkdownTypeModel = z.infer<typeof MarkdownTypeModel>; | ||
|
||
/** | ||
* Markdown Type Record. | ||
* | ||
* @description Data record for `markdown_type`. | ||
*/ | ||
export const MarkdownTypeRecord = MarkdownTypeModel.omit({ | ||
create_date: true, | ||
create_user: true, | ||
update_date: true, | ||
update_user: true, | ||
revision_count: true | ||
}); | ||
|
||
export type MarkdownTypeRecord = z.infer<typeof MarkdownTypeRecord>; |
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,34 @@ | ||
import { z } from 'zod'; | ||
|
||
/** | ||
* Markdown User Model. | ||
* | ||
* @description Data model for `markdown_user`. | ||
*/ | ||
export const MarkdownUserModel = z.object({ | ||
markdown_user_id: z.number(), | ||
system_user_id: z.number(), | ||
markdown_id: z.number(), | ||
create_date: z.string(), | ||
create_user: z.number(), | ||
update_date: z.string().nullable(), | ||
update_user: z.number().nullable(), | ||
revision_count: z.number() | ||
}); | ||
|
||
export type MarkdownUserModel = z.infer<typeof MarkdownUserModel>; | ||
|
||
/** | ||
* Markdown User Record. | ||
* | ||
* @description Data record for `markdown_user`. | ||
*/ | ||
export const MarkdownUserRecord = MarkdownUserModel.omit({ | ||
create_date: true, | ||
create_user: true, | ||
update_date: true, | ||
update_user: true, | ||
revision_count: true | ||
}); | ||
|
||
export type MarkdownUserRecord = z.infer<typeof MarkdownUserRecord>; |
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
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