@bash-app/bash-common 23.2.0 → 23.4.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 +40 -28
- package/src/extendedSchemas.ts +3 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -673,16 +673,15 @@ enum InvestmentType {
|
|
|
673
673
|
}
|
|
674
674
|
|
|
675
675
|
model Link {
|
|
676
|
-
id
|
|
677
|
-
url
|
|
678
|
-
type
|
|
679
|
-
icon
|
|
680
|
-
eventLinks
|
|
681
|
-
userLinks
|
|
682
|
-
serviceLinks
|
|
683
|
-
|
|
684
|
-
volunteerService
|
|
685
|
-
|
|
676
|
+
id String @id @default(cuid())
|
|
677
|
+
url String
|
|
678
|
+
type String?
|
|
679
|
+
icon String?
|
|
680
|
+
eventLinks EventLink[]
|
|
681
|
+
userLinks UserLink[]
|
|
682
|
+
serviceLinks ServiceLink[]
|
|
683
|
+
volunteerServiceId String?
|
|
684
|
+
volunteerService VolunteerService? @relation("VolunteerServiceLinks", fields: [volunteerServiceId], references: [id])
|
|
686
685
|
}
|
|
687
686
|
|
|
688
687
|
model Media {
|
|
@@ -706,9 +705,8 @@ model Media {
|
|
|
706
705
|
sponsorId String?
|
|
707
706
|
organization Organization? @relation(fields: [organizationId], references: [id])
|
|
708
707
|
organizationId String?
|
|
709
|
-
volunteerServiceId
|
|
710
|
-
volunteerService
|
|
711
|
-
|
|
708
|
+
volunteerServiceId String?
|
|
709
|
+
volunteerService VolunteerService? @relation("VolunteerServiceMedia", fields: [volunteerServiceId], references: [id])
|
|
712
710
|
}
|
|
713
711
|
|
|
714
712
|
enum MediaType {
|
|
@@ -928,15 +926,18 @@ model Business {
|
|
|
928
926
|
}
|
|
929
927
|
|
|
930
928
|
model VolunteerService {
|
|
931
|
-
id
|
|
932
|
-
businessId
|
|
933
|
-
business
|
|
934
|
-
|
|
935
|
-
serviceRange
|
|
936
|
-
media
|
|
937
|
-
links
|
|
938
|
-
availableDateTimes
|
|
939
|
-
fullName
|
|
929
|
+
id String @id @default(cuid())
|
|
930
|
+
businessId String @unique
|
|
931
|
+
business Business @relation(fields: [businessId], references: [id])
|
|
932
|
+
serviceRangeId String?
|
|
933
|
+
serviceRange ServiceRange? @relation(fields: [serviceRangeId], references: [id])
|
|
934
|
+
media Media[] @relation("VolunteerServiceMedia")
|
|
935
|
+
links Link[] @relation("VolunteerServiceLinks")
|
|
936
|
+
availableDateTimes Availability[] @relation("AvailableDateTimes")
|
|
937
|
+
fullName String?
|
|
938
|
+
address String?
|
|
939
|
+
email String?
|
|
940
|
+
phone String?
|
|
940
941
|
}
|
|
941
942
|
|
|
942
943
|
model EventService {
|
|
@@ -1289,11 +1290,11 @@ enum YearsOfExperience {
|
|
|
1289
1290
|
}
|
|
1290
1291
|
|
|
1291
1292
|
model ServiceRange {
|
|
1292
|
-
id
|
|
1293
|
-
min
|
|
1294
|
-
max
|
|
1295
|
-
volunteerServices
|
|
1296
|
-
venue
|
|
1293
|
+
id String @id @default(cuid())
|
|
1294
|
+
min Int @default(0)
|
|
1295
|
+
max Int @default(50)
|
|
1296
|
+
volunteerServices VolunteerService[]
|
|
1297
|
+
venue Venue?
|
|
1297
1298
|
}
|
|
1298
1299
|
|
|
1299
1300
|
model Availability {
|
|
@@ -1314,7 +1315,7 @@ model Availability {
|
|
|
1314
1315
|
sponsor Sponsor? @relation("AvailableDateTimes", fields: [sponsorId], references: [id])
|
|
1315
1316
|
organizationId String?
|
|
1316
1317
|
organization Organization? @relation("AvailableDateTimes", fields: [organizationId], references: [id])
|
|
1317
|
-
|
|
1318
|
+
volunteerServiceId String?
|
|
1318
1319
|
volunteerService VolunteerService? @relation("AvailableDateTimes", fields: [volunteerServiceId], references: [id])
|
|
1319
1320
|
}
|
|
1320
1321
|
|
|
@@ -1409,3 +1410,14 @@ model ServiceLink {
|
|
|
1409
1410
|
|
|
1410
1411
|
@@index([businessId])
|
|
1411
1412
|
}
|
|
1413
|
+
|
|
1414
|
+
enum ServiceTypes {
|
|
1415
|
+
Volunteer
|
|
1416
|
+
EventService
|
|
1417
|
+
EntertainmentService
|
|
1418
|
+
Vendor
|
|
1419
|
+
Exhibitor
|
|
1420
|
+
Sponsor
|
|
1421
|
+
Venue
|
|
1422
|
+
Organization
|
|
1423
|
+
}
|
package/src/extendedSchemas.ts
CHANGED