feat: new user resource integrating postgresql
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
export type IngredientModel = {
|
||||
id: number,
|
||||
name: string,
|
||||
displayName: string,
|
||||
displayNameDE: string,
|
||||
};
|
||||
import { z } from "zod";
|
||||
|
||||
export const IngredientSchema = z.object({
|
||||
id: z.number(),
|
||||
name: z.string().nonempty(),
|
||||
displayName: z.string().nonempty(),
|
||||
displayNameDE: z.string().nonempty(),
|
||||
});
|
||||
|
||||
export const IngredientSchemaWithoutId = IngredientSchema.omit({ id: true });
|
||||
|
||||
export type IngredientModel = z.infer<typeof IngredientSchema>;
|
||||
Reference in New Issue
Block a user