We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b896153 commit 7ffead9Copy full SHA for 7ffead9
scripts/seed.ts
@@ -11,6 +11,7 @@ async function run() {
11
await tx.unclaimedItem.deleteMany();
12
await tx.partnerDetails.deleteMany();
13
await tx.user.deleteMany();
14
+ await tx.userInvite.deleteMany();
15
16
await tx.user.createMany({
17
data: [
@@ -72,6 +73,16 @@ async function run() {
72
73
partner: { connect: { email: "partner@test.com" } },
74
},
75
});
76
+
77
+ await tx.userInvite.create({
78
+ data: {
79
+ email: "new-admin@test.com",
80
+ expiration: new Date("July 24, 3000"),
81
+ name: "New Admin",
82
+ token: "1234",
83
+ userType: "ADMIN",
84
+ },
85
+ });
86
87
}
88
0 commit comments