mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
15 lines
306 B
TypeScript
15 lines
306 B
TypeScript
import { z } from 'zod';
|
|
|
|
const BeerStyleQueryResult = z.object({
|
|
id: z.string().cuid(),
|
|
name: z.string(),
|
|
postedBy: z.object({
|
|
id: z.string().cuid(),
|
|
username: z.string(),
|
|
}),
|
|
createdAt: z.coerce.date(),
|
|
updatedAt: z.coerce.date().nullable(),
|
|
});
|
|
|
|
export default BeerStyleQueryResult;
|