This commit is contained in:
2025-06-06 03:12:19 +02:00
parent be9a9af137
commit 0aab9f55d7
49 changed files with 3255 additions and 93 deletions

View File

@@ -0,0 +1,11 @@
import { cvEntry } from "~/server/db/schema";
import { createInsertSchema, createUpdateSchema, createSelectSchema} from 'drizzle-zod'
import { z } from "zod";
export const selectSchema = createSelectSchema(cvEntry);
export const insertSchema = createInsertSchema(cvEntry);
export const updateSchema = createUpdateSchema(cvEntry);
export const getSchema = selectSchema.pick({id: true});
export const updateRouteSchema = z.object({
by: selectSchema.pick({id:true}),
update: updateSchema
})