@bash-app/bash-common 10.9.0 → 11.0.0
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/.env +5 -0
- package/package.json +2 -1
- package/prisma/schema.prisma +7 -7
package/.env
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
POSTGRES_URL="postgres://default:7iRFTgEuYw3Q@ep-long-art-83113364-pooler.us-west-2.postgres.vercel-storage.com:5432/verceldb"
|
|
2
|
+
POSTGRES_PRISMA_URL="postgres://default:7iRFTgEuYw3Q@ep-long-art-83113364-pooler.us-west-2.postgres.vercel-storage.com:5432/verceldb?pgbouncer=true&connect_timeout=15"
|
|
3
|
+
POSTGRES_URL_NON_POOLING="postgres://default:7iRFTgEuYw3Q@ep-long-art-83113364.us-west-2.postgres.vercel-storage.com:5432/verceldb"
|
|
4
|
+
POSTGRES_USER="default"
|
|
5
|
+
POSTGRES_PASSWORD="7iRFTgEuYw3Q"
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bash-app/bash-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"description": "Common data and scripts to use on the frontend and backend",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "npm run generate && npm run tsc",
|
|
9
9
|
"generate": "prisma generate",
|
|
10
|
+
"db": "prisma generate && prisma db push",
|
|
10
11
|
"tsc": "tsc",
|
|
11
12
|
"prepublishOnly": "npm run build"
|
|
12
13
|
},
|
package/prisma/schema.prisma
CHANGED
|
@@ -773,18 +773,18 @@ model User {
|
|
|
773
773
|
}
|
|
774
774
|
|
|
775
775
|
model Contact {
|
|
776
|
-
id
|
|
777
|
-
contactOwnerId
|
|
778
|
-
contactOwner
|
|
779
|
-
email String?
|
|
776
|
+
id String @id @default(cuid())
|
|
777
|
+
contactOwnerId String
|
|
778
|
+
contactOwner User @relation(fields: [contactOwnerId], references: [id], onDelete: Cascade)
|
|
780
779
|
fullName String?
|
|
781
780
|
phone String?
|
|
782
|
-
|
|
781
|
+
contactEmail String?
|
|
782
|
+
contactUser User? @relation("ContactsReferencingMe", fields: [contactEmail], references: [email], onDelete: Cascade)
|
|
783
783
|
requestToConnectSent DateTime?
|
|
784
784
|
requestToConnectAccepted DateTime?
|
|
785
785
|
|
|
786
|
-
@@unique([contactOwnerId,
|
|
787
|
-
@@index([
|
|
786
|
+
@@unique([contactOwnerId, contactEmail])
|
|
787
|
+
@@index([contactEmail])
|
|
788
788
|
}
|
|
789
789
|
|
|
790
790
|
model AssociatedBash {
|