first commit

This commit is contained in:
DerJesen
2025-11-29 12:26:58 +01:00
parent 2fae31f20f
commit fe5bbc1410
142 changed files with 19585 additions and 1 deletions

27
prisma/seed.ts Normal file
View File

@@ -0,0 +1,27 @@
import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
async function main() {
const event = await prisma.event.upsert({
where: { id: 'default-event' },
update: {},
create: {
id: 'default-event',
name: 'Default Event',
date: '2025-01-01',
location: 'Main Hall',
},
});
console.log({ event });
}
main()
.then(async () => {
await prisma.$disconnect();
})
.catch(async (e) => {
console.error(e);
await prisma.$disconnect();
process.exit(1);
});