@@ -7,7 +7,7 @@ datasource db {
77}
88
99generator client {
10- provider = " prisma-client-js "
10+ provider = " prisma-client-js "
1111 previewFeatures = [" filterJson " ]
1212}
1313
@@ -57,39 +57,39 @@ model Event {
5757 metadata Json ?
5858
5959 // Data
60- name String
61- startDate DateTime
62- endDate DateTime
63- ticketPrice Float
64- earlyBirdPrice Float
65- earlyBirdCutoff DateTime
66- groupPrice Float ?
67- registrationCutoff DateTime
68- managers String [] // codeday account usernames
69- registrationsOpen Boolean @default (false )
70- contentfulWebname String ?
71- showcaseId String ?
72- minorWaiverId String ?
73- adultWaiverId String ?
74- eventRestrictions EventRestriction []
60+ name String
61+ startDate DateTime
62+ endDate DateTime
63+ ticketPrice Float
64+ earlyBirdPrice Float
65+ earlyBirdCutoff DateTime
66+ groupPrice Float ?
67+ registrationCutoff DateTime
68+ managers String [] // codeday account usernames
69+ registrationsOpen Boolean @default (false )
70+ contentfulWebname String ?
71+ showcaseId String ?
72+ minorWaiverId String ?
73+ adultWaiverId String ?
74+ eventRestrictions EventRestriction []
7575 contentfulEventRestrictions String []
76- timezone String ?
77- majorityAge Int @default (18 )
78- overnightMinAge Int ?
79- minAge Int ?
80- maxAge Int ?
81- requiresPromoCode Boolean @default (false )
76+ timezone String ?
77+ majorityAge Int @default (18 )
78+ overnightMinAge Int ?
79+ minAge Int ?
80+ maxAge Int ?
81+ requiresPromoCode Boolean @default (false )
8282 // Relations
83- eventGroup EventGroup @relation (fields : [eventGroupId ] , references : [id ] )
84- eventGroupId String
85- venue Venue ? @relation (fields : [venueId ] , references : [id ] )
86- venueId String ?
87- sponsors Sponsor []
88- tickets Ticket []
89- schedule ScheduleItem []
90- promoCodes PromoCode []
91- interestedEmails MailingListMember []
92- webhooks Webhook []
83+ eventGroup EventGroup @relation (fields : [eventGroupId ] , references : [id ] )
84+ eventGroupId String
85+ venue Venue ? @relation (fields : [venueId ] , references : [id ] )
86+ venueId String ?
87+ sponsors Sponsor []
88+ tickets Ticket []
89+ schedule ScheduleItem []
90+ promoCodes PromoCode []
91+ interestedEmails MailingListMember []
92+ webhooks Webhook []
9393}
9494
9595enum WebhookService {
@@ -100,6 +100,7 @@ enum WebhookService {
100100enum WebhookType {
101101 ALL
102102 DIGEST
103+ WATCHDOG
103104}
104105
105106model Webhook {
@@ -190,7 +191,7 @@ model Person {
190191 age Int ?
191192 username String ?
192193 pronouns String ?
193- locale String @default (" en-US " )
194+ locale String @default (" en-US " )
194195
195196 Ticket Ticket []
196197}
@@ -206,21 +207,21 @@ enum TicketType {
206207
207208model Ticket {
208209 // Metadata
209- id String @id @default (cuid () )
210- createdAt DateTime @default (now () )
211- updatedAt DateTime @updatedAt
210+ id String @id @default (cuid () )
211+ createdAt DateTime @default (now () )
212+ updatedAt DateTime @updatedAt
212213 /// @TypeGraphQL.omit(input: ["update", "where", "orderBy"])
213- metadata Json ?
214+ metadata Json ?
214215 // Data
215- privateKey String ? @default (uuid () )
216- firstName String
217- lastName String
218- email String ?
219- phone String ?
220- whatsApp String ?
221- username String ?
222- locale String @default (" en-US " )
223- age Int ?
216+ privateKey String ? @default (uuid () )
217+ firstName String
218+ lastName String
219+ email String ?
220+ phone String ?
221+ whatsApp String ?
222+ username String ?
223+ locale String @default (" en-US " )
224+ age Int ?
224225
225226 waiverTrackingId String ?
226227 waiverUrl String ?
@@ -230,7 +231,7 @@ model Ticket {
230231 checkedIn DateTime ?
231232 checkedOut DateTime ?
232233
233- surveyResponses Json ?
234+ surveyResponses Json ?
234235
235236 couponCode String ?
236237 type TicketType @default (STUDENT )
@@ -386,4 +387,4 @@ model EventRestriction {
386387 title String
387388 details String ?
388389 Events Event []
389- }
390+ }
0 commit comments