This commit is contained in:
Ivan Grachyov
2025-12-26 23:36:21 +03:00
parent 0f218c1519
commit ca773a56c6
18 changed files with 315 additions and 7 deletions

View File

@@ -0,0 +1,22 @@
import client from '../../prisma/client.ts'
export async function chatInit() {
const existing = client.chatChannel.findFirst({
where: {
id: 0,
},
})
if (!existing) {
await client.chatChannel.create({
create: {
id: 0,
name: 'Main channel',
},
update: null,
where: {
id: 0,
},
})
}
}