feat: initialize project structure with Next.js, Prisma, and Tailwind CSS setup

This commit is contained in:
2025-10-17 21:59:13 +02:00
commit 02643e3702
49 changed files with 3090 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
const { PrismaClient } = require('@prisma/client');
const bcrypt = require('bcryptjs');
const prisma = new PrismaClient();
async function main() {
const hashedPassword = await bcrypt.hash('test', 10); // Changez le mot de passe ici
await prisma.user.upsert({
where: { email: 'test@test.fr' },
update: {},
create: {
email: 'test@test.fr',
password: hashedPassword,
role: 'SUPER_ADMIN',
},
});
console.log('Super admin created');
}
main()
.catch((e) => {
console.error(e);
process.exit(1);
})
.finally(async () => {
await prisma.$disconnect();
});