1
0
forked from noxious/server

Added logging, worked on character type management

This commit is contained in:
2024-10-19 02:14:39 +02:00
parent d29420cbf3
commit 4e1e7d95ac
11 changed files with 234 additions and 32 deletions

View File

@ -0,0 +1,10 @@
import prisma from '../utilities/prisma' // Import the global Prisma instance
import { CharacterType } from '@prisma/client'
class CharacterTypeRepository {
async getAll(): Promise<CharacterType[]> {
return prisma.characterType.findMany()
}
}
export default new CharacterTypeRepository()