Files
chad/server/prisma/seed.ts
2026-01-21 22:39:08 +06:00

24 lines
407 B
TypeScript

import prisma from '../prisma/client.ts'
async function main() {
await prisma.channel.upsert({
where: { id: 'default' },
update: {},
create: {
id: 'default',
name: 'Default',
persistent: true,
},
})
}
main()
.then(async () => {
await prisma.$disconnect()
})
.catch(async (e) => {
console.error(e)
await prisma.$disconnect()
process.exit(1)
})