Add the permission_level 'ELEVATED' to the default user

This commit is contained in:
Stephan
2022-04-28 12:49:07 +02:00
committed by Stefan-5422
parent ed90f1e6ae
commit a2e314f036
+5 -1
View File
@@ -13,7 +13,11 @@ async function main() {
// Dev
await prisma.admin.upsert({
where: { id: 1 },
create: { name: "admin", password: await argon2.hash("test", { type: argon2.argon2id }) },
create: {
name: "admin",
password: await argon2.hash("test", { type: argon2.argon2id }),
permission_level: "ELEVATED",
},
update: {},
});