carservice: initial commit
Build and publish images / docker (push) Canceled after 0s

This commit is contained in:
Hermes
2026-07-20 20:51:23 +01:00
commit f7a9906add
77 changed files with 9403 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
const { PrismaClient } = require("@prisma/client");
const bcrypt = require("bcryptjs");
async function main() {
const prisma = new PrismaClient();
const existing = await prisma.user.findUnique({ where: { username: "admin" } });
if (!existing) {
const hash = await bcrypt.hash("password", 10);
await prisma.user.create({
data: { username: "admin", password: hash },
});
console.log("Created default user: admin / password");
} else {
console.log("User already exists");
}
await prisma.$disconnect();
}
main().catch((e) => {
console.error(e);
process.exit(1);
});