@bash-app/bash-common 19.1.0 → 20.1.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": "19.1.0",
3
+ "version": "20.1.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",
@@ -877,8 +877,7 @@ model Service {
877
877
  id String @id @default(cuid())
878
878
  ownerId String
879
879
  owner User @relation(fields: [ownerId], references: [id], onDelete: Cascade)
880
- serviceId String
881
- dateCreated DateTime
880
+ dateCreated DateTime @default(now())
882
881
  email String
883
882
  location String?
884
883
  streetAddress String
@@ -887,7 +886,7 @@ model Service {
887
886
  postalCode String
888
887
  country String
889
888
  phone String
890
- name String
889
+ name String @default("New Service")
891
890
  coverPhoto String?
892
891
  agreedToAgreement Boolean?
893
892
  media Media[]
@@ -919,12 +918,13 @@ model Service {
919
918
  contactPhone String?
920
919
  contactEmail String?
921
920
  businessPhone String?
922
- bookings Booking[]
921
+ bookings Booking[]
923
922
 
924
923
  @@index([email])
925
924
  @@index([phone])
926
925
  }
927
926
 
927
+
928
928
  model EventService {
929
929
  id String @id @default(cuid())
930
930
  service Service? @relation(fields: [serviceId], references: [id])
@@ -20,6 +20,7 @@ import {
20
20
  Exhibitor,
21
21
  Sponsor,
22
22
  Organization,
23
+ Booking,
23
24
  } from "@prisma/client";
24
25
  import { AttendeeOfBashEvent } from "./definitions";
25
26
 
@@ -221,6 +222,7 @@ export interface ServiceExt extends Service {
221
222
  exhibitor?: Exhibitor[];
222
223
  sponsor?: Sponsor[];
223
224
  organization?: Organization[];
225
+ bookings?: Booking[];
224
226
  }
225
227
 
226
228
  export interface ServiceLinkExt extends ServiceLink {