@bash-app/bash-common 28.0.0 → 28.2.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 +9 -3
- package/src/extendedSchemas.ts +7 -7
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -788,7 +788,8 @@ model User {
|
|
|
788
788
|
gender Gender?
|
|
789
789
|
sex Sex?
|
|
790
790
|
roles UserRole[] @default([User])
|
|
791
|
-
|
|
791
|
+
ownedServices Service[] @relation("OwnedService")
|
|
792
|
+
createdServices Service[] @relation("CreatedService")
|
|
792
793
|
createdEvents BashEvent[] @relation("CreatedEvent")
|
|
793
794
|
ticketsISent Ticket[] @relation("TicketsISent")
|
|
794
795
|
ticketsIOwn Ticket[] @relation("TicketsIOwn")
|
|
@@ -834,7 +835,7 @@ model User {
|
|
|
834
835
|
bookingForMe Booking[]
|
|
835
836
|
userSubscription UserSubscription?
|
|
836
837
|
serviceSubcriptions ServiceSubscription[]
|
|
837
|
-
|
|
838
|
+
volunteerService VolunteerService[]
|
|
838
839
|
}
|
|
839
840
|
|
|
840
841
|
model Contact {
|
|
@@ -873,8 +874,13 @@ model Service {
|
|
|
873
874
|
serviceType ServiceTypes
|
|
874
875
|
serviceStatus ServiceStatus @default(Draft)
|
|
875
876
|
|
|
877
|
+
//current owner
|
|
876
878
|
ownerId String?
|
|
877
|
-
owner User? @relation("
|
|
879
|
+
owner User? @relation("OwnedService", fields: [ownerId], references: [id])
|
|
880
|
+
|
|
881
|
+
//original creator
|
|
882
|
+
creatorId String?
|
|
883
|
+
creator User? @relation("CreatedService", fields: [creatorId], references: [id])
|
|
878
884
|
|
|
879
885
|
createdAt DateTime @default(now())
|
|
880
886
|
updatedAt DateTime @updatedAt
|
package/src/extendedSchemas.ts
CHANGED
|
@@ -173,37 +173,37 @@ export interface ServiceExt extends Service {
|
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
export interface EventServiceExt extends EventService {
|
|
176
|
-
service:
|
|
176
|
+
service: ServiceExt;
|
|
177
177
|
crowdSize?: AmountOfGuests;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
export interface EntertainmentServiceExt extends EntertainmentService {
|
|
181
|
-
service:
|
|
181
|
+
service: ServiceExt;
|
|
182
182
|
crowdSize?: AmountOfGuests;
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
export interface ExhibitorExt extends Exhibitor {
|
|
186
|
-
service:
|
|
186
|
+
service: ServiceExt;
|
|
187
187
|
crowdSize?: AmountOfGuests;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
export interface SponsorExt extends Sponsor {
|
|
191
|
-
service:
|
|
191
|
+
service: ServiceExt;
|
|
192
192
|
crowdSize?: AmountOfGuests;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
export interface VendorExt extends Vendor {
|
|
196
|
-
service:
|
|
196
|
+
service: ServiceExt;
|
|
197
197
|
crowdSize?: AmountOfGuests;
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
export interface VenueExt extends Venue {
|
|
201
|
-
service?:
|
|
201
|
+
service?: ServiceExt;
|
|
202
202
|
crowdSize?: AmountOfGuests;
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
export interface OrganizationExt extends Organization {
|
|
206
|
-
service?:
|
|
206
|
+
service?: ServiceExt;
|
|
207
207
|
amountOfGuests?: AmountOfGuests;
|
|
208
208
|
}
|
|
209
209
|
//-----------------------------------------
|