mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 18:52:06 +00:00
15 lines
348 B
TypeScript
15 lines
348 B
TypeScript
import { z } from 'zod';
|
|
|
|
const GetUserSchema = z.object({
|
|
id: z.string().uuid(),
|
|
username: z.string(),
|
|
createdAt: z.date().or(z.string()),
|
|
updatedAt: z.date().or(z.string()).optional(),
|
|
email: z.string().email(),
|
|
firstName: z.string(),
|
|
lastName: z.string(),
|
|
dateOfBirth: z.date().or(z.string()),
|
|
});
|
|
|
|
export default GetUserSchema;
|