This commit is contained in:
2026-01-21 22:39:08 +06:00
parent 595354b7f0
commit 65583b1564
50 changed files with 19946 additions and 99 deletions

23
server/prisma/seed.ts Normal file
View File

@@ -0,0 +1,23 @@
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)
})