refactor: some stuff
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
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