channels
This commit is contained in:
23
server/prisma/seed.ts
Normal file
23
server/prisma/seed.ts
Normal 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)
|
||||
})
|
||||
Reference in New Issue
Block a user