chore(seed): align seed.ts with seed.js using correct domain and roles
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run

This commit is contained in:
fullsizemalt 2025-12-17 09:08:55 -08:00
parent d8d9c407d8
commit 7e8e070d11

View file

@ -28,6 +28,13 @@ async function main() {
inventory: { view: true }
},
isSystem: true
},
{
name: 'Worker',
permissions: {
tasks: { view: true, complete: true }
},
isSystem: true
}
];
@ -42,7 +49,7 @@ async function main() {
const ownerRole = await prisma.role.findUnique({ where: { name: 'Facility Owner' } });
// Create Owner
const ownerEmail = 'admin@runfoo.com';
const ownerEmail = 'admin@runfoo.run';
const existingOwner = await prisma.user.findUnique({ where: { email: ownerEmail } });
if (!existingOwner) {