@optimatech88/titomeet-shared-lib 1.0.35 → 1.0.37
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/.github/workflows/npm-publish.yml +34 -0
- package/dist/auth/auth.guard.d.ts.map +1 -1
- package/dist/auth/auth.guard.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/package.json +44 -44
- package/prisma/migrations/20250805002500_added_provider_on_event/migration.sql +433 -0
- package/prisma/migrations/migration_lock.toml +1 -1
- package/prisma/schema.prisma +347 -339
- package/src/auth/auth.guard.ts +1 -0
- package/src/index.ts +0 -3
- package/prisma/migrations/20250320090311_save_data/migration.sql +0 -284
- package/prisma/migrations/20250327150554_added_provider_category/migration.sql +0 -46
- package/prisma/migrations/20250401154936_updates/migration.sql +0 -79
- package/prisma/migrations/20250401164742_added_orders/migration.sql +0 -143
- package/prisma/migrations/20250504144629_update_chat/migration.sql +0 -44
- package/prisma/migrations/20250528182042_updated_user_model/migration.sql +0 -11
- package/prisma/migrations/20250530152731_updated_model/migration.sql +0 -1
- package/prisma/migrations/20250530152845_updated_model/migration.sql +0 -1
- package/prisma/migrations/20250604094431_added_user_interests/migration.sql +0 -16
- package/prisma/migrations/20250604105002_added_category_children/migration.sql +0 -31
- package/prisma/migrations/20250611180441_added_chat_files/migration.sql +0 -11
- package/prisma/migrations/20250617111807_updated_notification_type/migration.sql +0 -13
- package/prisma/migrations/20250716081532_added_newslettter/migration.sql +0 -13
package/prisma/schema.prisma
CHANGED
|
@@ -1,339 +1,347 @@
|
|
|
1
|
-
generator client {
|
|
2
|
-
provider = "prisma-client-js"
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
datasource db {
|
|
6
|
-
provider = "postgresql"
|
|
7
|
-
url = env("DATABASE_URL")
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
model User {
|
|
11
|
-
id String @id @default(cuid())
|
|
12
|
-
username String @unique
|
|
13
|
-
email String @unique
|
|
14
|
-
firstName String
|
|
15
|
-
lastName String
|
|
16
|
-
password String?
|
|
17
|
-
role UserRole @default(USER)
|
|
18
|
-
profilePicture String?
|
|
19
|
-
createdAt DateTime @default(now())
|
|
20
|
-
updatedAt DateTime @updatedAt
|
|
21
|
-
emailVerified Boolean @default(false)
|
|
22
|
-
status UserStatus @default(ACTIVE)
|
|
23
|
-
accounts Account[]
|
|
24
|
-
chatUsers ChatUser[]
|
|
25
|
-
events Event[]
|
|
26
|
-
favorites Favorite[]
|
|
27
|
-
messages Message[]
|
|
28
|
-
notificationsReceived Notification[] @relation("NotificationRecipient")
|
|
29
|
-
notificationsSent Notification[] @relation("NotificationSender")
|
|
30
|
-
orders Order[]
|
|
31
|
-
providers Provider[]
|
|
32
|
-
reviews Review[]
|
|
33
|
-
|
|
34
|
-
userInterests UserInterests?
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
model Account {
|
|
38
|
-
id String @id @default(cuid())
|
|
39
|
-
refreshToken String @unique
|
|
40
|
-
expiresAt DateTime
|
|
41
|
-
userId String
|
|
42
|
-
user User @relation(fields: [userId], references: [id])
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
model Address {
|
|
46
|
-
id String @id @default(uuid())
|
|
47
|
-
name String
|
|
48
|
-
line2 String?
|
|
49
|
-
city String?
|
|
50
|
-
state String?
|
|
51
|
-
country String
|
|
52
|
-
postalCode String?
|
|
53
|
-
createdAt DateTime @default(now())
|
|
54
|
-
updatedAt DateTime @updatedAt
|
|
55
|
-
countryCode String?
|
|
56
|
-
latitude Float?
|
|
57
|
-
longitude Float?
|
|
58
|
-
type String @default("suburb")
|
|
59
|
-
events Event[]
|
|
60
|
-
Provider Provider[]
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
model EventCategory {
|
|
64
|
-
id
|
|
65
|
-
name
|
|
66
|
-
description
|
|
67
|
-
createdAt
|
|
68
|
-
updatedAt
|
|
69
|
-
active
|
|
70
|
-
events
|
|
71
|
-
userInterests UserInterests[]
|
|
72
|
-
|
|
73
|
-
parentId
|
|
74
|
-
parent
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
createdAt
|
|
208
|
-
updatedAt
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
createdAt
|
|
218
|
-
updatedAt
|
|
219
|
-
|
|
220
|
-
user
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
model
|
|
224
|
-
id
|
|
225
|
-
userId
|
|
226
|
-
eventId
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
1
|
+
generator client {
|
|
2
|
+
provider = "prisma-client-js"
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
datasource db {
|
|
6
|
+
provider = "postgresql"
|
|
7
|
+
url = env("DATABASE_URL")
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
model User {
|
|
11
|
+
id String @id @default(cuid())
|
|
12
|
+
username String @unique
|
|
13
|
+
email String @unique
|
|
14
|
+
firstName String
|
|
15
|
+
lastName String
|
|
16
|
+
password String?
|
|
17
|
+
role UserRole @default(USER)
|
|
18
|
+
profilePicture String?
|
|
19
|
+
createdAt DateTime @default(now())
|
|
20
|
+
updatedAt DateTime @updatedAt
|
|
21
|
+
emailVerified Boolean @default(false)
|
|
22
|
+
status UserStatus @default(ACTIVE)
|
|
23
|
+
accounts Account[]
|
|
24
|
+
chatUsers ChatUser[]
|
|
25
|
+
events Event[]
|
|
26
|
+
favorites Favorite[]
|
|
27
|
+
messages Message[]
|
|
28
|
+
notificationsReceived Notification[] @relation("NotificationRecipient")
|
|
29
|
+
notificationsSent Notification[] @relation("NotificationSender")
|
|
30
|
+
orders Order[]
|
|
31
|
+
providers Provider[]
|
|
32
|
+
reviews Review[]
|
|
33
|
+
|
|
34
|
+
userInterests UserInterests?
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
model Account {
|
|
38
|
+
id String @id @default(cuid())
|
|
39
|
+
refreshToken String @unique
|
|
40
|
+
expiresAt DateTime
|
|
41
|
+
userId String
|
|
42
|
+
user User @relation(fields: [userId], references: [id])
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
model Address {
|
|
46
|
+
id String @id @default(uuid())
|
|
47
|
+
name String
|
|
48
|
+
line2 String?
|
|
49
|
+
city String?
|
|
50
|
+
state String?
|
|
51
|
+
country String
|
|
52
|
+
postalCode String?
|
|
53
|
+
createdAt DateTime @default(now())
|
|
54
|
+
updatedAt DateTime @updatedAt
|
|
55
|
+
countryCode String?
|
|
56
|
+
latitude Float?
|
|
57
|
+
longitude Float?
|
|
58
|
+
type String @default("suburb")
|
|
59
|
+
events Event[]
|
|
60
|
+
Provider Provider[]
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
model EventCategory {
|
|
64
|
+
id String @id @default(cuid())
|
|
65
|
+
name String @unique
|
|
66
|
+
description String?
|
|
67
|
+
createdAt DateTime @default(now())
|
|
68
|
+
updatedAt DateTime @updatedAt
|
|
69
|
+
active Boolean @default(true)
|
|
70
|
+
events Event[] @relation("EventToEventCategory")
|
|
71
|
+
userInterests UserInterests[]
|
|
72
|
+
|
|
73
|
+
parentId String?
|
|
74
|
+
parent EventCategory? @relation("EventCategoryParent", fields: [parentId], references: [id])
|
|
75
|
+
|
|
76
|
+
children EventCategory[] @relation("EventCategoryParent")
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
model Event {
|
|
80
|
+
id String @id @default(cuid())
|
|
81
|
+
name String
|
|
82
|
+
description String
|
|
83
|
+
startDate DateTime
|
|
84
|
+
endDate DateTime
|
|
85
|
+
startTime String
|
|
86
|
+
endTime String
|
|
87
|
+
capacity Int
|
|
88
|
+
coverPicture String
|
|
89
|
+
badge String
|
|
90
|
+
tags String[]
|
|
91
|
+
accessType EventAccess @default(FREE)
|
|
92
|
+
visibility EventVisibility @default(PUBLIC)
|
|
93
|
+
status EventStatus @default(DRAFT)
|
|
94
|
+
addressId String
|
|
95
|
+
postedById String
|
|
96
|
+
createdAt DateTime @default(now())
|
|
97
|
+
updatedAt DateTime @updatedAt
|
|
98
|
+
chat Chat?
|
|
99
|
+
address Address @relation(fields: [addressId], references: [id])
|
|
100
|
+
postedBy User @relation(fields: [postedById], references: [id])
|
|
101
|
+
prices EventPrice[]
|
|
102
|
+
favorites Favorite[]
|
|
103
|
+
orders Order[]
|
|
104
|
+
categories EventCategory[] @relation("EventToEventCategory")
|
|
105
|
+
providers ProviderOnEvent[]
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
model EventPrice {
|
|
109
|
+
id String @id @default(uuid())
|
|
110
|
+
name String
|
|
111
|
+
amount Float
|
|
112
|
+
description String?
|
|
113
|
+
eventId String
|
|
114
|
+
createdAt DateTime @default(now())
|
|
115
|
+
updatedAt DateTime @updatedAt
|
|
116
|
+
event Event @relation(fields: [eventId], references: [id])
|
|
117
|
+
orderItems OrderItem[]
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
model Chat {
|
|
121
|
+
id String @id @default(cuid())
|
|
122
|
+
name String
|
|
123
|
+
eventId String @unique
|
|
124
|
+
createdAt DateTime @default(now())
|
|
125
|
+
updatedAt DateTime @updatedAt
|
|
126
|
+
event Event @relation(fields: [eventId], references: [id])
|
|
127
|
+
users ChatUser[]
|
|
128
|
+
messages Message[]
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
model ChatUser {
|
|
132
|
+
id String @id @default(cuid())
|
|
133
|
+
chatId String
|
|
134
|
+
userId String
|
|
135
|
+
createdAt DateTime @default(now())
|
|
136
|
+
updatedAt DateTime @updatedAt
|
|
137
|
+
chat Chat @relation(fields: [chatId], references: [id])
|
|
138
|
+
user User @relation(fields: [userId], references: [id])
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
model Message {
|
|
142
|
+
id String @id @default(cuid())
|
|
143
|
+
chatId String
|
|
144
|
+
senderId String
|
|
145
|
+
createdAt DateTime @default(now())
|
|
146
|
+
updatedAt DateTime @updatedAt
|
|
147
|
+
files Json?
|
|
148
|
+
text String
|
|
149
|
+
chat Chat @relation(fields: [chatId], references: [id])
|
|
150
|
+
sender User @relation(fields: [senderId], references: [id])
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
model Notification {
|
|
154
|
+
id String @id @default(cuid())
|
|
155
|
+
notifiedToId String
|
|
156
|
+
userId String?
|
|
157
|
+
type NotificationType
|
|
158
|
+
read Boolean @default(false)
|
|
159
|
+
data Json?
|
|
160
|
+
createdAt DateTime @default(now())
|
|
161
|
+
updatedAt DateTime @updatedAt
|
|
162
|
+
notifiedTo User @relation("NotificationRecipient", fields: [notifiedToId], references: [id])
|
|
163
|
+
user User? @relation("NotificationSender", fields: [userId], references: [id])
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
model ProviderCategory {
|
|
167
|
+
id String @id @default(cuid())
|
|
168
|
+
name String @unique
|
|
169
|
+
description String?
|
|
170
|
+
active Boolean @default(true)
|
|
171
|
+
createdAt DateTime @default(now())
|
|
172
|
+
updatedAt DateTime @updatedAt
|
|
173
|
+
providers Provider[]
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
model Provider {
|
|
177
|
+
id String @id @default(cuid())
|
|
178
|
+
name String
|
|
179
|
+
description String?
|
|
180
|
+
image String?
|
|
181
|
+
userId String
|
|
182
|
+
status ProviderStatus @default(PENDING)
|
|
183
|
+
createdAt DateTime @default(now())
|
|
184
|
+
updatedAt DateTime @updatedAt
|
|
185
|
+
addressId String?
|
|
186
|
+
categoryId String
|
|
187
|
+
docs Json?
|
|
188
|
+
email String?
|
|
189
|
+
phoneNumber String?
|
|
190
|
+
pricingDetails String?
|
|
191
|
+
rating Float?
|
|
192
|
+
website String?
|
|
193
|
+
address Address? @relation(fields: [addressId], references: [id])
|
|
194
|
+
category ProviderCategory @relation(fields: [categoryId], references: [id])
|
|
195
|
+
user User @relation(fields: [userId], references: [id])
|
|
196
|
+
reviews Review[]
|
|
197
|
+
events ProviderOnEvent[]
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
model ProviderOnEvent {
|
|
201
|
+
id String @id @default(cuid())
|
|
202
|
+
providerId String
|
|
203
|
+
provider Provider @relation(fields: [providerId], references: [id])
|
|
204
|
+
eventId String
|
|
205
|
+
event Event @relation(fields: [eventId], references: [id])
|
|
206
|
+
|
|
207
|
+
createdAt DateTime @default(now())
|
|
208
|
+
updatedAt DateTime @updatedAt
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
model Review {
|
|
212
|
+
id String @id @default(cuid())
|
|
213
|
+
rating Float
|
|
214
|
+
comment String?
|
|
215
|
+
providerId String
|
|
216
|
+
userId String
|
|
217
|
+
createdAt DateTime @default(now())
|
|
218
|
+
updatedAt DateTime @updatedAt
|
|
219
|
+
provider Provider @relation(fields: [providerId], references: [id])
|
|
220
|
+
user User @relation(fields: [userId], references: [id])
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
model Favorite {
|
|
224
|
+
id String @id @default(cuid())
|
|
225
|
+
userId String
|
|
226
|
+
eventId String
|
|
227
|
+
createdAt DateTime @default(now())
|
|
228
|
+
updatedAt DateTime @updatedAt
|
|
229
|
+
event Event @relation(fields: [eventId], references: [id])
|
|
230
|
+
user User @relation(fields: [userId], references: [id])
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
model Order {
|
|
234
|
+
id String @id @default(cuid())
|
|
235
|
+
userId String
|
|
236
|
+
eventId String
|
|
237
|
+
email String
|
|
238
|
+
status OrderStatus @default(PENDING)
|
|
239
|
+
totalAmount Float
|
|
240
|
+
paymentIntentId String? @unique
|
|
241
|
+
paymentStatus PaymentStatus @default(PENDING)
|
|
242
|
+
createdAt DateTime @default(now())
|
|
243
|
+
updatedAt DateTime @updatedAt
|
|
244
|
+
event Event @relation(fields: [eventId], references: [id])
|
|
245
|
+
user User @relation(fields: [userId], references: [id])
|
|
246
|
+
items OrderItem[]
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
model OrderItem {
|
|
250
|
+
id String @id @default(cuid())
|
|
251
|
+
orderId String
|
|
252
|
+
eventPriceId String
|
|
253
|
+
quantity Int
|
|
254
|
+
unitPrice Float
|
|
255
|
+
createdAt DateTime @default(now())
|
|
256
|
+
updatedAt DateTime @updatedAt
|
|
257
|
+
eventPrice EventPrice @relation(fields: [eventPriceId], references: [id])
|
|
258
|
+
order Order @relation(fields: [orderId], references: [id])
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
model UserInterests {
|
|
262
|
+
id String @id @default(cuid())
|
|
263
|
+
|
|
264
|
+
interests EventCategory[]
|
|
265
|
+
|
|
266
|
+
userId String @unique
|
|
267
|
+
user User @relation(fields: [userId], references: [id])
|
|
268
|
+
|
|
269
|
+
createdAt DateTime @default(now())
|
|
270
|
+
updatedAt DateTime @updatedAt
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
enum UserRole {
|
|
274
|
+
SUPER_ADMIN
|
|
275
|
+
ADMIN
|
|
276
|
+
USER
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
enum UserStatus {
|
|
280
|
+
ACTIVE
|
|
281
|
+
INACTIVE
|
|
282
|
+
DELETED
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
enum EventAccess {
|
|
286
|
+
FREE
|
|
287
|
+
PAID
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
enum EventVisibility {
|
|
291
|
+
PUBLIC
|
|
292
|
+
PRIVATE
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
enum EventStatus {
|
|
296
|
+
DRAFT
|
|
297
|
+
PUBLISHED
|
|
298
|
+
PENDING
|
|
299
|
+
CANCELLED
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
enum MediaType {
|
|
303
|
+
image
|
|
304
|
+
video
|
|
305
|
+
audio
|
|
306
|
+
pdf
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
enum NotificationType {
|
|
310
|
+
NEW_MESSAGE
|
|
311
|
+
EVENT_REMINDER
|
|
312
|
+
EVENT_PARTICIPATION_CONFIRMATION
|
|
313
|
+
EVENT_VALIDATION
|
|
314
|
+
EVENT_REJECTION
|
|
315
|
+
EVENT_ASSIGNMENT
|
|
316
|
+
EVENT_ASSIGNMENT_APPROVAL
|
|
317
|
+
EVENT_ASSIGNMENT_REJECTION
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
enum ProviderStatus {
|
|
321
|
+
PENDING
|
|
322
|
+
APPROVED
|
|
323
|
+
REJECTED
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
enum OrderStatus {
|
|
327
|
+
PENDING
|
|
328
|
+
CONFIRMED
|
|
329
|
+
CANCELLED
|
|
330
|
+
REFUNDED
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
enum PaymentStatus {
|
|
334
|
+
PENDING
|
|
335
|
+
COMPLETED
|
|
336
|
+
FAILED
|
|
337
|
+
REFUNDED
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
model Newsletter {
|
|
341
|
+
id String @id @default(cuid())
|
|
342
|
+
email String @unique
|
|
343
|
+
unsubscribedAt DateTime?
|
|
344
|
+
|
|
345
|
+
createdAt DateTime @default(now())
|
|
346
|
+
updatedAt DateTime @updatedAt
|
|
347
|
+
}
|