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