@bash-app/bash-common 24.4.0 → 24.5.1
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 +10 -9
- package/src/extendedSchemas.ts +1 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -928,22 +928,23 @@ model Business {
|
|
|
928
928
|
}
|
|
929
929
|
|
|
930
930
|
model VolunteerService {
|
|
931
|
-
id String
|
|
931
|
+
id String @id @default(cuid())
|
|
932
932
|
businessId String?
|
|
933
|
-
business Business?
|
|
933
|
+
business Business? @relation(fields: [businessId], references: [id])
|
|
934
934
|
userId String?
|
|
935
|
-
user User?
|
|
935
|
+
user User? @relation(fields: [userId], references: [id])
|
|
936
936
|
serviceRangeId String?
|
|
937
|
-
serviceRange ServiceRange?
|
|
938
|
-
media Media[]
|
|
939
|
-
links Link[]
|
|
940
|
-
availableDateTimes Availability[]
|
|
937
|
+
serviceRange ServiceRange? @relation(fields: [serviceRangeId], references: [id])
|
|
938
|
+
media Media[] @relation("VolunteerServiceMedia")
|
|
939
|
+
links Link[] @relation("VolunteerServiceLinks")
|
|
940
|
+
availableDateTimes Availability[] @relation("AvailableDateTimes")
|
|
941
941
|
fullName String?
|
|
942
942
|
address String?
|
|
943
943
|
email String?
|
|
944
944
|
phone String?
|
|
945
|
-
agreedToAgreement Boolean
|
|
946
|
-
description
|
|
945
|
+
agreedToAgreement Boolean @default(false)
|
|
946
|
+
description String?
|
|
947
|
+
status ServiceStatus
|
|
947
948
|
}
|
|
948
949
|
|
|
949
950
|
model EventService {
|