mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 20:13:49 +00:00
- Renamed files and directories to reflect the new structure - Moved comment-related services to the 'comments' directory - Moved image-related services to the 'images' directory - Moved like-related services to the 'likes' directory - Moved post-related services to the 'posts' directory - Moved user-related services to the 'users' directory
19 lines
635 B
TypeScript
19 lines
635 B
TypeScript
import ImageQueryValidationSchema from '@/services/schema/ImageSchema/ImageQueryValidationSchema';
|
|
import { z } from 'zod';
|
|
|
|
const BeerPostQueryResult = z.object({
|
|
id: z.string(),
|
|
name: z.string(),
|
|
brewery: z.object({ id: z.string(), name: z.string() }),
|
|
description: z.string(),
|
|
beerImages: z.array(ImageQueryValidationSchema),
|
|
ibu: z.number(),
|
|
abv: z.number(),
|
|
style: z.object({ id: z.string(), name: z.string(), description: z.string() }),
|
|
postedBy: z.object({ id: z.string(), username: z.string() }),
|
|
createdAt: z.coerce.date(),
|
|
updatedAt: z.coerce.date().nullable(),
|
|
});
|
|
|
|
export default BeerPostQueryResult;
|