create-prisma-php-app 1.8.11 → 1.8.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/prisma/seed.js +13 -0
- package/package.json +1 -1
package/dist/prisma/seed.js
CHANGED
|
@@ -50,6 +50,19 @@ async function main() {
|
|
|
50
50
|
// await prisma.user.deleteMany();
|
|
51
51
|
// await prisma.user.createMany({ data: userData });
|
|
52
52
|
// ========================================
|
|
53
|
+
// Code for SQLite
|
|
54
|
+
// ========================================
|
|
55
|
+
// UserRole
|
|
56
|
+
// ----------------------------------------
|
|
57
|
+
// await prisma.userRole.deleteMany();
|
|
58
|
+
// await prisma.userRole.createMany({ data: userRoleData });
|
|
59
|
+
// SQLite automatically handles ID incrementation and does not require manual sequence reset
|
|
60
|
+
// ----------------------------------------
|
|
61
|
+
// User
|
|
62
|
+
// ----------------------------------------
|
|
63
|
+
// await prisma.user.deleteMany();
|
|
64
|
+
// await prisma.user.createMany({ data: userData });
|
|
65
|
+
// ========================================
|
|
53
66
|
// Code for MongoDB
|
|
54
67
|
// ----------------------------------------
|
|
55
68
|
// UserRole
|