@stacksjs/database 0.72.23 → 0.72.25
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/dist/framework-schema.d.ts +2032 -0
- package/dist/framework-schema.js +0 -0
- package/dist/index.d.ts +2 -1
- package/dist/utils.d.ts +46 -10
- package/package.json +10 -10
|
@@ -0,0 +1,2032 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// AUTO-GENERATED by `buddy generate:db-types --framework` — do not edit.
|
|
3
|
+
//
|
|
4
|
+
// The shapes of the tables the framework itself ships, so framework code gets
|
|
5
|
+
// real rows from `db.selectFrom(...)` without asserting them. An application's
|
|
6
|
+
// own tables (and its overrides of these) live in `DatabaseSchema`, which takes
|
|
7
|
+
// precedence - see `RowOf` in `./utils`.
|
|
8
|
+
export declare interface FrameworkSchema {
|
|
9
|
+
activities: {
|
|
10
|
+
id: number
|
|
11
|
+
uuid: string
|
|
12
|
+
created_at: string
|
|
13
|
+
updated_at: string | null
|
|
14
|
+
type: string
|
|
15
|
+
description: string
|
|
16
|
+
subject_type: string
|
|
17
|
+
subject_id: number
|
|
18
|
+
causer: string
|
|
19
|
+
properties: string
|
|
20
|
+
ip_address: string
|
|
21
|
+
user_id: number
|
|
22
|
+
createdAt: string
|
|
23
|
+
updatedAt: string | null
|
|
24
|
+
subjectType: string
|
|
25
|
+
subjectId: number
|
|
26
|
+
ipAddress: string
|
|
27
|
+
userId: number
|
|
28
|
+
}
|
|
29
|
+
analytics_events: {
|
|
30
|
+
id: number
|
|
31
|
+
uuid: string
|
|
32
|
+
created_at: string
|
|
33
|
+
updated_at: string | null
|
|
34
|
+
name: string
|
|
35
|
+
category: string
|
|
36
|
+
path: string
|
|
37
|
+
value: number
|
|
38
|
+
currency: string
|
|
39
|
+
properties: string
|
|
40
|
+
createdAt: string
|
|
41
|
+
updatedAt: string | null
|
|
42
|
+
}
|
|
43
|
+
auction_items: {
|
|
44
|
+
id: number
|
|
45
|
+
uuid: string
|
|
46
|
+
created_at: string
|
|
47
|
+
updated_at: string | null
|
|
48
|
+
lot_number: number
|
|
49
|
+
title: string
|
|
50
|
+
description: string
|
|
51
|
+
image_url: string
|
|
52
|
+
category: string
|
|
53
|
+
donor_name: string
|
|
54
|
+
fair_market_value: number
|
|
55
|
+
starting_bid: number
|
|
56
|
+
min_increment: number
|
|
57
|
+
buy_now_price: number
|
|
58
|
+
reserve_price: number
|
|
59
|
+
status: "open" | "closed" | "sold" | "passed"
|
|
60
|
+
closes_at: string
|
|
61
|
+
extension_count: number
|
|
62
|
+
auction_id: number
|
|
63
|
+
createdAt: string
|
|
64
|
+
updatedAt: string | null
|
|
65
|
+
lotNumber: number
|
|
66
|
+
imageUrl: string
|
|
67
|
+
donorName: string
|
|
68
|
+
fairMarketValue: number
|
|
69
|
+
startingBid: number
|
|
70
|
+
minIncrement: number
|
|
71
|
+
buyNowPrice: number
|
|
72
|
+
reservePrice: number
|
|
73
|
+
closesAt: string
|
|
74
|
+
extensionCount: number
|
|
75
|
+
auctionId: number
|
|
76
|
+
}
|
|
77
|
+
auctions: {
|
|
78
|
+
id: number
|
|
79
|
+
uuid: string
|
|
80
|
+
created_at: string
|
|
81
|
+
updated_at: string | null
|
|
82
|
+
event_id: number
|
|
83
|
+
title: string
|
|
84
|
+
description: string
|
|
85
|
+
status: "draft" | "preview" | "open" | "closed" | "settled"
|
|
86
|
+
currency: string
|
|
87
|
+
goal_amount: number
|
|
88
|
+
opens_at: string
|
|
89
|
+
closes_at: string
|
|
90
|
+
anti_snipe_minutes: number
|
|
91
|
+
extend_on_bid_window_minutes: number
|
|
92
|
+
max_extensions: number
|
|
93
|
+
createdAt: string
|
|
94
|
+
updatedAt: string | null
|
|
95
|
+
eventId: number
|
|
96
|
+
goalAmount: number
|
|
97
|
+
opensAt: string
|
|
98
|
+
closesAt: string
|
|
99
|
+
antiSnipeMinutes: number
|
|
100
|
+
extendOnBidWindowMinutes: number
|
|
101
|
+
maxExtensions: number
|
|
102
|
+
}
|
|
103
|
+
authors: {
|
|
104
|
+
id: number
|
|
105
|
+
uuid: string
|
|
106
|
+
created_at: string
|
|
107
|
+
updated_at: string | null
|
|
108
|
+
name: string
|
|
109
|
+
email: string
|
|
110
|
+
bio: string
|
|
111
|
+
avatar: string
|
|
112
|
+
user_id: number
|
|
113
|
+
createdAt: string
|
|
114
|
+
updatedAt: string | null
|
|
115
|
+
userId: number
|
|
116
|
+
}
|
|
117
|
+
automation_runs: {
|
|
118
|
+
id: number
|
|
119
|
+
uuid: string
|
|
120
|
+
created_at: string
|
|
121
|
+
updated_at: string | null
|
|
122
|
+
status: "queued" | "running" | "waiting" | "completed" | "failed" | "cancelled"
|
|
123
|
+
current_node_id: string
|
|
124
|
+
version: number
|
|
125
|
+
subject_type: string
|
|
126
|
+
subject_id: string
|
|
127
|
+
context: unknown
|
|
128
|
+
idempotency_key: string
|
|
129
|
+
started_at: string
|
|
130
|
+
finished_at: string
|
|
131
|
+
error: string
|
|
132
|
+
team_id: number
|
|
133
|
+
automation_id: number
|
|
134
|
+
createdAt: string
|
|
135
|
+
updatedAt: string | null
|
|
136
|
+
currentNodeId: string
|
|
137
|
+
subjectType: string
|
|
138
|
+
subjectId: string
|
|
139
|
+
idempotencyKey: string
|
|
140
|
+
startedAt: string
|
|
141
|
+
finishedAt: string
|
|
142
|
+
teamId: number
|
|
143
|
+
automationId: number
|
|
144
|
+
}
|
|
145
|
+
automations: {
|
|
146
|
+
id: number
|
|
147
|
+
uuid: string
|
|
148
|
+
created_at: string
|
|
149
|
+
updated_at: string | null
|
|
150
|
+
name: string
|
|
151
|
+
status: "draft" | "active" | "paused" | "archived"
|
|
152
|
+
version: number
|
|
153
|
+
trigger: unknown
|
|
154
|
+
graph: unknown
|
|
155
|
+
published_at: string
|
|
156
|
+
team_id: number
|
|
157
|
+
createdAt: string
|
|
158
|
+
updatedAt: string | null
|
|
159
|
+
publishedAt: string
|
|
160
|
+
teamId: number
|
|
161
|
+
}
|
|
162
|
+
bids: {
|
|
163
|
+
id: number
|
|
164
|
+
uuid: string
|
|
165
|
+
created_at: string
|
|
166
|
+
updated_at: string | null
|
|
167
|
+
bidder_name: string
|
|
168
|
+
bidder_email: string
|
|
169
|
+
amount: number
|
|
170
|
+
max_amount: number
|
|
171
|
+
status: "leading" | "outbid" | "won" | "lost" | "invalid"
|
|
172
|
+
placed_at: string
|
|
173
|
+
auction_id: number
|
|
174
|
+
auction_item_id: number
|
|
175
|
+
createdAt: string
|
|
176
|
+
updatedAt: string | null
|
|
177
|
+
bidderName: string
|
|
178
|
+
bidderEmail: string
|
|
179
|
+
maxAmount: number
|
|
180
|
+
placedAt: string
|
|
181
|
+
auctionId: number
|
|
182
|
+
auctionItemId: number
|
|
183
|
+
}
|
|
184
|
+
board_columns: {
|
|
185
|
+
id: number
|
|
186
|
+
uuid: string
|
|
187
|
+
created_at: string
|
|
188
|
+
updated_at: string | null
|
|
189
|
+
board_id: number
|
|
190
|
+
name: string
|
|
191
|
+
position: number
|
|
192
|
+
card_limit: number
|
|
193
|
+
color: string
|
|
194
|
+
createdAt: string
|
|
195
|
+
updatedAt: string | null
|
|
196
|
+
boardId: number
|
|
197
|
+
cardLimit: number
|
|
198
|
+
}
|
|
199
|
+
boards: {
|
|
200
|
+
id: number
|
|
201
|
+
uuid: string
|
|
202
|
+
created_at: string
|
|
203
|
+
updated_at: string | null
|
|
204
|
+
name: string
|
|
205
|
+
description: string
|
|
206
|
+
icon: string
|
|
207
|
+
color: string
|
|
208
|
+
position: number
|
|
209
|
+
archived: boolean
|
|
210
|
+
createdAt: string
|
|
211
|
+
updatedAt: string | null
|
|
212
|
+
}
|
|
213
|
+
campaign_sends: {
|
|
214
|
+
id: number
|
|
215
|
+
uuid: string
|
|
216
|
+
created_at: string
|
|
217
|
+
updated_at: string | null
|
|
218
|
+
campaign_id: number
|
|
219
|
+
subscriber_id: number
|
|
220
|
+
email_list_id: number
|
|
221
|
+
status: "queued" | "deferred" | "sending" | "sent" | "delivered" | "failed" | "undelivered" | "bounced" | "complained" | "suppressed" | "cancelled"
|
|
222
|
+
channel: "email" | "sms" | "push"
|
|
223
|
+
recipient: string
|
|
224
|
+
idempotency_key: string
|
|
225
|
+
provider_message_id: string
|
|
226
|
+
error: string
|
|
227
|
+
sent_at: string
|
|
228
|
+
opened_at: string
|
|
229
|
+
clicked_at: string
|
|
230
|
+
delivered_at: string
|
|
231
|
+
failed_at: string
|
|
232
|
+
segments: number
|
|
233
|
+
cost: number
|
|
234
|
+
metadata: unknown
|
|
235
|
+
team_id: number
|
|
236
|
+
campaign_variant_id: number
|
|
237
|
+
createdAt: string
|
|
238
|
+
updatedAt: string | null
|
|
239
|
+
campaignId: number
|
|
240
|
+
subscriberId: number
|
|
241
|
+
emailListId: number
|
|
242
|
+
idempotencyKey: string
|
|
243
|
+
providerMessageId: string
|
|
244
|
+
sentAt: string
|
|
245
|
+
openedAt: string
|
|
246
|
+
clickedAt: string
|
|
247
|
+
deliveredAt: string
|
|
248
|
+
failedAt: string
|
|
249
|
+
teamId: number
|
|
250
|
+
campaignVariantId: number
|
|
251
|
+
}
|
|
252
|
+
campaign_variants: {
|
|
253
|
+
id: number
|
|
254
|
+
uuid: string
|
|
255
|
+
created_at: string
|
|
256
|
+
updated_at: string | null
|
|
257
|
+
name: string
|
|
258
|
+
subject: string
|
|
259
|
+
content: unknown
|
|
260
|
+
allocation: number
|
|
261
|
+
sent_count: number
|
|
262
|
+
open_count: number
|
|
263
|
+
click_count: number
|
|
264
|
+
conversion_count: number
|
|
265
|
+
is_winner: boolean
|
|
266
|
+
team_id: number
|
|
267
|
+
campaign_id: number
|
|
268
|
+
createdAt: string
|
|
269
|
+
updatedAt: string | null
|
|
270
|
+
sentCount: number
|
|
271
|
+
openCount: number
|
|
272
|
+
clickCount: number
|
|
273
|
+
conversionCount: number
|
|
274
|
+
isWinner: boolean
|
|
275
|
+
teamId: number
|
|
276
|
+
campaignId: number
|
|
277
|
+
}
|
|
278
|
+
campaigns: {
|
|
279
|
+
id: number
|
|
280
|
+
uuid: string
|
|
281
|
+
created_at: string
|
|
282
|
+
updated_at: string | null
|
|
283
|
+
name: string
|
|
284
|
+
description: string
|
|
285
|
+
type: "email" | "sms" | "push" | "social" | "multi-channel"
|
|
286
|
+
status: "draft" | "scheduled" | "sending" | "sent" | "paused" | "cancelled" | "failed" | "active" | "completed" | "archived"
|
|
287
|
+
subject: string
|
|
288
|
+
template: string
|
|
289
|
+
text: string
|
|
290
|
+
content: unknown
|
|
291
|
+
channel_settings: unknown
|
|
292
|
+
segment_definition: unknown
|
|
293
|
+
from_name: string
|
|
294
|
+
from_address: string
|
|
295
|
+
reply_to: string
|
|
296
|
+
timezone: string
|
|
297
|
+
recurrence: string
|
|
298
|
+
experiment_metric: "open_rate" | "click_rate" | "conversion_rate"
|
|
299
|
+
email_list_id: number
|
|
300
|
+
scheduled_at: string
|
|
301
|
+
sent_at: string
|
|
302
|
+
audience_size: number
|
|
303
|
+
sent_count: number
|
|
304
|
+
open_rate: number
|
|
305
|
+
click_rate: number
|
|
306
|
+
conversion_rate: number
|
|
307
|
+
budget: number
|
|
308
|
+
spent: number
|
|
309
|
+
currency: string
|
|
310
|
+
start_date: string
|
|
311
|
+
end_date: string
|
|
312
|
+
team_id: number
|
|
313
|
+
createdAt: string
|
|
314
|
+
updatedAt: string | null
|
|
315
|
+
channelSettings: unknown
|
|
316
|
+
segmentDefinition: unknown
|
|
317
|
+
fromName: string
|
|
318
|
+
fromAddress: string
|
|
319
|
+
replyTo: string
|
|
320
|
+
experimentMetric: "open_rate" | "click_rate" | "conversion_rate"
|
|
321
|
+
emailListId: number
|
|
322
|
+
scheduledAt: string
|
|
323
|
+
sentAt: string
|
|
324
|
+
audienceSize: number
|
|
325
|
+
sentCount: number
|
|
326
|
+
openRate: number
|
|
327
|
+
clickRate: number
|
|
328
|
+
conversionRate: number
|
|
329
|
+
startDate: string
|
|
330
|
+
endDate: string
|
|
331
|
+
teamId: number
|
|
332
|
+
}
|
|
333
|
+
card_comments: {
|
|
334
|
+
id: number
|
|
335
|
+
uuid: string
|
|
336
|
+
created_at: string
|
|
337
|
+
updated_at: string | null
|
|
338
|
+
card_id: number
|
|
339
|
+
user_id: number
|
|
340
|
+
body: string
|
|
341
|
+
createdAt: string
|
|
342
|
+
updatedAt: string | null
|
|
343
|
+
cardId: number
|
|
344
|
+
userId: number
|
|
345
|
+
}
|
|
346
|
+
cards: {
|
|
347
|
+
id: number
|
|
348
|
+
uuid: string
|
|
349
|
+
created_at: string
|
|
350
|
+
updated_at: string | null
|
|
351
|
+
column_id: number
|
|
352
|
+
board_id: number
|
|
353
|
+
title: string
|
|
354
|
+
description: string
|
|
355
|
+
position: number
|
|
356
|
+
created_by_user_id: number
|
|
357
|
+
due_date: string
|
|
358
|
+
archived: boolean
|
|
359
|
+
board_column_id: number
|
|
360
|
+
user_id: number
|
|
361
|
+
createdAt: string
|
|
362
|
+
updatedAt: string | null
|
|
363
|
+
columnId: number
|
|
364
|
+
boardId: number
|
|
365
|
+
createdByUserId: number
|
|
366
|
+
dueDate: string
|
|
367
|
+
boardColumnId: number
|
|
368
|
+
userId: number
|
|
369
|
+
}
|
|
370
|
+
cart_items: {
|
|
371
|
+
id: number
|
|
372
|
+
uuid: string
|
|
373
|
+
created_at: string
|
|
374
|
+
updated_at: string | null
|
|
375
|
+
quantity: number
|
|
376
|
+
unit_price: number
|
|
377
|
+
total_price: number
|
|
378
|
+
tax_rate: number
|
|
379
|
+
tax_amount: number
|
|
380
|
+
discount_percentage: number
|
|
381
|
+
discount_amount: number
|
|
382
|
+
product_name: string
|
|
383
|
+
product_sku: string
|
|
384
|
+
product_image: string
|
|
385
|
+
notes: string
|
|
386
|
+
cart_id: number
|
|
387
|
+
createdAt: string
|
|
388
|
+
updatedAt: string | null
|
|
389
|
+
unitPrice: number
|
|
390
|
+
totalPrice: number
|
|
391
|
+
taxRate: number
|
|
392
|
+
taxAmount: number
|
|
393
|
+
discountPercentage: number
|
|
394
|
+
discountAmount: number
|
|
395
|
+
productName: string
|
|
396
|
+
productSku: string
|
|
397
|
+
productImage: string
|
|
398
|
+
cartId: number
|
|
399
|
+
}
|
|
400
|
+
carts: {
|
|
401
|
+
id: number
|
|
402
|
+
uuid: string
|
|
403
|
+
created_at: string
|
|
404
|
+
updated_at: string | null
|
|
405
|
+
status: "active" | "abandoned" | "converted" | "expired"
|
|
406
|
+
total_items: number
|
|
407
|
+
subtotal: number
|
|
408
|
+
tax_amount: number
|
|
409
|
+
discount_amount: number
|
|
410
|
+
total: number
|
|
411
|
+
expires_at: string
|
|
412
|
+
currency: string
|
|
413
|
+
notes: string
|
|
414
|
+
applied_coupon_id: string
|
|
415
|
+
customer_id: number
|
|
416
|
+
coupon_id: number
|
|
417
|
+
createdAt: string
|
|
418
|
+
updatedAt: string | null
|
|
419
|
+
totalItems: number
|
|
420
|
+
taxAmount: number
|
|
421
|
+
discountAmount: number
|
|
422
|
+
expiresAt: string
|
|
423
|
+
appliedCouponId: string
|
|
424
|
+
customerId: number
|
|
425
|
+
couponId: number
|
|
426
|
+
}
|
|
427
|
+
categories: {
|
|
428
|
+
id: number
|
|
429
|
+
uuid: string
|
|
430
|
+
created_at: string
|
|
431
|
+
updated_at: string | null
|
|
432
|
+
name: string
|
|
433
|
+
description: string
|
|
434
|
+
slug: string
|
|
435
|
+
image_url: string
|
|
436
|
+
is_active: boolean
|
|
437
|
+
parent_category_id: string
|
|
438
|
+
display_order: number
|
|
439
|
+
createdAt: string
|
|
440
|
+
updatedAt: string | null
|
|
441
|
+
imageUrl: string
|
|
442
|
+
isActive: boolean
|
|
443
|
+
parentCategoryId: string
|
|
444
|
+
displayOrder: number
|
|
445
|
+
}
|
|
446
|
+
categorizable_models: {
|
|
447
|
+
id: number
|
|
448
|
+
category_id: number
|
|
449
|
+
categorizable_id: number
|
|
450
|
+
categorizable_type: string
|
|
451
|
+
created_at: string
|
|
452
|
+
updated_at: string | null
|
|
453
|
+
}
|
|
454
|
+
comments: {
|
|
455
|
+
id: number
|
|
456
|
+
uuid: string
|
|
457
|
+
created_at: string
|
|
458
|
+
updated_at: string | null
|
|
459
|
+
author_name: string
|
|
460
|
+
author_email: string
|
|
461
|
+
content: string
|
|
462
|
+
body: string
|
|
463
|
+
post_title: string
|
|
464
|
+
status: "pending" | "approved" | "spam" | "trash"
|
|
465
|
+
ip_address: string
|
|
466
|
+
user_agent: string
|
|
467
|
+
is_approved: number
|
|
468
|
+
post_id: number
|
|
469
|
+
user_id: number
|
|
470
|
+
createdAt: string
|
|
471
|
+
updatedAt: string | null
|
|
472
|
+
authorName: string
|
|
473
|
+
authorEmail: string
|
|
474
|
+
postTitle: string
|
|
475
|
+
ipAddress: string
|
|
476
|
+
userAgent: string
|
|
477
|
+
isApproved: number
|
|
478
|
+
postId: number
|
|
479
|
+
userId: number
|
|
480
|
+
}
|
|
481
|
+
communication_suppressions: {
|
|
482
|
+
id: number
|
|
483
|
+
uuid: string
|
|
484
|
+
created_at: string
|
|
485
|
+
updated_at: string | null
|
|
486
|
+
recipient: string
|
|
487
|
+
channel: "email" | "sms" | "push"
|
|
488
|
+
reason: "unsubscribe" | "bounce" | "complaint" | "carrier" | "manual" | "legal"
|
|
489
|
+
source: string
|
|
490
|
+
suppressed_at: string
|
|
491
|
+
lifted_at: string
|
|
492
|
+
team_id: number
|
|
493
|
+
createdAt: string
|
|
494
|
+
updatedAt: string | null
|
|
495
|
+
suppressedAt: string
|
|
496
|
+
liftedAt: string
|
|
497
|
+
teamId: number
|
|
498
|
+
}
|
|
499
|
+
consent_events: {
|
|
500
|
+
id: number
|
|
501
|
+
uuid: string
|
|
502
|
+
created_at: string
|
|
503
|
+
updated_at: string | null
|
|
504
|
+
recipient: string
|
|
505
|
+
channel: "email" | "sms" | "push"
|
|
506
|
+
action: "requested" | "granted" | "revoked" | "confirmed" | "suppressed"
|
|
507
|
+
purpose: string
|
|
508
|
+
source: string
|
|
509
|
+
jurisdiction: string
|
|
510
|
+
policy_version: string
|
|
511
|
+
idempotency_key: string
|
|
512
|
+
proof: unknown
|
|
513
|
+
ip_address: string
|
|
514
|
+
occurred_at: string
|
|
515
|
+
team_id: number
|
|
516
|
+
createdAt: string
|
|
517
|
+
updatedAt: string | null
|
|
518
|
+
policyVersion: string
|
|
519
|
+
idempotencyKey: string
|
|
520
|
+
ipAddress: string
|
|
521
|
+
occurredAt: string
|
|
522
|
+
teamId: number
|
|
523
|
+
}
|
|
524
|
+
coupons: {
|
|
525
|
+
id: number
|
|
526
|
+
uuid: string
|
|
527
|
+
created_at: string
|
|
528
|
+
updated_at: string | null
|
|
529
|
+
code: string
|
|
530
|
+
description: string
|
|
531
|
+
status: "Active" | "Scheduled" | "Expired"
|
|
532
|
+
is_active: boolean
|
|
533
|
+
discount_type: "fixed_amount" | "percentage"
|
|
534
|
+
discount_value: number
|
|
535
|
+
min_order_amount: number
|
|
536
|
+
max_discount_amount: number
|
|
537
|
+
free_product_id: string
|
|
538
|
+
usage_limit: number
|
|
539
|
+
usage_count: number
|
|
540
|
+
start_date: string
|
|
541
|
+
end_date: string
|
|
542
|
+
product_id: number
|
|
543
|
+
createdAt: string
|
|
544
|
+
updatedAt: string | null
|
|
545
|
+
isActive: boolean
|
|
546
|
+
discountType: "fixed_amount" | "percentage"
|
|
547
|
+
discountValue: number
|
|
548
|
+
minOrderAmount: number
|
|
549
|
+
maxDiscountAmount: number
|
|
550
|
+
freeProductId: string
|
|
551
|
+
usageLimit: number
|
|
552
|
+
usageCount: number
|
|
553
|
+
startDate: string
|
|
554
|
+
endDate: string
|
|
555
|
+
productId: number
|
|
556
|
+
}
|
|
557
|
+
customers: {
|
|
558
|
+
id: number
|
|
559
|
+
uuid: string
|
|
560
|
+
created_at: string
|
|
561
|
+
updated_at: string | null
|
|
562
|
+
name: string
|
|
563
|
+
email: string
|
|
564
|
+
phone: string
|
|
565
|
+
total_spent: number
|
|
566
|
+
last_order: string
|
|
567
|
+
status: "Active" | "Inactive"
|
|
568
|
+
avatar: string
|
|
569
|
+
user_id: number
|
|
570
|
+
createdAt: string
|
|
571
|
+
updatedAt: string | null
|
|
572
|
+
totalSpent: number
|
|
573
|
+
lastOrder: string
|
|
574
|
+
userId: number
|
|
575
|
+
}
|
|
576
|
+
delivery_routes: {
|
|
577
|
+
id: number
|
|
578
|
+
uuid: string
|
|
579
|
+
created_at: string
|
|
580
|
+
updated_at: string | null
|
|
581
|
+
driver: string
|
|
582
|
+
vehicle: string
|
|
583
|
+
stops: number
|
|
584
|
+
delivery_time: number
|
|
585
|
+
total_distance: number
|
|
586
|
+
last_active: number
|
|
587
|
+
status: "planned" | "active" | "completed" | "cancelled"
|
|
588
|
+
started_at: string
|
|
589
|
+
completed_at: string
|
|
590
|
+
driver_id: number
|
|
591
|
+
createdAt: string
|
|
592
|
+
updatedAt: string | null
|
|
593
|
+
deliveryTime: number
|
|
594
|
+
totalDistance: number
|
|
595
|
+
lastActive: number
|
|
596
|
+
startedAt: string
|
|
597
|
+
completedAt: string
|
|
598
|
+
driverId: number
|
|
599
|
+
}
|
|
600
|
+
delivery_stops: {
|
|
601
|
+
id: number
|
|
602
|
+
uuid: string
|
|
603
|
+
created_at: string
|
|
604
|
+
updated_at: string | null
|
|
605
|
+
sequence: number
|
|
606
|
+
status: "pending" | "en_route" | "arrived" | "completed" | "failed" | "skipped"
|
|
607
|
+
address: string
|
|
608
|
+
latitude: number
|
|
609
|
+
longitude: number
|
|
610
|
+
recipient_name: string
|
|
611
|
+
recipient_phone: string
|
|
612
|
+
eta_at: string
|
|
613
|
+
notified_nearby_at: string
|
|
614
|
+
arrived_at: string
|
|
615
|
+
completed_at: string
|
|
616
|
+
notes: string
|
|
617
|
+
delivery_route_id: number
|
|
618
|
+
order_id: number
|
|
619
|
+
createdAt: string
|
|
620
|
+
updatedAt: string | null
|
|
621
|
+
recipientName: string
|
|
622
|
+
recipientPhone: string
|
|
623
|
+
etaAt: string
|
|
624
|
+
notifiedNearbyAt: string
|
|
625
|
+
arrivedAt: string
|
|
626
|
+
completedAt: string
|
|
627
|
+
deliveryRouteId: number
|
|
628
|
+
orderId: number
|
|
629
|
+
}
|
|
630
|
+
deployments: {
|
|
631
|
+
id: number
|
|
632
|
+
uuid: string
|
|
633
|
+
created_at: string
|
|
634
|
+
updated_at: string | null
|
|
635
|
+
commit_hash: string
|
|
636
|
+
commit_message: string
|
|
637
|
+
branch: string
|
|
638
|
+
status: string
|
|
639
|
+
environment: string
|
|
640
|
+
duration: number
|
|
641
|
+
author: string
|
|
642
|
+
url: string
|
|
643
|
+
error_log: string
|
|
644
|
+
createdAt: string
|
|
645
|
+
updatedAt: string | null
|
|
646
|
+
commitHash: string
|
|
647
|
+
commitMessage: string
|
|
648
|
+
errorLog: string
|
|
649
|
+
}
|
|
650
|
+
digital_deliveries: {
|
|
651
|
+
id: number
|
|
652
|
+
uuid: string
|
|
653
|
+
created_at: string
|
|
654
|
+
updated_at: string | null
|
|
655
|
+
name: string
|
|
656
|
+
description: string
|
|
657
|
+
download_limit: number
|
|
658
|
+
expiry_days: number
|
|
659
|
+
requires_login: boolean
|
|
660
|
+
automatic_delivery: boolean
|
|
661
|
+
status: "active" | "inactive"
|
|
662
|
+
createdAt: string
|
|
663
|
+
updatedAt: string | null
|
|
664
|
+
downloadLimit: number
|
|
665
|
+
expiryDays: number
|
|
666
|
+
requiresLogin: boolean
|
|
667
|
+
automaticDelivery: boolean
|
|
668
|
+
}
|
|
669
|
+
driver_pings: {
|
|
670
|
+
id: number
|
|
671
|
+
uuid: string
|
|
672
|
+
created_at: string
|
|
673
|
+
updated_at: string | null
|
|
674
|
+
latitude: number
|
|
675
|
+
longitude: number
|
|
676
|
+
heading: number
|
|
677
|
+
speed: number
|
|
678
|
+
accuracy: number
|
|
679
|
+
recorded_at: string
|
|
680
|
+
driver_id: number
|
|
681
|
+
delivery_route_id: number
|
|
682
|
+
createdAt: string
|
|
683
|
+
updatedAt: string | null
|
|
684
|
+
recordedAt: string
|
|
685
|
+
driverId: number
|
|
686
|
+
deliveryRouteId: number
|
|
687
|
+
}
|
|
688
|
+
drivers: {
|
|
689
|
+
id: number
|
|
690
|
+
uuid: string
|
|
691
|
+
created_at: string
|
|
692
|
+
updated_at: string | null
|
|
693
|
+
name: string
|
|
694
|
+
phone: string
|
|
695
|
+
vehicle_number: string
|
|
696
|
+
license: string
|
|
697
|
+
status: "active" | "on_delivery" | "on_break" | "offline"
|
|
698
|
+
latitude: number
|
|
699
|
+
longitude: number
|
|
700
|
+
heading: number
|
|
701
|
+
speed: number
|
|
702
|
+
last_ping_at: string
|
|
703
|
+
user_id: number
|
|
704
|
+
createdAt: string
|
|
705
|
+
updatedAt: string | null
|
|
706
|
+
vehicleNumber: string
|
|
707
|
+
lastPingAt: string
|
|
708
|
+
userId: number
|
|
709
|
+
}
|
|
710
|
+
email_idempotency: {
|
|
711
|
+
id: number
|
|
712
|
+
created_at: string
|
|
713
|
+
updated_at: string | null
|
|
714
|
+
idempotency_key: string
|
|
715
|
+
message_id: string
|
|
716
|
+
recipient: string
|
|
717
|
+
subject: string
|
|
718
|
+
provider: string
|
|
719
|
+
success: boolean
|
|
720
|
+
createdAt: string
|
|
721
|
+
updatedAt: string | null
|
|
722
|
+
idempotencyKey: string
|
|
723
|
+
messageId: string
|
|
724
|
+
}
|
|
725
|
+
email_list_subscribers: {
|
|
726
|
+
id: number
|
|
727
|
+
uuid: string
|
|
728
|
+
created_at: string
|
|
729
|
+
updated_at: string | null
|
|
730
|
+
email_list_id: number
|
|
731
|
+
subscriber_id: number
|
|
732
|
+
status: "subscribed" | "unsubscribed" | "pending" | "bounced"
|
|
733
|
+
source: string
|
|
734
|
+
subscribed_at: string
|
|
735
|
+
unsubscribed_at: string
|
|
736
|
+
createdAt: string
|
|
737
|
+
updatedAt: string | null
|
|
738
|
+
emailListId: number
|
|
739
|
+
subscriberId: number
|
|
740
|
+
subscribedAt: string
|
|
741
|
+
unsubscribedAt: string
|
|
742
|
+
}
|
|
743
|
+
email_lists: {
|
|
744
|
+
id: number
|
|
745
|
+
uuid: string
|
|
746
|
+
created_at: string
|
|
747
|
+
updated_at: string | null
|
|
748
|
+
name: string
|
|
749
|
+
slug: string
|
|
750
|
+
description: string
|
|
751
|
+
subscriber_count: number
|
|
752
|
+
active_count: number
|
|
753
|
+
unsubscribed_count: number
|
|
754
|
+
bounced_count: number
|
|
755
|
+
status: "active" | "inactive" | "archived"
|
|
756
|
+
is_public: number
|
|
757
|
+
double_opt_in: number
|
|
758
|
+
createdAt: string
|
|
759
|
+
updatedAt: string | null
|
|
760
|
+
subscriberCount: number
|
|
761
|
+
activeCount: number
|
|
762
|
+
unsubscribedCount: number
|
|
763
|
+
bouncedCount: number
|
|
764
|
+
isPublic: number
|
|
765
|
+
doubleOptIn: number
|
|
766
|
+
}
|
|
767
|
+
email_suppressions: {
|
|
768
|
+
id: number
|
|
769
|
+
created_at: string
|
|
770
|
+
updated_at: string | null
|
|
771
|
+
email: string
|
|
772
|
+
type: "bounce" | "complaint" | "unsubscribe" | "manual"
|
|
773
|
+
reason: string
|
|
774
|
+
createdAt: string
|
|
775
|
+
updatedAt: string | null
|
|
776
|
+
}
|
|
777
|
+
email_webhook_events: {
|
|
778
|
+
id: number
|
|
779
|
+
created_at: string
|
|
780
|
+
updated_at: string | null
|
|
781
|
+
provider: "mailgun" | "postmark" | "ses" | "sendgrid"
|
|
782
|
+
event_id: string
|
|
783
|
+
processed_at: string
|
|
784
|
+
createdAt: string
|
|
785
|
+
updatedAt: string | null
|
|
786
|
+
eventId: string
|
|
787
|
+
processedAt: string
|
|
788
|
+
}
|
|
789
|
+
errors: {
|
|
790
|
+
id: number
|
|
791
|
+
created_at: string
|
|
792
|
+
updated_at: string | null
|
|
793
|
+
type: string
|
|
794
|
+
message: string
|
|
795
|
+
stack: string
|
|
796
|
+
status: number
|
|
797
|
+
additional_info: string
|
|
798
|
+
createdAt: string
|
|
799
|
+
updatedAt: string | null
|
|
800
|
+
additionalInfo: string
|
|
801
|
+
}
|
|
802
|
+
failed_jobs: {
|
|
803
|
+
id: number
|
|
804
|
+
uuid: string
|
|
805
|
+
created_at: string
|
|
806
|
+
updated_at: string | null
|
|
807
|
+
connection: string
|
|
808
|
+
queue: string
|
|
809
|
+
payload: string
|
|
810
|
+
exception: string
|
|
811
|
+
attempts: number
|
|
812
|
+
max_attempts: number
|
|
813
|
+
duration_ms: number
|
|
814
|
+
failed_at: string
|
|
815
|
+
createdAt: string
|
|
816
|
+
updatedAt: string | null
|
|
817
|
+
maxAttempts: number
|
|
818
|
+
durationMs: number
|
|
819
|
+
failedAt: string
|
|
820
|
+
}
|
|
821
|
+
form_fields: {
|
|
822
|
+
id: number
|
|
823
|
+
created_at: string
|
|
824
|
+
updated_at: string | null
|
|
825
|
+
name: string
|
|
826
|
+
label: string
|
|
827
|
+
type: "text" | "textarea" | "email" | "phone" | "select" | "checkbox" | "radio" | "date" | "file" | "currency" | "section_break"
|
|
828
|
+
required: boolean
|
|
829
|
+
position: number
|
|
830
|
+
width: "full" | "half"
|
|
831
|
+
options: unknown
|
|
832
|
+
conditions: unknown
|
|
833
|
+
form_id: number
|
|
834
|
+
createdAt: string
|
|
835
|
+
updatedAt: string | null
|
|
836
|
+
formId: number
|
|
837
|
+
}
|
|
838
|
+
form_submissions: {
|
|
839
|
+
id: number
|
|
840
|
+
uuid: string
|
|
841
|
+
created_at: string
|
|
842
|
+
updated_at: string | null
|
|
843
|
+
data: unknown
|
|
844
|
+
email: string
|
|
845
|
+
name: string
|
|
846
|
+
status: "pending_payment" | "complete" | "spam"
|
|
847
|
+
amount_cents: number
|
|
848
|
+
payment_intent_id: string
|
|
849
|
+
ip: string
|
|
850
|
+
submitted_at: string
|
|
851
|
+
form_id: number
|
|
852
|
+
site_id: number
|
|
853
|
+
createdAt: string
|
|
854
|
+
updatedAt: string | null
|
|
855
|
+
amountCents: number
|
|
856
|
+
paymentIntentId: string
|
|
857
|
+
submittedAt: string
|
|
858
|
+
formId: number
|
|
859
|
+
siteId: number
|
|
860
|
+
}
|
|
861
|
+
forms: {
|
|
862
|
+
id: number
|
|
863
|
+
uuid: string
|
|
864
|
+
created_at: string
|
|
865
|
+
updated_at: string | null
|
|
866
|
+
name: string
|
|
867
|
+
handle: string
|
|
868
|
+
status: "draft" | "active" | "closed"
|
|
869
|
+
settings: unknown
|
|
870
|
+
site_id: number
|
|
871
|
+
createdAt: string
|
|
872
|
+
updatedAt: string | null
|
|
873
|
+
siteId: number
|
|
874
|
+
}
|
|
875
|
+
gift_cards: {
|
|
876
|
+
id: number
|
|
877
|
+
uuid: string
|
|
878
|
+
created_at: string
|
|
879
|
+
updated_at: string | null
|
|
880
|
+
code: string
|
|
881
|
+
initial_balance: number
|
|
882
|
+
current_balance: number
|
|
883
|
+
currency: string
|
|
884
|
+
status: "ACTIVE" | "USED" | "EXPIRED" | "DEACTIVATED"
|
|
885
|
+
purchaser_id: string
|
|
886
|
+
recipient_email: string
|
|
887
|
+
recipient_name: string
|
|
888
|
+
personal_message: string
|
|
889
|
+
is_digital: boolean
|
|
890
|
+
is_reloadable: boolean
|
|
891
|
+
is_active: boolean
|
|
892
|
+
expiry_date: string
|
|
893
|
+
last_used_date: string
|
|
894
|
+
template_id: string
|
|
895
|
+
customer_id: number
|
|
896
|
+
createdAt: string
|
|
897
|
+
updatedAt: string | null
|
|
898
|
+
initialBalance: number
|
|
899
|
+
currentBalance: number
|
|
900
|
+
purchaserId: string
|
|
901
|
+
recipientEmail: string
|
|
902
|
+
recipientName: string
|
|
903
|
+
personalMessage: string
|
|
904
|
+
isDigital: boolean
|
|
905
|
+
isReloadable: boolean
|
|
906
|
+
isActive: boolean
|
|
907
|
+
expiryDate: string
|
|
908
|
+
lastUsedDate: string
|
|
909
|
+
templateId: string
|
|
910
|
+
customerId: number
|
|
911
|
+
}
|
|
912
|
+
jobs: {
|
|
913
|
+
id: number
|
|
914
|
+
created_at: string
|
|
915
|
+
updated_at: string | null
|
|
916
|
+
queue: string
|
|
917
|
+
payload: string
|
|
918
|
+
attempts: number
|
|
919
|
+
available_at: number
|
|
920
|
+
reserved_at: number
|
|
921
|
+
createdAt: string
|
|
922
|
+
updatedAt: string | null
|
|
923
|
+
availableAt: number
|
|
924
|
+
reservedAt: number
|
|
925
|
+
}
|
|
926
|
+
labels: {
|
|
927
|
+
id: number
|
|
928
|
+
uuid: string
|
|
929
|
+
created_at: string
|
|
930
|
+
updated_at: string | null
|
|
931
|
+
board_id: number
|
|
932
|
+
name: string
|
|
933
|
+
color: string
|
|
934
|
+
createdAt: string
|
|
935
|
+
updatedAt: string | null
|
|
936
|
+
boardId: number
|
|
937
|
+
}
|
|
938
|
+
license_keys: {
|
|
939
|
+
id: number
|
|
940
|
+
uuid: string
|
|
941
|
+
created_at: string
|
|
942
|
+
updated_at: string | null
|
|
943
|
+
key: string
|
|
944
|
+
template: "Standard License" | "Premium License" | "Enterprise License"
|
|
945
|
+
expiry_date: string
|
|
946
|
+
status: "active" | "inactive" | "unassigned"
|
|
947
|
+
customer_id: number
|
|
948
|
+
product_id: number
|
|
949
|
+
order_id: number
|
|
950
|
+
createdAt: string
|
|
951
|
+
updatedAt: string | null
|
|
952
|
+
expiryDate: string
|
|
953
|
+
customerId: number
|
|
954
|
+
productId: number
|
|
955
|
+
orderId: number
|
|
956
|
+
}
|
|
957
|
+
logs: {
|
|
958
|
+
id: number
|
|
959
|
+
created_at: string
|
|
960
|
+
updated_at: string | null
|
|
961
|
+
timestamp: number
|
|
962
|
+
type: "warning" | "error" | "info" | "success"
|
|
963
|
+
source: "file" | "cli" | "system"
|
|
964
|
+
message: string
|
|
965
|
+
project: string
|
|
966
|
+
stacktrace: string
|
|
967
|
+
file: string
|
|
968
|
+
createdAt: string
|
|
969
|
+
updatedAt: string | null
|
|
970
|
+
}
|
|
971
|
+
loyalty_points: {
|
|
972
|
+
id: number
|
|
973
|
+
uuid: string
|
|
974
|
+
created_at: string
|
|
975
|
+
updated_at: string | null
|
|
976
|
+
wallet_id: string
|
|
977
|
+
points: number
|
|
978
|
+
source: string
|
|
979
|
+
source_reference_id: string
|
|
980
|
+
description: string
|
|
981
|
+
expiry_date: string
|
|
982
|
+
is_used: boolean
|
|
983
|
+
createdAt: string
|
|
984
|
+
updatedAt: string | null
|
|
985
|
+
walletId: string
|
|
986
|
+
sourceReferenceId: string
|
|
987
|
+
expiryDate: string
|
|
988
|
+
isUsed: boolean
|
|
989
|
+
}
|
|
990
|
+
loyalty_rewards: {
|
|
991
|
+
id: number
|
|
992
|
+
uuid: string
|
|
993
|
+
created_at: string
|
|
994
|
+
updated_at: string | null
|
|
995
|
+
name: string
|
|
996
|
+
description: string
|
|
997
|
+
points_required: number
|
|
998
|
+
reward_type: string
|
|
999
|
+
discount_percentage: number
|
|
1000
|
+
free_product_id: string
|
|
1001
|
+
is_active: boolean
|
|
1002
|
+
expiry_days: number
|
|
1003
|
+
image_url: string
|
|
1004
|
+
product_id: number
|
|
1005
|
+
createdAt: string
|
|
1006
|
+
updatedAt: string | null
|
|
1007
|
+
pointsRequired: number
|
|
1008
|
+
rewardType: string
|
|
1009
|
+
discountPercentage: number
|
|
1010
|
+
freeProductId: string
|
|
1011
|
+
isActive: boolean
|
|
1012
|
+
expiryDays: number
|
|
1013
|
+
imageUrl: string
|
|
1014
|
+
productId: number
|
|
1015
|
+
}
|
|
1016
|
+
magic_link_tokens: {
|
|
1017
|
+
id: number
|
|
1018
|
+
created_at: string
|
|
1019
|
+
updated_at: string | null
|
|
1020
|
+
email: string
|
|
1021
|
+
token: string
|
|
1022
|
+
expires_at: string
|
|
1023
|
+
consumed_at: string
|
|
1024
|
+
redirect_to: string
|
|
1025
|
+
site_id: number
|
|
1026
|
+
user_id: number
|
|
1027
|
+
createdAt: string
|
|
1028
|
+
updatedAt: string | null
|
|
1029
|
+
expiresAt: string
|
|
1030
|
+
consumedAt: string
|
|
1031
|
+
redirectTo: string
|
|
1032
|
+
siteId: number
|
|
1033
|
+
userId: number
|
|
1034
|
+
}
|
|
1035
|
+
mail_preferences: {
|
|
1036
|
+
id: number
|
|
1037
|
+
created_at: string
|
|
1038
|
+
updated_at: string | null
|
|
1039
|
+
mailbox: string
|
|
1040
|
+
account_name: string
|
|
1041
|
+
signature: string
|
|
1042
|
+
display_density: "comfortable" | "default" | "compact"
|
|
1043
|
+
theme: "light" | "dark" | "system"
|
|
1044
|
+
language: "en" | "fr" | "de" | "es" | "ja"
|
|
1045
|
+
default_reply_behavior: "reply" | "replyAll"
|
|
1046
|
+
send_and_archive: boolean
|
|
1047
|
+
auto_advance: "newer" | "older" | "back"
|
|
1048
|
+
desktop_notifications: boolean
|
|
1049
|
+
notification_sound: "default" | "subtle" | "none"
|
|
1050
|
+
notification_preview: boolean
|
|
1051
|
+
filters: string
|
|
1052
|
+
blocked_senders: string
|
|
1053
|
+
labels: string
|
|
1054
|
+
load_remote_images: boolean
|
|
1055
|
+
show_external_content: boolean
|
|
1056
|
+
vacation_enabled: boolean
|
|
1057
|
+
vacation_start_date: string
|
|
1058
|
+
vacation_end_date: string
|
|
1059
|
+
vacation_subject: string
|
|
1060
|
+
vacation_message: string
|
|
1061
|
+
createdAt: string
|
|
1062
|
+
updatedAt: string | null
|
|
1063
|
+
accountName: string
|
|
1064
|
+
displayDensity: "comfortable" | "default" | "compact"
|
|
1065
|
+
defaultReplyBehavior: "reply" | "replyAll"
|
|
1066
|
+
sendAndArchive: boolean
|
|
1067
|
+
autoAdvance: "newer" | "older" | "back"
|
|
1068
|
+
desktopNotifications: boolean
|
|
1069
|
+
notificationSound: "default" | "subtle" | "none"
|
|
1070
|
+
notificationPreview: boolean
|
|
1071
|
+
blockedSenders: string
|
|
1072
|
+
loadRemoteImages: boolean
|
|
1073
|
+
showExternalContent: boolean
|
|
1074
|
+
vacationEnabled: boolean
|
|
1075
|
+
vacationStartDate: string
|
|
1076
|
+
vacationEndDate: string
|
|
1077
|
+
vacationSubject: string
|
|
1078
|
+
vacationMessage: string
|
|
1079
|
+
}
|
|
1080
|
+
manufacturers: {
|
|
1081
|
+
id: number
|
|
1082
|
+
uuid: string
|
|
1083
|
+
created_at: string
|
|
1084
|
+
updated_at: string | null
|
|
1085
|
+
manufacturer: string
|
|
1086
|
+
description: string
|
|
1087
|
+
country: string
|
|
1088
|
+
featured: boolean
|
|
1089
|
+
createdAt: string
|
|
1090
|
+
updatedAt: string | null
|
|
1091
|
+
}
|
|
1092
|
+
menu_items: {
|
|
1093
|
+
id: number
|
|
1094
|
+
created_at: string
|
|
1095
|
+
updated_at: string | null
|
|
1096
|
+
label: string
|
|
1097
|
+
url: string
|
|
1098
|
+
target: "_self" | "_blank"
|
|
1099
|
+
parent_id: number
|
|
1100
|
+
position: number
|
|
1101
|
+
visibility: "public" | "auth"
|
|
1102
|
+
menu_id: number
|
|
1103
|
+
page_id: number
|
|
1104
|
+
createdAt: string
|
|
1105
|
+
updatedAt: string | null
|
|
1106
|
+
parentId: number
|
|
1107
|
+
menuId: number
|
|
1108
|
+
pageId: number
|
|
1109
|
+
}
|
|
1110
|
+
menus: {
|
|
1111
|
+
id: number
|
|
1112
|
+
created_at: string
|
|
1113
|
+
updated_at: string | null
|
|
1114
|
+
handle: string
|
|
1115
|
+
name: string
|
|
1116
|
+
site_id: number
|
|
1117
|
+
createdAt: string
|
|
1118
|
+
updatedAt: string | null
|
|
1119
|
+
siteId: number
|
|
1120
|
+
}
|
|
1121
|
+
notification_deliveries: {
|
|
1122
|
+
id: number
|
|
1123
|
+
created_at: string
|
|
1124
|
+
updated_at: string | null
|
|
1125
|
+
user_id: number
|
|
1126
|
+
channel: "email" | "sms" | "chat" | "database" | "push" | "broadcast"
|
|
1127
|
+
recipient: string
|
|
1128
|
+
subject: string
|
|
1129
|
+
body: string
|
|
1130
|
+
status: "pending" | "sent" | "delivered" | "failed"
|
|
1131
|
+
error: string
|
|
1132
|
+
metadata: string
|
|
1133
|
+
sent_at: string
|
|
1134
|
+
createdAt: string
|
|
1135
|
+
updatedAt: string | null
|
|
1136
|
+
userId: number
|
|
1137
|
+
sentAt: string
|
|
1138
|
+
}
|
|
1139
|
+
notifications: {
|
|
1140
|
+
id: number
|
|
1141
|
+
uuid: string
|
|
1142
|
+
created_at: string
|
|
1143
|
+
updated_at: string | null
|
|
1144
|
+
type: string
|
|
1145
|
+
data: string
|
|
1146
|
+
read_at: string
|
|
1147
|
+
user_id: number
|
|
1148
|
+
createdAt: string
|
|
1149
|
+
updatedAt: string | null
|
|
1150
|
+
readAt: string
|
|
1151
|
+
userId: number
|
|
1152
|
+
}
|
|
1153
|
+
order_idempotency: {
|
|
1154
|
+
id: number
|
|
1155
|
+
created_at: string
|
|
1156
|
+
updated_at: string | null
|
|
1157
|
+
idempotency_key: string
|
|
1158
|
+
order_id: number
|
|
1159
|
+
createdAt: string
|
|
1160
|
+
updatedAt: string | null
|
|
1161
|
+
idempotencyKey: string
|
|
1162
|
+
orderId: number
|
|
1163
|
+
}
|
|
1164
|
+
order_items: {
|
|
1165
|
+
id: number
|
|
1166
|
+
created_at: string
|
|
1167
|
+
updated_at: string | null
|
|
1168
|
+
quantity: number
|
|
1169
|
+
price: number
|
|
1170
|
+
special_instructions: string
|
|
1171
|
+
order_id: number
|
|
1172
|
+
product_id: number
|
|
1173
|
+
createdAt: string
|
|
1174
|
+
updatedAt: string | null
|
|
1175
|
+
specialInstructions: string
|
|
1176
|
+
orderId: number
|
|
1177
|
+
productId: number
|
|
1178
|
+
}
|
|
1179
|
+
orders: {
|
|
1180
|
+
id: number
|
|
1181
|
+
uuid: string
|
|
1182
|
+
created_at: string
|
|
1183
|
+
updated_at: string | null
|
|
1184
|
+
status: string
|
|
1185
|
+
total_amount: number
|
|
1186
|
+
currency: string
|
|
1187
|
+
tax_amount: number
|
|
1188
|
+
discount_amount: number
|
|
1189
|
+
delivery_fee: number
|
|
1190
|
+
tip_amount: number
|
|
1191
|
+
order_type: string
|
|
1192
|
+
delivery_address: string
|
|
1193
|
+
special_instructions: string
|
|
1194
|
+
estimated_delivery_time: string
|
|
1195
|
+
tracking_token: string
|
|
1196
|
+
delivery_latitude: number
|
|
1197
|
+
delivery_longitude: number
|
|
1198
|
+
applied_coupon_id: string
|
|
1199
|
+
customer_id: number
|
|
1200
|
+
coupon_id: number
|
|
1201
|
+
createdAt: string
|
|
1202
|
+
updatedAt: string | null
|
|
1203
|
+
totalAmount: number
|
|
1204
|
+
taxAmount: number
|
|
1205
|
+
discountAmount: number
|
|
1206
|
+
deliveryFee: number
|
|
1207
|
+
tipAmount: number
|
|
1208
|
+
orderType: string
|
|
1209
|
+
deliveryAddress: string
|
|
1210
|
+
specialInstructions: string
|
|
1211
|
+
estimatedDeliveryTime: string
|
|
1212
|
+
trackingToken: string
|
|
1213
|
+
deliveryLatitude: number
|
|
1214
|
+
deliveryLongitude: number
|
|
1215
|
+
appliedCouponId: string
|
|
1216
|
+
customerId: number
|
|
1217
|
+
couponId: number
|
|
1218
|
+
}
|
|
1219
|
+
page_revisions: {
|
|
1220
|
+
id: number
|
|
1221
|
+
created_at: string
|
|
1222
|
+
updated_at: string | null
|
|
1223
|
+
revision: number
|
|
1224
|
+
title: string
|
|
1225
|
+
blocks: unknown
|
|
1226
|
+
meta_description: string
|
|
1227
|
+
note: string
|
|
1228
|
+
page_id: number
|
|
1229
|
+
author_id: number
|
|
1230
|
+
createdAt: string
|
|
1231
|
+
updatedAt: string | null
|
|
1232
|
+
metaDescription: string
|
|
1233
|
+
pageId: number
|
|
1234
|
+
authorId: number
|
|
1235
|
+
}
|
|
1236
|
+
pages: {
|
|
1237
|
+
id: number
|
|
1238
|
+
uuid: string
|
|
1239
|
+
created_at: string
|
|
1240
|
+
updated_at: string | null
|
|
1241
|
+
title: string
|
|
1242
|
+
slug: string
|
|
1243
|
+
path: string
|
|
1244
|
+
parent_id: number
|
|
1245
|
+
template: string
|
|
1246
|
+
blocks: unknown
|
|
1247
|
+
meta_description: string
|
|
1248
|
+
status: "draft" | "published" | "scheduled" | "archived"
|
|
1249
|
+
scheduled_at: string
|
|
1250
|
+
views: number
|
|
1251
|
+
published_at: string
|
|
1252
|
+
conversions: number
|
|
1253
|
+
author_id: number
|
|
1254
|
+
site_id: number
|
|
1255
|
+
createdAt: string
|
|
1256
|
+
updatedAt: string | null
|
|
1257
|
+
parentId: number
|
|
1258
|
+
metaDescription: string
|
|
1259
|
+
scheduledAt: string
|
|
1260
|
+
publishedAt: string
|
|
1261
|
+
authorId: number
|
|
1262
|
+
siteId: number
|
|
1263
|
+
}
|
|
1264
|
+
payment_methods: {
|
|
1265
|
+
id: number
|
|
1266
|
+
uuid: string
|
|
1267
|
+
created_at: string
|
|
1268
|
+
updated_at: string | null
|
|
1269
|
+
type: string
|
|
1270
|
+
last_four: number
|
|
1271
|
+
brand: string
|
|
1272
|
+
exp_month: number
|
|
1273
|
+
exp_year: number
|
|
1274
|
+
is_default: boolean
|
|
1275
|
+
provider_id: string
|
|
1276
|
+
user_id: number
|
|
1277
|
+
createdAt: string
|
|
1278
|
+
updatedAt: string | null
|
|
1279
|
+
lastFour: number
|
|
1280
|
+
expMonth: number
|
|
1281
|
+
expYear: number
|
|
1282
|
+
isDefault: boolean
|
|
1283
|
+
providerId: string
|
|
1284
|
+
userId: number
|
|
1285
|
+
}
|
|
1286
|
+
payment_products: {
|
|
1287
|
+
id: number
|
|
1288
|
+
uuid: string
|
|
1289
|
+
created_at: string
|
|
1290
|
+
updated_at: string | null
|
|
1291
|
+
name: string
|
|
1292
|
+
description: string
|
|
1293
|
+
key: string
|
|
1294
|
+
unit_price: number
|
|
1295
|
+
status: string
|
|
1296
|
+
image: string
|
|
1297
|
+
provider_id: string
|
|
1298
|
+
createdAt: string
|
|
1299
|
+
updatedAt: string | null
|
|
1300
|
+
unitPrice: number
|
|
1301
|
+
providerId: string
|
|
1302
|
+
}
|
|
1303
|
+
payment_transactions: {
|
|
1304
|
+
id: number
|
|
1305
|
+
uuid: string
|
|
1306
|
+
created_at: string
|
|
1307
|
+
updated_at: string | null
|
|
1308
|
+
name: string
|
|
1309
|
+
description: string
|
|
1310
|
+
amount: number
|
|
1311
|
+
type: string
|
|
1312
|
+
provider_id: string
|
|
1313
|
+
user_id: number
|
|
1314
|
+
payment_method_id: number
|
|
1315
|
+
createdAt: string
|
|
1316
|
+
updatedAt: string | null
|
|
1317
|
+
providerId: string
|
|
1318
|
+
userId: number
|
|
1319
|
+
paymentMethodId: number
|
|
1320
|
+
}
|
|
1321
|
+
payments: {
|
|
1322
|
+
id: number
|
|
1323
|
+
uuid: string
|
|
1324
|
+
created_at: string
|
|
1325
|
+
updated_at: string | null
|
|
1326
|
+
amount: number
|
|
1327
|
+
method: "cash" | "creditCard" | "debitCard" | "paypal" | "applePay" | "googlePay" | "bankTransfer" | "giftCard"
|
|
1328
|
+
status: "pending" | "processing" | "completed" | "failed" | "refunded" | "partiallyRefunded" | "succeeded"
|
|
1329
|
+
currency: string
|
|
1330
|
+
reference_number: string
|
|
1331
|
+
card_last_four: string
|
|
1332
|
+
card_brand: string
|
|
1333
|
+
billing_email: string
|
|
1334
|
+
transaction_id: string
|
|
1335
|
+
payment_provider: string
|
|
1336
|
+
refund_amount: number
|
|
1337
|
+
notes: string
|
|
1338
|
+
order_id: number
|
|
1339
|
+
customer_id: number
|
|
1340
|
+
createdAt: string
|
|
1341
|
+
updatedAt: string | null
|
|
1342
|
+
referenceNumber: string
|
|
1343
|
+
cardLastFour: string
|
|
1344
|
+
cardBrand: string
|
|
1345
|
+
billingEmail: string
|
|
1346
|
+
transactionId: string
|
|
1347
|
+
paymentProvider: string
|
|
1348
|
+
refundAmount: number
|
|
1349
|
+
orderId: number
|
|
1350
|
+
customerId: number
|
|
1351
|
+
}
|
|
1352
|
+
pledges: {
|
|
1353
|
+
id: number
|
|
1354
|
+
uuid: string
|
|
1355
|
+
created_at: string
|
|
1356
|
+
updated_at: string | null
|
|
1357
|
+
donor_name: string
|
|
1358
|
+
donor_email: string
|
|
1359
|
+
amount: number
|
|
1360
|
+
level: string
|
|
1361
|
+
status: "pending" | "confirmed" | "cancelled"
|
|
1362
|
+
auction_id: number
|
|
1363
|
+
createdAt: string
|
|
1364
|
+
updatedAt: string | null
|
|
1365
|
+
donorName: string
|
|
1366
|
+
donorEmail: string
|
|
1367
|
+
auctionId: number
|
|
1368
|
+
}
|
|
1369
|
+
posts: {
|
|
1370
|
+
id: number
|
|
1371
|
+
uuid: string
|
|
1372
|
+
created_at: string
|
|
1373
|
+
updated_at: string | null
|
|
1374
|
+
title: string
|
|
1375
|
+
slug: string
|
|
1376
|
+
poster: string
|
|
1377
|
+
content: string
|
|
1378
|
+
excerpt: string
|
|
1379
|
+
focus_keyword: string
|
|
1380
|
+
meta_description: string
|
|
1381
|
+
canonical_url: string
|
|
1382
|
+
views: number
|
|
1383
|
+
published_at: string
|
|
1384
|
+
status: "published" | "draft" | "archived"
|
|
1385
|
+
is_featured: number
|
|
1386
|
+
author_id: number
|
|
1387
|
+
site_id: number
|
|
1388
|
+
createdAt: string
|
|
1389
|
+
updatedAt: string | null
|
|
1390
|
+
focusKeyword: string
|
|
1391
|
+
metaDescription: string
|
|
1392
|
+
canonicalUrl: string
|
|
1393
|
+
publishedAt: string
|
|
1394
|
+
isFeatured: number
|
|
1395
|
+
authorId: number
|
|
1396
|
+
siteId: number
|
|
1397
|
+
}
|
|
1398
|
+
print_devices: {
|
|
1399
|
+
id: number
|
|
1400
|
+
uuid: string
|
|
1401
|
+
created_at: string
|
|
1402
|
+
updated_at: string | null
|
|
1403
|
+
name: string
|
|
1404
|
+
mac_address: string
|
|
1405
|
+
location: string
|
|
1406
|
+
terminal: string
|
|
1407
|
+
status: "online" | "offline" | "warning"
|
|
1408
|
+
last_ping: number
|
|
1409
|
+
print_count: number
|
|
1410
|
+
createdAt: string
|
|
1411
|
+
updatedAt: string | null
|
|
1412
|
+
macAddress: string
|
|
1413
|
+
lastPing: number
|
|
1414
|
+
printCount: number
|
|
1415
|
+
}
|
|
1416
|
+
product_units: {
|
|
1417
|
+
id: number
|
|
1418
|
+
uuid: string
|
|
1419
|
+
created_at: string
|
|
1420
|
+
updated_at: string | null
|
|
1421
|
+
name: string
|
|
1422
|
+
abbreviation: string
|
|
1423
|
+
type: string
|
|
1424
|
+
description: string
|
|
1425
|
+
is_default: boolean
|
|
1426
|
+
product_id: number
|
|
1427
|
+
createdAt: string
|
|
1428
|
+
updatedAt: string | null
|
|
1429
|
+
isDefault: boolean
|
|
1430
|
+
productId: number
|
|
1431
|
+
}
|
|
1432
|
+
product_variants: {
|
|
1433
|
+
id: number
|
|
1434
|
+
uuid: string
|
|
1435
|
+
created_at: string
|
|
1436
|
+
updated_at: string | null
|
|
1437
|
+
variant: string
|
|
1438
|
+
type: string
|
|
1439
|
+
description: string
|
|
1440
|
+
options: string
|
|
1441
|
+
status: "active" | "inactive" | "draft"
|
|
1442
|
+
product_id: number
|
|
1443
|
+
createdAt: string
|
|
1444
|
+
updatedAt: string | null
|
|
1445
|
+
productId: number
|
|
1446
|
+
}
|
|
1447
|
+
products: {
|
|
1448
|
+
id: number
|
|
1449
|
+
uuid: string
|
|
1450
|
+
created_at: string
|
|
1451
|
+
updated_at: string | null
|
|
1452
|
+
name: string
|
|
1453
|
+
description: string
|
|
1454
|
+
price: number
|
|
1455
|
+
image_url: string
|
|
1456
|
+
is_available: boolean
|
|
1457
|
+
inventory_count: number
|
|
1458
|
+
preparation_time: number
|
|
1459
|
+
allergens: string
|
|
1460
|
+
nutritional_info: string
|
|
1461
|
+
category_id: number
|
|
1462
|
+
manufacturer_id: number
|
|
1463
|
+
createdAt: string
|
|
1464
|
+
updatedAt: string | null
|
|
1465
|
+
imageUrl: string
|
|
1466
|
+
isAvailable: boolean
|
|
1467
|
+
inventoryCount: number
|
|
1468
|
+
preparationTime: number
|
|
1469
|
+
nutritionalInfo: string
|
|
1470
|
+
categoryId: number
|
|
1471
|
+
manufacturerId: number
|
|
1472
|
+
}
|
|
1473
|
+
query_logs: {
|
|
1474
|
+
id: number
|
|
1475
|
+
created_at: string
|
|
1476
|
+
updated_at: string | null
|
|
1477
|
+
query: string
|
|
1478
|
+
normalized_query: string
|
|
1479
|
+
duration: number
|
|
1480
|
+
connection: string
|
|
1481
|
+
status: "completed" | "failed" | "slow"
|
|
1482
|
+
error: string
|
|
1483
|
+
executed_at: string
|
|
1484
|
+
bindings: string
|
|
1485
|
+
trace: string
|
|
1486
|
+
model: string
|
|
1487
|
+
method: string
|
|
1488
|
+
file: string
|
|
1489
|
+
line: number
|
|
1490
|
+
memory_usage: number
|
|
1491
|
+
rows_affected: number
|
|
1492
|
+
transaction_id: string
|
|
1493
|
+
tags: string
|
|
1494
|
+
affected_tables: string
|
|
1495
|
+
indexes_used: string
|
|
1496
|
+
missing_indexes: string
|
|
1497
|
+
explain_plan: string
|
|
1498
|
+
optimization_suggestions: string
|
|
1499
|
+
createdAt: string
|
|
1500
|
+
updatedAt: string | null
|
|
1501
|
+
normalizedQuery: string
|
|
1502
|
+
executedAt: string
|
|
1503
|
+
memoryUsage: number
|
|
1504
|
+
rowsAffected: number
|
|
1505
|
+
transactionId: string
|
|
1506
|
+
affectedTables: string
|
|
1507
|
+
indexesUsed: string
|
|
1508
|
+
missingIndexes: string
|
|
1509
|
+
explainPlan: string
|
|
1510
|
+
optimizationSuggestions: string
|
|
1511
|
+
}
|
|
1512
|
+
receipts: {
|
|
1513
|
+
id: number
|
|
1514
|
+
uuid: string
|
|
1515
|
+
created_at: string
|
|
1516
|
+
updated_at: string | null
|
|
1517
|
+
printer: string
|
|
1518
|
+
document: string
|
|
1519
|
+
timestamp: string
|
|
1520
|
+
status: "success" | "failed" | "warning"
|
|
1521
|
+
size: number
|
|
1522
|
+
pages: number
|
|
1523
|
+
duration: number
|
|
1524
|
+
metadata: string
|
|
1525
|
+
print_device_id: number
|
|
1526
|
+
createdAt: string
|
|
1527
|
+
updatedAt: string | null
|
|
1528
|
+
printDeviceId: number
|
|
1529
|
+
}
|
|
1530
|
+
redirects: {
|
|
1531
|
+
id: number
|
|
1532
|
+
created_at: string
|
|
1533
|
+
updated_at: string | null
|
|
1534
|
+
from_path: string
|
|
1535
|
+
to_path: string
|
|
1536
|
+
status_code: number
|
|
1537
|
+
source: "slug-change" | "manual"
|
|
1538
|
+
site_id: number
|
|
1539
|
+
createdAt: string
|
|
1540
|
+
updatedAt: string | null
|
|
1541
|
+
fromPath: string
|
|
1542
|
+
toPath: string
|
|
1543
|
+
statusCode: number
|
|
1544
|
+
siteId: number
|
|
1545
|
+
}
|
|
1546
|
+
releases: {
|
|
1547
|
+
id: number
|
|
1548
|
+
uuid: string
|
|
1549
|
+
created_at: string
|
|
1550
|
+
updated_at: string | null
|
|
1551
|
+
version: string
|
|
1552
|
+
type: string
|
|
1553
|
+
status: string
|
|
1554
|
+
notes: string
|
|
1555
|
+
downloads: number
|
|
1556
|
+
author: string
|
|
1557
|
+
createdAt: string
|
|
1558
|
+
updatedAt: string | null
|
|
1559
|
+
}
|
|
1560
|
+
requests: {
|
|
1561
|
+
id: number
|
|
1562
|
+
created_at: string
|
|
1563
|
+
updated_at: string | null
|
|
1564
|
+
deleted_at: string | null
|
|
1565
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD"
|
|
1566
|
+
path: string
|
|
1567
|
+
status_code: number
|
|
1568
|
+
duration_ms: number
|
|
1569
|
+
ip_address: string
|
|
1570
|
+
memory_usage: number
|
|
1571
|
+
user_agent: string
|
|
1572
|
+
error_message: string
|
|
1573
|
+
createdAt: string
|
|
1574
|
+
updatedAt: string | null
|
|
1575
|
+
deletedAt: string | null
|
|
1576
|
+
statusCode: number
|
|
1577
|
+
durationMs: number
|
|
1578
|
+
ipAddress: string
|
|
1579
|
+
memoryUsage: number
|
|
1580
|
+
userAgent: string
|
|
1581
|
+
errorMessage: string
|
|
1582
|
+
}
|
|
1583
|
+
reviews: {
|
|
1584
|
+
id: number
|
|
1585
|
+
uuid: string
|
|
1586
|
+
created_at: string
|
|
1587
|
+
updated_at: string | null
|
|
1588
|
+
rating: number
|
|
1589
|
+
title: string
|
|
1590
|
+
content: string
|
|
1591
|
+
is_verified_purchase: boolean
|
|
1592
|
+
is_approved: boolean
|
|
1593
|
+
is_featured: boolean
|
|
1594
|
+
helpful_votes: number
|
|
1595
|
+
unhelpful_votes: number
|
|
1596
|
+
purchase_date: string
|
|
1597
|
+
images: string
|
|
1598
|
+
product_id: number
|
|
1599
|
+
customer_id: number
|
|
1600
|
+
createdAt: string
|
|
1601
|
+
updatedAt: string | null
|
|
1602
|
+
isVerifiedPurchase: boolean
|
|
1603
|
+
isApproved: boolean
|
|
1604
|
+
isFeatured: boolean
|
|
1605
|
+
helpfulVotes: number
|
|
1606
|
+
unhelpfulVotes: number
|
|
1607
|
+
purchaseDate: string
|
|
1608
|
+
productId: number
|
|
1609
|
+
customerId: number
|
|
1610
|
+
}
|
|
1611
|
+
sender_domains: {
|
|
1612
|
+
id: number
|
|
1613
|
+
uuid: string
|
|
1614
|
+
created_at: string
|
|
1615
|
+
updated_at: string | null
|
|
1616
|
+
domain: string
|
|
1617
|
+
status: "pending" | "verified" | "failed" | "disabled"
|
|
1618
|
+
selector: string
|
|
1619
|
+
dns_records: unknown
|
|
1620
|
+
verified_at: string
|
|
1621
|
+
last_checked_at: string
|
|
1622
|
+
team_id: number
|
|
1623
|
+
createdAt: string
|
|
1624
|
+
updatedAt: string | null
|
|
1625
|
+
dnsRecords: unknown
|
|
1626
|
+
verifiedAt: string
|
|
1627
|
+
lastCheckedAt: string
|
|
1628
|
+
teamId: number
|
|
1629
|
+
}
|
|
1630
|
+
shipping_methods: {
|
|
1631
|
+
id: number
|
|
1632
|
+
uuid: string
|
|
1633
|
+
created_at: string
|
|
1634
|
+
updated_at: string | null
|
|
1635
|
+
name: string
|
|
1636
|
+
description: string
|
|
1637
|
+
base_rate: number
|
|
1638
|
+
free_shipping: number
|
|
1639
|
+
status: "active" | "inactive" | "draft"
|
|
1640
|
+
createdAt: string
|
|
1641
|
+
updatedAt: string | null
|
|
1642
|
+
baseRate: number
|
|
1643
|
+
freeShipping: number
|
|
1644
|
+
}
|
|
1645
|
+
shipping_rates: {
|
|
1646
|
+
id: number
|
|
1647
|
+
uuid: string
|
|
1648
|
+
created_at: string
|
|
1649
|
+
updated_at: string | null
|
|
1650
|
+
weight_from: number
|
|
1651
|
+
weight_to: number
|
|
1652
|
+
rate: number
|
|
1653
|
+
shipping_method_id: number
|
|
1654
|
+
shipping_zone_id: number
|
|
1655
|
+
createdAt: string
|
|
1656
|
+
updatedAt: string | null
|
|
1657
|
+
weightFrom: number
|
|
1658
|
+
weightTo: number
|
|
1659
|
+
shippingMethodId: number
|
|
1660
|
+
shippingZoneId: number
|
|
1661
|
+
}
|
|
1662
|
+
shipping_zones: {
|
|
1663
|
+
id: number
|
|
1664
|
+
uuid: string
|
|
1665
|
+
created_at: string
|
|
1666
|
+
updated_at: string | null
|
|
1667
|
+
name: string
|
|
1668
|
+
countries: string
|
|
1669
|
+
regions: string
|
|
1670
|
+
postal_codes: string
|
|
1671
|
+
status: "active" | "inactive" | "draft"
|
|
1672
|
+
shipping_method_id: number
|
|
1673
|
+
createdAt: string
|
|
1674
|
+
updatedAt: string | null
|
|
1675
|
+
postalCodes: string
|
|
1676
|
+
shippingMethodId: number
|
|
1677
|
+
}
|
|
1678
|
+
site_domains: {
|
|
1679
|
+
id: number
|
|
1680
|
+
created_at: string
|
|
1681
|
+
updated_at: string | null
|
|
1682
|
+
domain: string
|
|
1683
|
+
is_primary: boolean
|
|
1684
|
+
verified_at: string
|
|
1685
|
+
ssl_status: "pending" | "issued" | "failed"
|
|
1686
|
+
site_id: number
|
|
1687
|
+
createdAt: string
|
|
1688
|
+
updatedAt: string | null
|
|
1689
|
+
isPrimary: boolean
|
|
1690
|
+
verifiedAt: string
|
|
1691
|
+
sslStatus: "pending" | "issued" | "failed"
|
|
1692
|
+
siteId: number
|
|
1693
|
+
}
|
|
1694
|
+
sites: {
|
|
1695
|
+
id: number
|
|
1696
|
+
uuid: string
|
|
1697
|
+
created_at: string
|
|
1698
|
+
updated_at: string | null
|
|
1699
|
+
name: string
|
|
1700
|
+
subdomain: string
|
|
1701
|
+
status: "active" | "suspended" | "archived"
|
|
1702
|
+
settings: unknown
|
|
1703
|
+
timezone: string
|
|
1704
|
+
team_id: number
|
|
1705
|
+
createdAt: string
|
|
1706
|
+
updatedAt: string | null
|
|
1707
|
+
teamId: number
|
|
1708
|
+
}
|
|
1709
|
+
sms_opt_outs: {
|
|
1710
|
+
id: number
|
|
1711
|
+
created_at: string
|
|
1712
|
+
updated_at: string | null
|
|
1713
|
+
phone: string
|
|
1714
|
+
reason: string
|
|
1715
|
+
opted_out_at: string
|
|
1716
|
+
createdAt: string
|
|
1717
|
+
updatedAt: string | null
|
|
1718
|
+
optedOutAt: string
|
|
1719
|
+
}
|
|
1720
|
+
social_accounts: {
|
|
1721
|
+
id: number
|
|
1722
|
+
created_at: string
|
|
1723
|
+
updated_at: string | null
|
|
1724
|
+
provider: string
|
|
1725
|
+
provider_user_id: string
|
|
1726
|
+
provider_email: string
|
|
1727
|
+
user_id: number
|
|
1728
|
+
createdAt: string
|
|
1729
|
+
updatedAt: string | null
|
|
1730
|
+
providerUserId: string
|
|
1731
|
+
providerEmail: string
|
|
1732
|
+
userId: number
|
|
1733
|
+
}
|
|
1734
|
+
social_posts: {
|
|
1735
|
+
id: number
|
|
1736
|
+
uuid: string
|
|
1737
|
+
created_at: string
|
|
1738
|
+
updated_at: string | null
|
|
1739
|
+
content: string
|
|
1740
|
+
platform: "twitter" | "facebook" | "instagram" | "linkedin" | "tiktok" | "youtube"
|
|
1741
|
+
status: "draft" | "scheduled" | "published" | "failed"
|
|
1742
|
+
scheduled_at: string
|
|
1743
|
+
published_at: string
|
|
1744
|
+
likes: number
|
|
1745
|
+
shares: number
|
|
1746
|
+
comments: number
|
|
1747
|
+
reach: number
|
|
1748
|
+
image_url: string
|
|
1749
|
+
external_id: string
|
|
1750
|
+
user_id: number
|
|
1751
|
+
createdAt: string
|
|
1752
|
+
updatedAt: string | null
|
|
1753
|
+
scheduledAt: string
|
|
1754
|
+
publishedAt: string
|
|
1755
|
+
imageUrl: string
|
|
1756
|
+
externalId: string
|
|
1757
|
+
userId: number
|
|
1758
|
+
}
|
|
1759
|
+
subscriber_emails: {
|
|
1760
|
+
id: number
|
|
1761
|
+
uuid: string
|
|
1762
|
+
created_at: string
|
|
1763
|
+
updated_at: string | null
|
|
1764
|
+
email: string
|
|
1765
|
+
source: string
|
|
1766
|
+
subscriber_id: number
|
|
1767
|
+
createdAt: string
|
|
1768
|
+
updatedAt: string | null
|
|
1769
|
+
subscriberId: number
|
|
1770
|
+
}
|
|
1771
|
+
subscribers: {
|
|
1772
|
+
id: number
|
|
1773
|
+
uuid: string
|
|
1774
|
+
created_at: string
|
|
1775
|
+
updated_at: string | null
|
|
1776
|
+
email: string
|
|
1777
|
+
status: "subscribed" | "unsubscribed" | "pending" | "bounced"
|
|
1778
|
+
source: string
|
|
1779
|
+
unsubscribed_at: string
|
|
1780
|
+
user_id: number
|
|
1781
|
+
createdAt: string
|
|
1782
|
+
updatedAt: string | null
|
|
1783
|
+
unsubscribedAt: string
|
|
1784
|
+
userId: number
|
|
1785
|
+
}
|
|
1786
|
+
subscriptions: {
|
|
1787
|
+
id: number
|
|
1788
|
+
uuid: string
|
|
1789
|
+
created_at: string
|
|
1790
|
+
updated_at: string | null
|
|
1791
|
+
type: string
|
|
1792
|
+
plan: string
|
|
1793
|
+
provider_id: string
|
|
1794
|
+
provider_status: string
|
|
1795
|
+
unit_price: number
|
|
1796
|
+
provider_type: string
|
|
1797
|
+
provider_price_id: string
|
|
1798
|
+
quantity: number
|
|
1799
|
+
trial_ends_at: string
|
|
1800
|
+
ends_at: string
|
|
1801
|
+
last_used_at: string
|
|
1802
|
+
user_id: number
|
|
1803
|
+
createdAt: string
|
|
1804
|
+
updatedAt: string | null
|
|
1805
|
+
providerId: string
|
|
1806
|
+
providerStatus: string
|
|
1807
|
+
unitPrice: number
|
|
1808
|
+
providerType: string
|
|
1809
|
+
providerPriceId: string
|
|
1810
|
+
trialEndsAt: string
|
|
1811
|
+
endsAt: string
|
|
1812
|
+
lastUsedAt: string
|
|
1813
|
+
userId: number
|
|
1814
|
+
}
|
|
1815
|
+
taggable_models: {
|
|
1816
|
+
id: number
|
|
1817
|
+
tag_id: number
|
|
1818
|
+
taggable_id: number
|
|
1819
|
+
taggable_type: string
|
|
1820
|
+
created_at: string
|
|
1821
|
+
updated_at: string | null
|
|
1822
|
+
}
|
|
1823
|
+
tags: {
|
|
1824
|
+
id: number
|
|
1825
|
+
uuid: string
|
|
1826
|
+
created_at: string
|
|
1827
|
+
updated_at: string | null
|
|
1828
|
+
name: string
|
|
1829
|
+
slug: string
|
|
1830
|
+
description: string
|
|
1831
|
+
color: string
|
|
1832
|
+
createdAt: string
|
|
1833
|
+
updatedAt: string | null
|
|
1834
|
+
}
|
|
1835
|
+
tax_rates: {
|
|
1836
|
+
id: number
|
|
1837
|
+
uuid: string
|
|
1838
|
+
created_at: string
|
|
1839
|
+
updated_at: string | null
|
|
1840
|
+
name: string
|
|
1841
|
+
rate: number
|
|
1842
|
+
type: string
|
|
1843
|
+
country: string
|
|
1844
|
+
region: "North America" | "South America" | "Europe" | "Asia" | "Africa" | "Oceania" | "Antarctica"
|
|
1845
|
+
status: "active" | "inactive"
|
|
1846
|
+
is_default: boolean
|
|
1847
|
+
code: string
|
|
1848
|
+
exemptible: boolean
|
|
1849
|
+
createdAt: string
|
|
1850
|
+
updatedAt: string | null
|
|
1851
|
+
isDefault: boolean
|
|
1852
|
+
}
|
|
1853
|
+
team_invitations: {
|
|
1854
|
+
id: number
|
|
1855
|
+
uuid: string
|
|
1856
|
+
created_at: string
|
|
1857
|
+
updated_at: string | null
|
|
1858
|
+
team_id: number
|
|
1859
|
+
email: string
|
|
1860
|
+
role: "admin" | "member" | "viewer"
|
|
1861
|
+
token_hash: string
|
|
1862
|
+
pending_key: string
|
|
1863
|
+
invited_by_user_id: number
|
|
1864
|
+
accepted_by_user_id: number
|
|
1865
|
+
status: "pending" | "accepted" | "revoked" | "expired"
|
|
1866
|
+
delivery_status: "pending" | "sent" | "failed"
|
|
1867
|
+
delivery_error: string
|
|
1868
|
+
expires_at: string
|
|
1869
|
+
delivered_at: string
|
|
1870
|
+
accepted_at: string
|
|
1871
|
+
createdAt: string
|
|
1872
|
+
updatedAt: string | null
|
|
1873
|
+
teamId: number
|
|
1874
|
+
tokenHash: string
|
|
1875
|
+
pendingKey: string
|
|
1876
|
+
invitedByUserId: number
|
|
1877
|
+
acceptedByUserId: number
|
|
1878
|
+
deliveryStatus: "pending" | "sent" | "failed"
|
|
1879
|
+
deliveryError: string
|
|
1880
|
+
expiresAt: string
|
|
1881
|
+
deliveredAt: string
|
|
1882
|
+
acceptedAt: string
|
|
1883
|
+
}
|
|
1884
|
+
team_members: {
|
|
1885
|
+
id: number
|
|
1886
|
+
uuid: string
|
|
1887
|
+
created_at: string
|
|
1888
|
+
updated_at: string | null
|
|
1889
|
+
team_id: number
|
|
1890
|
+
user_id: number
|
|
1891
|
+
role: "owner" | "admin" | "member" | "viewer"
|
|
1892
|
+
status: "active" | "suspended"
|
|
1893
|
+
createdAt: string
|
|
1894
|
+
updatedAt: string | null
|
|
1895
|
+
teamId: number
|
|
1896
|
+
userId: number
|
|
1897
|
+
}
|
|
1898
|
+
teams: {
|
|
1899
|
+
id: number
|
|
1900
|
+
uuid: string
|
|
1901
|
+
created_at: string
|
|
1902
|
+
updated_at: string | null
|
|
1903
|
+
name: string
|
|
1904
|
+
description: string
|
|
1905
|
+
member_count: number
|
|
1906
|
+
status: string
|
|
1907
|
+
createdAt: string
|
|
1908
|
+
updatedAt: string | null
|
|
1909
|
+
memberCount: number
|
|
1910
|
+
}
|
|
1911
|
+
transactions: {
|
|
1912
|
+
id: number
|
|
1913
|
+
uuid: string
|
|
1914
|
+
created_at: string
|
|
1915
|
+
updated_at: string | null
|
|
1916
|
+
amount: number
|
|
1917
|
+
status: string
|
|
1918
|
+
payment_method: string
|
|
1919
|
+
payment_details: string
|
|
1920
|
+
transaction_reference: string
|
|
1921
|
+
loyalty_points_earned: number
|
|
1922
|
+
loyalty_points_redeemed: number
|
|
1923
|
+
order_id: number
|
|
1924
|
+
createdAt: string
|
|
1925
|
+
updatedAt: string | null
|
|
1926
|
+
paymentMethod: string
|
|
1927
|
+
paymentDetails: string
|
|
1928
|
+
transactionReference: string
|
|
1929
|
+
loyaltyPointsEarned: number
|
|
1930
|
+
loyaltyPointsRedeemed: number
|
|
1931
|
+
orderId: number
|
|
1932
|
+
}
|
|
1933
|
+
usage_events: {
|
|
1934
|
+
id: number
|
|
1935
|
+
uuid: string
|
|
1936
|
+
created_at: string
|
|
1937
|
+
updated_at: string | null
|
|
1938
|
+
meter: "contacts" | "email_sends" | "sms_segments" | "ai_generations" | "storage_bytes"
|
|
1939
|
+
quantity: number
|
|
1940
|
+
idempotency_key: string
|
|
1941
|
+
metadata: unknown
|
|
1942
|
+
occurred_at: string
|
|
1943
|
+
team_id: number
|
|
1944
|
+
createdAt: string
|
|
1945
|
+
updatedAt: string | null
|
|
1946
|
+
idempotencyKey: string
|
|
1947
|
+
occurredAt: string
|
|
1948
|
+
teamId: number
|
|
1949
|
+
}
|
|
1950
|
+
users: {
|
|
1951
|
+
id: number
|
|
1952
|
+
uuid: string
|
|
1953
|
+
created_at: string
|
|
1954
|
+
updated_at: string | null
|
|
1955
|
+
name: string
|
|
1956
|
+
email: string
|
|
1957
|
+
password: string
|
|
1958
|
+
avatar: string
|
|
1959
|
+
createdAt: string
|
|
1960
|
+
updatedAt: string | null
|
|
1961
|
+
}
|
|
1962
|
+
waitlist_products: {
|
|
1963
|
+
id: number
|
|
1964
|
+
uuid: string
|
|
1965
|
+
created_at: string
|
|
1966
|
+
updated_at: string | null
|
|
1967
|
+
name: string
|
|
1968
|
+
email: string
|
|
1969
|
+
phone: string
|
|
1970
|
+
quantity: number
|
|
1971
|
+
notification_preference: "sms" | "email" | "both"
|
|
1972
|
+
source: string
|
|
1973
|
+
notes: string
|
|
1974
|
+
status: "waiting" | "purchased" | "notified" | "cancelled"
|
|
1975
|
+
notified_at: string
|
|
1976
|
+
purchased_at: string
|
|
1977
|
+
cancelled_at: string
|
|
1978
|
+
product_id: number
|
|
1979
|
+
customer_id: number
|
|
1980
|
+
createdAt: string
|
|
1981
|
+
updatedAt: string | null
|
|
1982
|
+
notificationPreference: "sms" | "email" | "both"
|
|
1983
|
+
notifiedAt: string
|
|
1984
|
+
purchasedAt: string
|
|
1985
|
+
cancelledAt: string
|
|
1986
|
+
productId: number
|
|
1987
|
+
customerId: number
|
|
1988
|
+
}
|
|
1989
|
+
waitlist_restaurants: {
|
|
1990
|
+
id: number
|
|
1991
|
+
uuid: string
|
|
1992
|
+
created_at: string
|
|
1993
|
+
updated_at: string | null
|
|
1994
|
+
name: string
|
|
1995
|
+
email: string
|
|
1996
|
+
phone: string
|
|
1997
|
+
party_size: number
|
|
1998
|
+
check_in_time: string
|
|
1999
|
+
table_preference: "indoor" | "bar" | "booth" | "no_preference"
|
|
2000
|
+
status: "waiting" | "seated" | "cancelled" | "no_show"
|
|
2001
|
+
quoted_wait_time: number
|
|
2002
|
+
actual_wait_time: number
|
|
2003
|
+
queue_position: number
|
|
2004
|
+
seated_at: string
|
|
2005
|
+
no_show_at: string
|
|
2006
|
+
cancelled_at: string
|
|
2007
|
+
customer_id: number
|
|
2008
|
+
createdAt: string
|
|
2009
|
+
updatedAt: string | null
|
|
2010
|
+
partySize: number
|
|
2011
|
+
checkInTime: string
|
|
2012
|
+
tablePreference: "indoor" | "bar" | "booth" | "no_preference"
|
|
2013
|
+
quotedWaitTime: number
|
|
2014
|
+
actualWaitTime: number
|
|
2015
|
+
queuePosition: number
|
|
2016
|
+
seatedAt: string
|
|
2017
|
+
noShowAt: string
|
|
2018
|
+
cancelledAt: string
|
|
2019
|
+
customerId: number
|
|
2020
|
+
}
|
|
2021
|
+
websockets: {
|
|
2022
|
+
id: number
|
|
2023
|
+
created_at: string
|
|
2024
|
+
updated_at: string | null
|
|
2025
|
+
type: "disconnection" | "error" | "success"
|
|
2026
|
+
socket: string
|
|
2027
|
+
details: string
|
|
2028
|
+
time: number
|
|
2029
|
+
createdAt: string
|
|
2030
|
+
updatedAt: string | null
|
|
2031
|
+
}
|
|
2032
|
+
}
|