Update to use yoga and pothos

This commit is contained in:
2025-03-24 16:23:12 -05:00
parent 4b25b58c18
commit 90b9e5cf1b
16 changed files with 1767 additions and 1120 deletions

View File

@ -2,6 +2,10 @@ generator client {
provider = "prisma-client-js"
}
generator pothos {
provider = "prisma-pothos-types"
}
datasource db {
provider = "sqlite"
url = env("DATABASE_URL")

17
prisma/seed.ts Normal file
View File

@ -0,0 +1,17 @@
import { database } from '@/lib/database';
import { v4 as uuidv4 } from 'uuid';
const main = async () => {
let game = await database.game.findFirst({ where: { title: 'Pokemon Crystal Version' } });
if(!game) {
game = await database.game.create({
data: {
system: 'gbc',
title: 'Pokemon Crystal Version',
uuid: uuidv4()
}
});
}
}
main().catch(console.error);