initial commit

This commit is contained in:
2026-04-03 18:25:54 +01:00
commit 17e26fc87f
35 changed files with 4716 additions and 0 deletions

19
app/post.tsx Normal file
View File

@@ -0,0 +1,19 @@
import type { Prisma } from "../generated/prisma/client"
type PostWithPet = Prisma.PostGetPayload<{
include: { pet: true }
}>;
interface PostProps {
postData: PostWithPet;
}
export default async function Post({ postData }: PostProps) {
return <>
<h1>{postData.petId}</h1>
<p>{postData.content}</p>
<br/>
<p>Posted by a: <b>{postData.pet.species}</b> called <b>{postData.pet.name}</b></p>
<hr/>
</>
}