()
| 41 | ]; |
| 42 | |
| 43 | async function main() { |
| 44 | console.log(`Start seeding ...`); |
| 45 | for (const c of chatData) { |
| 46 | const chat = await prisma.chat.create({ |
| 47 | data: c, |
| 48 | }); |
| 49 | console.log(`Created chat with id: ${chat.id}`); |
| 50 | } |
| 51 | console.log(`Seeding finished.`); |
| 52 | } |
| 53 | |
| 54 | main() |
| 55 | .then(async () => { |