Skip to content

Commit 7ffead9

Browse files
committed
Add user invite to seed data
1 parent b896153 commit 7ffead9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scripts/seed.ts

+11
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ async function run() {
1111
await tx.unclaimedItem.deleteMany();
1212
await tx.partnerDetails.deleteMany();
1313
await tx.user.deleteMany();
14+
await tx.userInvite.deleteMany();
1415

1516
await tx.user.createMany({
1617
data: [
@@ -72,6 +73,16 @@ async function run() {
7273
partner: { connect: { email: "partner@test.com" } },
7374
},
7475
});
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+
});
7586
});
7687
}
7788

0 commit comments

Comments
 (0)