aboutsummaryrefslogtreecommitdiffstats
path: root/backend/prisma/seed.ts
blob: d0e3c73c37b1aafb67111ad16b4671b6d73b93cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { PrismaClient } from '@prisma/client';

const prisma = new PrismaClient();

async function main() {
  await prisma.game.createMany({
    data: [
      { name: 'Dancerush' },
    ],
  });
  console.log('Initial seed data inserted');
}

main()
  .catch((e) => {
    console.error(e);
    process.exit(1);
  })
  .finally(async () => {
    await prisma.$disconnect();
  });
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage