@bash-app/bash-common 23.7.0 → 23.9.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 +3 -2
- package/src/extendedSchemas.ts +1 -1
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -927,8 +927,9 @@ model Business {
|
|
|
927
927
|
|
|
928
928
|
model VolunteerService {
|
|
929
929
|
id String @id @default(cuid())
|
|
930
|
-
businessId String @unique
|
|
931
|
-
business Business @relation(fields: [businessId], references: [id])
|
|
930
|
+
businessId String? @unique
|
|
931
|
+
business Business? @relation(fields: [businessId], references: [id])
|
|
932
|
+
userId String // User ID for individual volunteers
|
|
932
933
|
serviceRangeId String?
|
|
933
934
|
serviceRange ServiceRange? @relation(fields: [serviceRangeId], references: [id])
|
|
934
935
|
media Media[] @relation("VolunteerServiceMedia")
|
package/src/extendedSchemas.ts
CHANGED
|
@@ -210,7 +210,6 @@ export const VENUE_DATA_TO_INCLUDE = {
|
|
|
210
210
|
} satisfies Prisma.VenueInclude;
|
|
211
211
|
|
|
212
212
|
export const VOLUNTEER_DATA_TO_INCLUDE = {
|
|
213
|
-
business: true,
|
|
214
213
|
links: {
|
|
215
214
|
include: {
|
|
216
215
|
serviceLinks: true,
|
|
@@ -222,6 +221,7 @@ export const VOLUNTEER_DATA_TO_INCLUDE = {
|
|
|
222
221
|
|
|
223
222
|
|
|
224
223
|
|
|
224
|
+
|
|
225
225
|
export interface OrganizationExt extends Organization {
|
|
226
226
|
business: Business;
|
|
227
227
|
availableDateTimes: Availability[];
|