feat: add Event interface, implement core Prisma seeding, and create admin categories management page
All checks were successful
Build and Push App / build (push) Successful in 11m4s

This commit is contained in:
2026-04-24 14:39:01 +02:00
parent 11678e0b33
commit 3c58e60b33
12 changed files with 176 additions and 592 deletions

View File

@@ -105,7 +105,7 @@ const EVENTS = [
];
async function main() {
console.log('Seeding events...');
console.log('--- Seeding Events Mockup ---');
for (const event of EVENTS) {
await prisma.event.upsert({
where: { slug: event.slug },
@@ -113,14 +113,7 @@ async function main() {
create: event,
});
}
console.log('Events seeded!');
console.log('✅ Événements Mockup terminés.');
}
main()
.catch((e) => {
console.error(e);
process.exit(1);
})
.finally(async () => {
await prisma.$disconnect();
});
main().catch(console.error).finally(() => pool.end());