@bash-app/bash-common 11.0.1 → 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 +1 -1
- package/prisma/schema.prisma +7 -7
package/package.json
CHANGED
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
|
-
|
|
776
|
+
id String @id @default(cuid())
|
|
777
|
+
contactOwnerId String
|
|
778
|
+
contactOwner User @relation(fields: [contactOwnerId], references: [id], onDelete: Cascade)
|
|
779
|
+
contactEmail String?
|
|
780
780
|
fullName String?
|
|
781
781
|
phone String?
|
|
782
|
-
|
|
783
|
-
contactUser User? @relation("ContactsReferencingMe", fields: [
|
|
782
|
+
contactUserId String?
|
|
783
|
+
contactUser User? @relation("ContactsReferencingMe", fields: [contactUserId], references: [id], onDelete: SetDefault)
|
|
784
784
|
requestToConnectSent DateTime?
|
|
785
785
|
requestToConnectAccepted DateTime?
|
|
786
786
|
|
|
787
|
-
@@unique([contactOwnerId,
|
|
787
|
+
@@unique([contactOwnerId, contactEmail])
|
|
788
788
|
@@index([contactEmail])
|
|
789
789
|
}
|
|
790
790
|
|