added seeder

This commit is contained in:
Kevsl 2024-06-14 15:53:37 +02:00
parent 4162e2b3a5
commit fef91bfee6

View File

@ -1,6 +1,7 @@
import { PrismaClient } from '@prisma/client'; import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient(); const prisma = new PrismaClient();
async function main() { async function main() {
await this.prisma.role.create({ await this.prisma.role.create({
name: 'user', name: 'user',