Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Delete seed-test-data.ts

Kiran Kaf1c88c86aed
diff --git a/apps/web/scripts/seed-test-data.ts b/apps/web/scripts/seed-test-data.ts
deleted file mode 100644
index 5ed8aaeebc..0000000000
--- a/apps/web/scripts/seed-test-data.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-import { hashPassword } from "@/lib/auth/password";
-import { prisma } from "@dub/prisma";
-import "dotenv-flow/config";
-
-const workspaceId = "cl7pj5kq4006835rbjlt2ofka";
-
-async function main() {
- const users = [
- {
- id: "cm1ypncqa0000tc44pfgxp6qa",
- name: "John",
- email: "[email protected]",
- emailVerified: new Date(),
- passwordHash: await hashPassword("password"),
- },
- {
- id: "cm1ypncqa0000tc44pfgxp6qb",
- name: "Jane",
- email: "[email protected]",
- emailVerified: new Date(),
- passwordHash: await hashPassword("password"),
- },
- {
- id: "cm1ypncqa0000tc44pfgxp6qc",
- name: "Jack",
- email: "[email protected]",
- emailVerified: new Date(),
- passwordHash: await hashPassword("password"),
- },
- ];
-
- await prisma.user.createMany({
- data: users,
- });
-
- await prisma.projectUsers.createMany({
- data: users.map((user) => ({
- userId: user.id,
- projectId: workspaceId,
- })),
- });
-}
-
-main();