procbay-schema 1.0.15 → 1.0.16
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/README.md +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# procbay-schema
|
|
2
2
|
|
|
3
3
|
A set of utilities for managing Prisma database schemas, seeding, and maintenance operations for the Procure-to-Pay system.
|
|
4
4
|
|
|
5
|
-
[](https://www.npmjs.com/package/procbay-schema)
|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
7
7
|
|
|
8
8
|
## Features
|
|
@@ -18,7 +18,7 @@ A set of utilities for managing Prisma database schemas, seeding, and maintenanc
|
|
|
18
18
|
## Installation
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
npm install
|
|
21
|
+
npm install procbay-schema
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
## Using Prisma Client
|
|
@@ -26,7 +26,7 @@ npm install p2p-schema
|
|
|
26
26
|
This package includes the full Prisma client generated from the schema, making it easy to use in your projects:
|
|
27
27
|
|
|
28
28
|
```javascript
|
|
29
|
-
import { PrismaClient } from "
|
|
29
|
+
import { PrismaClient } from "procbay-schema";
|
|
30
30
|
|
|
31
31
|
// Create a new Prisma client instance
|
|
32
32
|
const prisma = new PrismaClient();
|
|
@@ -127,7 +127,7 @@ npx prisma-truncate --db YOUR_DB_NAME --tables users,posts --dry-run
|
|
|
127
127
|
You can also use the package programmatically:
|
|
128
128
|
|
|
129
129
|
```javascript
|
|
130
|
-
import { syncDatabase, seedDatabase, truncateTables } from "
|
|
130
|
+
import { syncDatabase, seedDatabase, truncateTables } from "procbay-schema";
|
|
131
131
|
|
|
132
132
|
// Sync schemas
|
|
133
133
|
syncDatabase({ db: "YOUR_DB_NAME" });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "procbay-schema",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
4
4
|
"description": "A set of utilities for managing Prisma database schemas, seeding, and maintenance operations for the Procure-to-Pay system",
|
|
5
5
|
"main": "src/prisma/index.js",
|
|
6
6
|
"type": "module",
|