Refactor code

This commit is contained in:
2026-02-03 12:17:47 +01:00
parent ea5eb6fa59
commit 8572e22c5d
185 changed files with 1268 additions and 1458 deletions

16
src/schemas/users.ts Normal file
View File

@ -0,0 +1,16 @@
import { z } from "zod/v4";
export const createUserSchema = z.object({
name: z.string().min(1).max(200),
email: z.string().email().max(320),
password: z.string().min(8).max(128),
role: z.enum(["user", "admin"]).default("user"),
});
export type CreateUserInput = z.infer<typeof createUserSchema>;
export const resendVerificationSchema = z.object({
email: z.string().email(),
});
export type ResendVerificationInput = z.infer<typeof resendVerificationSchema>;