Add the permission_level 'ELEVATED' to the default user

This commit is contained in:
Stephan
2021-12-29 15:19:23 +01:00
parent 97fee47c6e
commit bfca7e8672
+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: {},
});