@bash-app/bash-common 10.8.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 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": "10.8.0",
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
  },
@@ -773,10 +773,9 @@ model User {
773
773
  }
774
774
 
775
775
  model Contact {
776
- id String @id @default(cuid())
777
- contactOwnerId String
778
- contactOwner User @relation(fields: [contactOwnerId], references: [id], onDelete: Cascade)
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?
@@ -784,8 +783,8 @@ model Contact {
784
783
  requestToConnectSent DateTime?
785
784
  requestToConnectAccepted DateTime?
786
785
 
787
- @@unique([contactOwnerId, email])
788
- @@index([email])
786
+ @@unique([contactOwnerId, contactEmail])
787
+ @@index([contactEmail])
789
788
  }
790
789
 
791
790
  model AssociatedBash {