@bash-app/bash-common 6.12.0 → 6.14.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/package.json +1 -1
- package/prisma/schema.prisma +11 -3
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -798,10 +798,15 @@ model Service {
|
|
|
798
798
|
id String @id @default(cuid())
|
|
799
799
|
ownerId String
|
|
800
800
|
owner User @relation(fields: [ownerId], references: [id], onDelete: Cascade)
|
|
801
|
-
|
|
802
|
-
|
|
801
|
+
email String
|
|
802
|
+
streetAddress String
|
|
803
|
+
city String
|
|
804
|
+
state String
|
|
805
|
+
zipCode String
|
|
806
|
+
country String
|
|
807
|
+
phone String
|
|
803
808
|
privacy Privacy @default(Public)
|
|
804
|
-
title String
|
|
809
|
+
title String @unique
|
|
805
810
|
coverPhoto String?
|
|
806
811
|
media Media[]
|
|
807
812
|
serviceTypes ServiceType[]
|
|
@@ -821,6 +826,9 @@ model Service {
|
|
|
821
826
|
serviceRange ServiceRange @relation("ServiceRange", fields: [serviceRangeId], references: [id], onDelete: Cascade)
|
|
822
827
|
availableDateTimes DateTime?
|
|
823
828
|
serviceTargetAudience ServiceTargetAudience[]
|
|
829
|
+
|
|
830
|
+
@@index([email])
|
|
831
|
+
@@index([phone])
|
|
824
832
|
}
|
|
825
833
|
|
|
826
834
|
enum ServiceTag {
|