mirror of
https://github.com/detleph/server.git
synced 2026-09-04 08:36:06 +02:00
Add the permission_level 'ELEVATED' to the default user
This commit is contained in:
+5
-1
@@ -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: {},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user