enables schema saving in db, initial refactor of db schema for revisions

This commit is contained in:
2024-09-02 03:16:10 -06:00
parent fd5e5bcc8b
commit 5b16cc60f7
9 changed files with 190 additions and 122 deletions

View File

@@ -1,18 +1,18 @@
import { prisma } from "@/prisma/prismaClient";
import Link from "next/link";
export default async function GameSystem(
{ params: { id } }: { params: { id: string } },
) {
export default async function GameSystem({
params: { id },
}: {
params: { id: string };
}) {
if (!id) throw "HOW DID YOU GET HERE?";
const gameSystem = await prisma.gameSystem.findFirst({
where: {
id,
},
select: {
id: true,
name: true,
include: {
schemas: {
select: {
name: true,
@@ -26,6 +26,10 @@ export default async function GameSystem(
},
},
},
// select: {
// id: true,
// name: true,
// },
});
return (