-
Notifications
You must be signed in to change notification settings - Fork 0
/
seed.ts
46 lines (42 loc) · 976 Bytes
/
seed.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import { PrismaClient } from '@prisma/client';
async function main() {
const prisma = new PrismaClient();
const club = await prisma.club.create({
data: {
name: 'Salim Cricket Academy',
},
});
const imran = await prisma.player.create({
data: {
email: 'imransheikhsadi@gmail.com',
name: 'Imran Shaikh',
phone: '01824182649',
clubId: club.id,
},
});
const dipu = await prisma.player.create({
data: {
email: 'dipuudayput@gmail.com',
name: 'Dipu Islam Raj',
phone: '019348457848',
clubId: club.id,
},
});
const billal = await prisma.player.create({
data: {
email: 'billalislam@gmail.com',
name: 'Billal',
phone: '018349897493',
clubId: club.id,
},
});
const munna = await prisma.player.create({
data: {
email: 'munnasheikh@gmail.com',
name: 'Munna Shaikh',
phone: '01846447883',
clubId: club.id,
},
});
}
main();