mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 18:52:06 +00:00
misc: Rename beer type to beer style
This commit is contained in:
14
src/services/BeerStyles/schema/BeerStyleQueryResult.ts
Normal file
14
src/services/BeerStyles/schema/BeerStyleQueryResult.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user