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
All checks were successful
Build and Push App / build (push) Successful in 11m4s
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user