@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bash-app/bash-common",
3
- "version": "6.12.0",
3
+ "version": "6.14.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",
@@ -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
- address String
802
- email String @unique
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 {