mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-04-05 18:09:04 +00:00
Did more work to beer post page, seed
Worked on comments and beer recs features. Fine tuning database seed amounts.
This commit is contained in:
13
services/BeerPost/types/BeerCommentQueryResult.ts
Normal file
13
services/BeerPost/types/BeerCommentQueryResult.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
interface BeerCommentQueryResult {
|
||||
id: string;
|
||||
content: string;
|
||||
rating: number;
|
||||
createdAt: Date;
|
||||
postedBy: {
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
username: string;
|
||||
};
|
||||
}
|
||||
|
||||
export default BeerCommentQueryResult;
|
||||
@@ -22,15 +22,6 @@ export default interface BeerPostQueryResult {
|
||||
id: string;
|
||||
username: string;
|
||||
};
|
||||
beerComments: {
|
||||
id: string;
|
||||
content: string;
|
||||
createdAt: Date;
|
||||
postedBy: {
|
||||
id: string;
|
||||
username: string;
|
||||
};
|
||||
}[];
|
||||
|
||||
createdAt: Date;
|
||||
}
|
||||
|
||||
15
services/BeerPost/types/BeerReccomendationQueryResult.ts
Normal file
15
services/BeerPost/types/BeerReccomendationQueryResult.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { BeerPost } from '@prisma/client';
|
||||
|
||||
type BeerRecommendationQueryResult = BeerPost & {
|
||||
brewery: {
|
||||
id: string;
|
||||
name: string;
|
||||
};
|
||||
beerImages: {
|
||||
id: string;
|
||||
alt: string;
|
||||
url: string;
|
||||
}[];
|
||||
};
|
||||
|
||||
export default BeerRecommendationQueryResult;
|
||||
Reference in New Issue
Block a user