feat(users): add admin user management and bootstrap seed

This commit is contained in:
2026-06-04 22:03:13 +02:00
parent 12cbec92a0
commit 5034ec0646
28 changed files with 1318 additions and 11 deletions
+17
View File
@@ -0,0 +1,17 @@
import prisma from "../src/lib/prisma"
import { bootstrapAdmin } from "./bootstrap-admin"
async function main() {
await bootstrapAdmin(prisma)
}
main()
.then(async () => {
await prisma.$disconnect()
})
.catch(async (e) => {
console.error(e)
await prisma.$disconnect()
process.exit(1)
})