@a_team/prisma 1.0.1 → 1.0.3

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.
Files changed (3) hide show
  1. package/README.md +26 -0
  2. package/package.json +8 -2
  3. package/.nvmrc +0 -1
package/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # @a_team/prisma
2
+
3
+ This package contains a shared Prisma schema, organized into [multiple files](https://www.prisma.io/blog/organize-your-prisma-schema-with-multi-file-support), to be used across multiple projects. By centralizing the schema definitions, we ensure consistency and reduce duplication of effort:
4
+
5
+ 1. **Consistency**: We are targeting the same MongoDB database. If we use different schema definition files, there's a risk of having inconsistent model definitions, which could lead to conflicts and data overrides.
6
+ 1. **Efficiency**: A single schema definition can reduce redundant work. Currently, the schema file has over 300 lines, and this could easily grow to 1000+ lines as we onboard more collections. By working collaboratively on a single schema definition, we can streamline our efforts and improve the overall quality.
7
+
8
+ ## Installation
9
+
10
+ To install this package, use the following command:
11
+
12
+ ```sh
13
+ yarn add @a_team/prisma
14
+ ```
15
+
16
+ ## Publishing
17
+
18
+ To publish updates to this package, use the following command:
19
+
20
+ ```sh
21
+ yarn publish
22
+ ```
23
+
24
+ ## Additional Information
25
+
26
+ The package is available on npm at: [@a_team/prisma](https://www.npmjs.com/package/@a_team/prisma).
package/package.json CHANGED
@@ -1,7 +1,13 @@
1
1
  {
2
2
  "name": "@a_team/prisma",
3
- "version": "1.0.1",
4
- "main": "index.js",
3
+ "version": "1.0.3",
4
+ "files": [
5
+ "prisma"
6
+ ],
7
+ "scripts": {
8
+ "migrate": "prisma migrate",
9
+ "postinstall": "prisma generate"
10
+ },
5
11
  "repository": {
6
12
  "type": "git",
7
13
  "url": "git+https://github.com/A-Teams-Network/prisma.git"
package/.nvmrc DELETED
@@ -1 +0,0 @@
1
- v20.15.1