@bash-app/bash-common 11.0.0 → 11.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bash-app/bash-common",
3
- "version": "11.0.0",
3
+ "version": "11.0.2",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -773,13 +773,14 @@ 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)
776
+ id String @id @default(cuid())
777
+ contactOwnerId String
778
+ contactOwner User @relation(fields: [contactOwnerId], references: [id], onDelete: Cascade)
779
+ contactEmail String?
779
780
  fullName String?
780
781
  phone String?
781
- contactEmail String?
782
- contactUser User? @relation("ContactsReferencingMe", fields: [contactEmail], references: [email], onDelete: Cascade)
782
+ contactUserId String?
783
+ contactUser User? @relation("ContactsReferencingMe", fields: [contactUserId], references: [id], onDelete: SetDefault)
783
784
  requestToConnectSent DateTime?
784
785
  requestToConnectAccepted DateTime?
785
786