diff --git a/backend/prisma/seed.ts b/backend/prisma/seed.ts index a1e73b2..4656556 100644 --- a/backend/prisma/seed.ts +++ b/backend/prisma/seed.ts @@ -1,4 +1,5 @@ import { PrismaClient, RoomType, SectionType } from '@prisma/client'; +import * as bcrypt from 'bcrypt'; const prisma = new PrismaClient(); @@ -56,7 +57,7 @@ async function main() { await prisma.user.create({ data: { email: ownerEmail, - passwordHash: 'password123', + passwordHash: await bcrypt.hash('password123', 10), name: 'Travis', role: 'OWNER', // Enum fallback roleId: ownerRole?.id,