This commit is contained in:
mota
2025-11-02 13:32:19 +09:00
parent 2047e044d5
commit b10d41532b
34 changed files with 818 additions and 69 deletions

View File

@@ -168,7 +168,12 @@ async function upsertRoles() {
async function upsertAdmin() {
const admin = await prisma.user.upsert({
where: { nickname: "admin" },
update: { passwordHash: hashPassword("1234") },
update: {
passwordHash: hashPassword("1234"),
grade: 7,
points: 1650000,
level: 200,
},
create: {
nickname: "admin",
name: "Administrator",
@@ -177,6 +182,9 @@ async function upsertAdmin() {
passwordHash: hashPassword("1234"),
agreementTermsAt: new Date(),
authLevel: "ADMIN",
grade: 7,
points: 1650000,
level: 200,
},
});