forked from noxious/server
Added logging, worked on character type management
This commit is contained in:
10
src/repositories/characterTypeRepository.ts
Normal file
10
src/repositories/characterTypeRepository.ts
Normal 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()
|
Reference in New Issue
Block a user