mirror of
https://github.com/detleph/server.git
synced 2026-09-06 16:06:18 +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
|
// Dev
|
||||||
await prisma.admin.upsert({
|
await prisma.admin.upsert({
|
||||||
where: { id: 1 },
|
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: {},
|
update: {},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user