feat: 完成模板目录导入与生命周期管理

This commit is contained in:
que01 committed 2026-10-16 16:34:24 +08:00
1 parent 553a07c4ec
commit 413413efda
25 files changed
+1313 -24

No files matched your search

+2 -1
View File
@@ -852,11 +852,12 @@ async function main(): Promise<void> {
}
const admin = await prisma.adminUser.upsert({
where: { username: "admin" },
update: {},
update: { platformTemplateRole: "template_admin" },
create: {
username: "admin",
passwordHash: await bcrypt.hash(process.env.SEED_ADMIN_PASSWORD ?? "change-me-now-123", 12),
displayName: "品牌管理员",
platformTemplateRole: "template_admin",
mustChangePassword: true,
},
});