@stacksjs/database 0.72.24 → 0.72.26

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.
@@ -6,7 +6,7 @@
6
6
  // own tables (and its overrides of these) live in `DatabaseSchema`, which takes
7
7
  // precedence - see `RowOf` in `./utils`.
8
8
  export declare interface FrameworkSchema {
9
- 'activities': {
9
+ activities: {
10
10
  id: number
11
11
  uuid: string
12
12
  created_at: string
@@ -26,7 +26,7 @@ export declare interface FrameworkSchema {
26
26
  ipAddress: string
27
27
  userId: number
28
28
  }
29
- 'analytics_events': {
29
+ analytics_events: {
30
30
  id: number
31
31
  uuid: string
32
32
  created_at: string
@@ -40,7 +40,7 @@ export declare interface FrameworkSchema {
40
40
  createdAt: string
41
41
  updatedAt: string | null
42
42
  }
43
- 'auction_items': {
43
+ auction_items: {
44
44
  id: number
45
45
  uuid: string
46
46
  created_at: string
@@ -74,7 +74,7 @@ export declare interface FrameworkSchema {
74
74
  extensionCount: number
75
75
  auctionId: number
76
76
  }
77
- 'auctions': {
77
+ auctions: {
78
78
  id: number
79
79
  uuid: string
80
80
  created_at: string
@@ -100,7 +100,7 @@ export declare interface FrameworkSchema {
100
100
  extendOnBidWindowMinutes: number
101
101
  maxExtensions: number
102
102
  }
103
- 'authors': {
103
+ authors: {
104
104
  id: number
105
105
  uuid: string
106
106
  created_at: string
@@ -114,7 +114,7 @@ export declare interface FrameworkSchema {
114
114
  updatedAt: string | null
115
115
  userId: number
116
116
  }
117
- 'automation_runs': {
117
+ automation_runs: {
118
118
  id: number
119
119
  uuid: string
120
120
  created_at: string
@@ -142,7 +142,7 @@ export declare interface FrameworkSchema {
142
142
  teamId: number
143
143
  automationId: number
144
144
  }
145
- 'automations': {
145
+ automations: {
146
146
  id: number
147
147
  uuid: string
148
148
  created_at: string
@@ -159,7 +159,7 @@ export declare interface FrameworkSchema {
159
159
  publishedAt: string
160
160
  teamId: number
161
161
  }
162
- 'bids': {
162
+ bids: {
163
163
  id: number
164
164
  uuid: string
165
165
  created_at: string
@@ -181,7 +181,7 @@ export declare interface FrameworkSchema {
181
181
  auctionId: number
182
182
  auctionItemId: number
183
183
  }
184
- 'board_columns': {
184
+ board_columns: {
185
185
  id: number
186
186
  uuid: string
187
187
  created_at: string
@@ -196,7 +196,7 @@ export declare interface FrameworkSchema {
196
196
  boardId: number
197
197
  cardLimit: number
198
198
  }
199
- 'boards': {
199
+ boards: {
200
200
  id: number
201
201
  uuid: string
202
202
  created_at: string
@@ -210,7 +210,7 @@ export declare interface FrameworkSchema {
210
210
  createdAt: string
211
211
  updatedAt: string | null
212
212
  }
213
- 'campaign_sends': {
213
+ campaign_sends: {
214
214
  id: number
215
215
  uuid: string
216
216
  created_at: string
@@ -249,7 +249,7 @@ export declare interface FrameworkSchema {
249
249
  teamId: number
250
250
  campaignVariantId: number
251
251
  }
252
- 'campaign_variants': {
252
+ campaign_variants: {
253
253
  id: number
254
254
  uuid: string
255
255
  created_at: string
@@ -275,7 +275,7 @@ export declare interface FrameworkSchema {
275
275
  teamId: number
276
276
  campaignId: number
277
277
  }
278
- 'campaigns': {
278
+ campaigns: {
279
279
  id: number
280
280
  uuid: string
281
281
  created_at: string
@@ -330,7 +330,7 @@ export declare interface FrameworkSchema {
330
330
  endDate: string
331
331
  teamId: number
332
332
  }
333
- 'card_comments': {
333
+ card_comments: {
334
334
  id: number
335
335
  uuid: string
336
336
  created_at: string
@@ -343,7 +343,7 @@ export declare interface FrameworkSchema {
343
343
  cardId: number
344
344
  userId: number
345
345
  }
346
- 'cards': {
346
+ cards: {
347
347
  id: number
348
348
  uuid: string
349
349
  created_at: string
@@ -367,7 +367,7 @@ export declare interface FrameworkSchema {
367
367
  boardColumnId: number
368
368
  userId: number
369
369
  }
370
- 'cart_items': {
370
+ cart_items: {
371
371
  id: number
372
372
  uuid: string
373
373
  created_at: string
@@ -397,7 +397,7 @@ export declare interface FrameworkSchema {
397
397
  productImage: string
398
398
  cartId: number
399
399
  }
400
- 'carts': {
400
+ carts: {
401
401
  id: number
402
402
  uuid: string
403
403
  created_at: string
@@ -424,7 +424,7 @@ export declare interface FrameworkSchema {
424
424
  customerId: number
425
425
  couponId: number
426
426
  }
427
- 'categories': {
427
+ categories: {
428
428
  id: number
429
429
  uuid: string
430
430
  created_at: string
@@ -443,7 +443,7 @@ export declare interface FrameworkSchema {
443
443
  parentCategoryId: string
444
444
  displayOrder: number
445
445
  }
446
- 'categorizable_models': {
446
+ categorizable_models: {
447
447
  id: number
448
448
  category_id: number
449
449
  categorizable_id: number
@@ -451,7 +451,7 @@ export declare interface FrameworkSchema {
451
451
  created_at: string
452
452
  updated_at: string | null
453
453
  }
454
- 'comments': {
454
+ comments: {
455
455
  id: number
456
456
  uuid: string
457
457
  created_at: string
@@ -478,7 +478,7 @@ export declare interface FrameworkSchema {
478
478
  postId: number
479
479
  userId: number
480
480
  }
481
- 'communication_suppressions': {
481
+ communication_suppressions: {
482
482
  id: number
483
483
  uuid: string
484
484
  created_at: string
@@ -496,7 +496,7 @@ export declare interface FrameworkSchema {
496
496
  liftedAt: string
497
497
  teamId: number
498
498
  }
499
- 'consent_events': {
499
+ consent_events: {
500
500
  id: number
501
501
  uuid: string
502
502
  created_at: string
@@ -521,7 +521,7 @@ export declare interface FrameworkSchema {
521
521
  occurredAt: string
522
522
  teamId: number
523
523
  }
524
- 'coupons': {
524
+ coupons: {
525
525
  id: number
526
526
  uuid: string
527
527
  created_at: string
@@ -554,7 +554,7 @@ export declare interface FrameworkSchema {
554
554
  endDate: string
555
555
  productId: number
556
556
  }
557
- 'customers': {
557
+ customers: {
558
558
  id: number
559
559
  uuid: string
560
560
  created_at: string
@@ -573,7 +573,7 @@ export declare interface FrameworkSchema {
573
573
  lastOrder: string
574
574
  userId: number
575
575
  }
576
- 'delivery_routes': {
576
+ delivery_routes: {
577
577
  id: number
578
578
  uuid: string
579
579
  created_at: string
@@ -597,7 +597,7 @@ export declare interface FrameworkSchema {
597
597
  completedAt: string
598
598
  driverId: number
599
599
  }
600
- 'delivery_stops': {
600
+ delivery_stops: {
601
601
  id: number
602
602
  uuid: string
603
603
  created_at: string
@@ -627,7 +627,7 @@ export declare interface FrameworkSchema {
627
627
  deliveryRouteId: number
628
628
  orderId: number
629
629
  }
630
- 'deployments': {
630
+ deployments: {
631
631
  id: number
632
632
  uuid: string
633
633
  created_at: string
@@ -647,7 +647,7 @@ export declare interface FrameworkSchema {
647
647
  commitMessage: string
648
648
  errorLog: string
649
649
  }
650
- 'digital_deliveries': {
650
+ digital_deliveries: {
651
651
  id: number
652
652
  uuid: string
653
653
  created_at: string
@@ -666,7 +666,7 @@ export declare interface FrameworkSchema {
666
666
  requiresLogin: boolean
667
667
  automaticDelivery: boolean
668
668
  }
669
- 'driver_pings': {
669
+ driver_pings: {
670
670
  id: number
671
671
  uuid: string
672
672
  created_at: string
@@ -685,7 +685,7 @@ export declare interface FrameworkSchema {
685
685
  driverId: number
686
686
  deliveryRouteId: number
687
687
  }
688
- 'drivers': {
688
+ drivers: {
689
689
  id: number
690
690
  uuid: string
691
691
  created_at: string
@@ -707,7 +707,7 @@ export declare interface FrameworkSchema {
707
707
  lastPingAt: string
708
708
  userId: number
709
709
  }
710
- 'email_idempotency': {
710
+ email_idempotency: {
711
711
  id: number
712
712
  created_at: string
713
713
  updated_at: string | null
@@ -722,7 +722,7 @@ export declare interface FrameworkSchema {
722
722
  idempotencyKey: string
723
723
  messageId: string
724
724
  }
725
- 'email_list_subscribers': {
725
+ email_list_subscribers: {
726
726
  id: number
727
727
  uuid: string
728
728
  created_at: string
@@ -740,7 +740,7 @@ export declare interface FrameworkSchema {
740
740
  subscribedAt: string
741
741
  unsubscribedAt: string
742
742
  }
743
- 'email_lists': {
743
+ email_lists: {
744
744
  id: number
745
745
  uuid: string
746
746
  created_at: string
@@ -764,7 +764,7 @@ export declare interface FrameworkSchema {
764
764
  isPublic: number
765
765
  doubleOptIn: number
766
766
  }
767
- 'email_suppressions': {
767
+ email_suppressions: {
768
768
  id: number
769
769
  created_at: string
770
770
  updated_at: string | null
@@ -774,7 +774,7 @@ export declare interface FrameworkSchema {
774
774
  createdAt: string
775
775
  updatedAt: string | null
776
776
  }
777
- 'email_webhook_events': {
777
+ email_webhook_events: {
778
778
  id: number
779
779
  created_at: string
780
780
  updated_at: string | null
@@ -786,7 +786,7 @@ export declare interface FrameworkSchema {
786
786
  eventId: string
787
787
  processedAt: string
788
788
  }
789
- 'errors': {
789
+ errors: {
790
790
  id: number
791
791
  created_at: string
792
792
  updated_at: string | null
@@ -799,7 +799,7 @@ export declare interface FrameworkSchema {
799
799
  updatedAt: string | null
800
800
  additionalInfo: string
801
801
  }
802
- 'failed_jobs': {
802
+ failed_jobs: {
803
803
  id: number
804
804
  uuid: string
805
805
  created_at: string
@@ -818,7 +818,7 @@ export declare interface FrameworkSchema {
818
818
  durationMs: number
819
819
  failedAt: string
820
820
  }
821
- 'form_fields': {
821
+ form_fields: {
822
822
  id: number
823
823
  created_at: string
824
824
  updated_at: string | null
@@ -835,7 +835,7 @@ export declare interface FrameworkSchema {
835
835
  updatedAt: string | null
836
836
  formId: number
837
837
  }
838
- 'form_submissions': {
838
+ form_submissions: {
839
839
  id: number
840
840
  uuid: string
841
841
  created_at: string
@@ -858,7 +858,7 @@ export declare interface FrameworkSchema {
858
858
  formId: number
859
859
  siteId: number
860
860
  }
861
- 'forms': {
861
+ forms: {
862
862
  id: number
863
863
  uuid: string
864
864
  created_at: string
@@ -872,7 +872,7 @@ export declare interface FrameworkSchema {
872
872
  updatedAt: string | null
873
873
  siteId: number
874
874
  }
875
- 'gift_cards': {
875
+ gift_cards: {
876
876
  id: number
877
877
  uuid: string
878
878
  created_at: string
@@ -909,7 +909,7 @@ export declare interface FrameworkSchema {
909
909
  templateId: string
910
910
  customerId: number
911
911
  }
912
- 'jobs': {
912
+ jobs: {
913
913
  id: number
914
914
  created_at: string
915
915
  updated_at: string | null
@@ -923,7 +923,7 @@ export declare interface FrameworkSchema {
923
923
  availableAt: number
924
924
  reservedAt: number
925
925
  }
926
- 'labels': {
926
+ labels: {
927
927
  id: number
928
928
  uuid: string
929
929
  created_at: string
@@ -935,7 +935,7 @@ export declare interface FrameworkSchema {
935
935
  updatedAt: string | null
936
936
  boardId: number
937
937
  }
938
- 'license_keys': {
938
+ license_keys: {
939
939
  id: number
940
940
  uuid: string
941
941
  created_at: string
@@ -954,7 +954,7 @@ export declare interface FrameworkSchema {
954
954
  productId: number
955
955
  orderId: number
956
956
  }
957
- 'logs': {
957
+ logs: {
958
958
  id: number
959
959
  created_at: string
960
960
  updated_at: string | null
@@ -968,7 +968,7 @@ export declare interface FrameworkSchema {
968
968
  createdAt: string
969
969
  updatedAt: string | null
970
970
  }
971
- 'loyalty_points': {
971
+ loyalty_points: {
972
972
  id: number
973
973
  uuid: string
974
974
  created_at: string
@@ -987,7 +987,7 @@ export declare interface FrameworkSchema {
987
987
  expiryDate: string
988
988
  isUsed: boolean
989
989
  }
990
- 'loyalty_rewards': {
990
+ loyalty_rewards: {
991
991
  id: number
992
992
  uuid: string
993
993
  created_at: string
@@ -1013,7 +1013,7 @@ export declare interface FrameworkSchema {
1013
1013
  imageUrl: string
1014
1014
  productId: number
1015
1015
  }
1016
- 'magic_link_tokens': {
1016
+ magic_link_tokens: {
1017
1017
  id: number
1018
1018
  created_at: string
1019
1019
  updated_at: string | null
@@ -1032,7 +1032,7 @@ export declare interface FrameworkSchema {
1032
1032
  siteId: number
1033
1033
  userId: number
1034
1034
  }
1035
- 'mail_preferences': {
1035
+ mail_preferences: {
1036
1036
  id: number
1037
1037
  created_at: string
1038
1038
  updated_at: string | null
@@ -1077,7 +1077,7 @@ export declare interface FrameworkSchema {
1077
1077
  vacationSubject: string
1078
1078
  vacationMessage: string
1079
1079
  }
1080
- 'manufacturers': {
1080
+ manufacturers: {
1081
1081
  id: number
1082
1082
  uuid: string
1083
1083
  created_at: string
@@ -1089,7 +1089,7 @@ export declare interface FrameworkSchema {
1089
1089
  createdAt: string
1090
1090
  updatedAt: string | null
1091
1091
  }
1092
- 'menu_items': {
1092
+ menu_items: {
1093
1093
  id: number
1094
1094
  created_at: string
1095
1095
  updated_at: string | null
@@ -1107,7 +1107,7 @@ export declare interface FrameworkSchema {
1107
1107
  menuId: number
1108
1108
  pageId: number
1109
1109
  }
1110
- 'menus': {
1110
+ menus: {
1111
1111
  id: number
1112
1112
  created_at: string
1113
1113
  updated_at: string | null
@@ -1118,7 +1118,7 @@ export declare interface FrameworkSchema {
1118
1118
  updatedAt: string | null
1119
1119
  siteId: number
1120
1120
  }
1121
- 'notification_deliveries': {
1121
+ notification_deliveries: {
1122
1122
  id: number
1123
1123
  created_at: string
1124
1124
  updated_at: string | null
@@ -1136,7 +1136,7 @@ export declare interface FrameworkSchema {
1136
1136
  userId: number
1137
1137
  sentAt: string
1138
1138
  }
1139
- 'notifications': {
1139
+ notifications: {
1140
1140
  id: number
1141
1141
  uuid: string
1142
1142
  created_at: string
@@ -1150,7 +1150,7 @@ export declare interface FrameworkSchema {
1150
1150
  readAt: string
1151
1151
  userId: number
1152
1152
  }
1153
- 'order_idempotency': {
1153
+ order_idempotency: {
1154
1154
  id: number
1155
1155
  created_at: string
1156
1156
  updated_at: string | null
@@ -1161,7 +1161,7 @@ export declare interface FrameworkSchema {
1161
1161
  idempotencyKey: string
1162
1162
  orderId: number
1163
1163
  }
1164
- 'order_items': {
1164
+ order_items: {
1165
1165
  id: number
1166
1166
  created_at: string
1167
1167
  updated_at: string | null
@@ -1176,7 +1176,7 @@ export declare interface FrameworkSchema {
1176
1176
  orderId: number
1177
1177
  productId: number
1178
1178
  }
1179
- 'orders': {
1179
+ orders: {
1180
1180
  id: number
1181
1181
  uuid: string
1182
1182
  created_at: string
@@ -1216,7 +1216,7 @@ export declare interface FrameworkSchema {
1216
1216
  customerId: number
1217
1217
  couponId: number
1218
1218
  }
1219
- 'page_revisions': {
1219
+ page_revisions: {
1220
1220
  id: number
1221
1221
  created_at: string
1222
1222
  updated_at: string | null
@@ -1233,7 +1233,7 @@ export declare interface FrameworkSchema {
1233
1233
  pageId: number
1234
1234
  authorId: number
1235
1235
  }
1236
- 'pages': {
1236
+ pages: {
1237
1237
  id: number
1238
1238
  uuid: string
1239
1239
  created_at: string
@@ -1261,7 +1261,7 @@ export declare interface FrameworkSchema {
1261
1261
  authorId: number
1262
1262
  siteId: number
1263
1263
  }
1264
- 'payment_methods': {
1264
+ payment_methods: {
1265
1265
  id: number
1266
1266
  uuid: string
1267
1267
  created_at: string
@@ -1283,7 +1283,7 @@ export declare interface FrameworkSchema {
1283
1283
  providerId: string
1284
1284
  userId: number
1285
1285
  }
1286
- 'payment_products': {
1286
+ payment_products: {
1287
1287
  id: number
1288
1288
  uuid: string
1289
1289
  created_at: string
@@ -1300,7 +1300,7 @@ export declare interface FrameworkSchema {
1300
1300
  unitPrice: number
1301
1301
  providerId: string
1302
1302
  }
1303
- 'payment_transactions': {
1303
+ payment_transactions: {
1304
1304
  id: number
1305
1305
  uuid: string
1306
1306
  created_at: string
@@ -1318,7 +1318,7 @@ export declare interface FrameworkSchema {
1318
1318
  userId: number
1319
1319
  paymentMethodId: number
1320
1320
  }
1321
- 'payments': {
1321
+ payments: {
1322
1322
  id: number
1323
1323
  uuid: string
1324
1324
  created_at: string
@@ -1349,7 +1349,7 @@ export declare interface FrameworkSchema {
1349
1349
  orderId: number
1350
1350
  customerId: number
1351
1351
  }
1352
- 'pledges': {
1352
+ pledges: {
1353
1353
  id: number
1354
1354
  uuid: string
1355
1355
  created_at: string
@@ -1366,7 +1366,7 @@ export declare interface FrameworkSchema {
1366
1366
  donorEmail: string
1367
1367
  auctionId: number
1368
1368
  }
1369
- 'posts': {
1369
+ posts: {
1370
1370
  id: number
1371
1371
  uuid: string
1372
1372
  created_at: string
@@ -1395,7 +1395,7 @@ export declare interface FrameworkSchema {
1395
1395
  authorId: number
1396
1396
  siteId: number
1397
1397
  }
1398
- 'print_devices': {
1398
+ print_devices: {
1399
1399
  id: number
1400
1400
  uuid: string
1401
1401
  created_at: string
@@ -1413,7 +1413,7 @@ export declare interface FrameworkSchema {
1413
1413
  lastPing: number
1414
1414
  printCount: number
1415
1415
  }
1416
- 'product_units': {
1416
+ product_units: {
1417
1417
  id: number
1418
1418
  uuid: string
1419
1419
  created_at: string
@@ -1429,7 +1429,7 @@ export declare interface FrameworkSchema {
1429
1429
  isDefault: boolean
1430
1430
  productId: number
1431
1431
  }
1432
- 'product_variants': {
1432
+ product_variants: {
1433
1433
  id: number
1434
1434
  uuid: string
1435
1435
  created_at: string
@@ -1444,7 +1444,7 @@ export declare interface FrameworkSchema {
1444
1444
  updatedAt: string | null
1445
1445
  productId: number
1446
1446
  }
1447
- 'products': {
1447
+ products: {
1448
1448
  id: number
1449
1449
  uuid: string
1450
1450
  created_at: string
@@ -1470,7 +1470,7 @@ export declare interface FrameworkSchema {
1470
1470
  categoryId: number
1471
1471
  manufacturerId: number
1472
1472
  }
1473
- 'query_logs': {
1473
+ query_logs: {
1474
1474
  id: number
1475
1475
  created_at: string
1476
1476
  updated_at: string | null
@@ -1509,7 +1509,7 @@ export declare interface FrameworkSchema {
1509
1509
  explainPlan: string
1510
1510
  optimizationSuggestions: string
1511
1511
  }
1512
- 'receipts': {
1512
+ receipts: {
1513
1513
  id: number
1514
1514
  uuid: string
1515
1515
  created_at: string
@@ -1527,7 +1527,7 @@ export declare interface FrameworkSchema {
1527
1527
  updatedAt: string | null
1528
1528
  printDeviceId: number
1529
1529
  }
1530
- 'redirects': {
1530
+ redirects: {
1531
1531
  id: number
1532
1532
  created_at: string
1533
1533
  updated_at: string | null
@@ -1543,7 +1543,7 @@ export declare interface FrameworkSchema {
1543
1543
  statusCode: number
1544
1544
  siteId: number
1545
1545
  }
1546
- 'releases': {
1546
+ releases: {
1547
1547
  id: number
1548
1548
  uuid: string
1549
1549
  created_at: string
@@ -1557,7 +1557,7 @@ export declare interface FrameworkSchema {
1557
1557
  createdAt: string
1558
1558
  updatedAt: string | null
1559
1559
  }
1560
- 'requests': {
1560
+ requests: {
1561
1561
  id: number
1562
1562
  created_at: string
1563
1563
  updated_at: string | null
@@ -1580,7 +1580,7 @@ export declare interface FrameworkSchema {
1580
1580
  userAgent: string
1581
1581
  errorMessage: string
1582
1582
  }
1583
- 'reviews': {
1583
+ reviews: {
1584
1584
  id: number
1585
1585
  uuid: string
1586
1586
  created_at: string
@@ -1608,7 +1608,7 @@ export declare interface FrameworkSchema {
1608
1608
  productId: number
1609
1609
  customerId: number
1610
1610
  }
1611
- 'sender_domains': {
1611
+ sender_domains: {
1612
1612
  id: number
1613
1613
  uuid: string
1614
1614
  created_at: string
@@ -1627,7 +1627,7 @@ export declare interface FrameworkSchema {
1627
1627
  lastCheckedAt: string
1628
1628
  teamId: number
1629
1629
  }
1630
- 'shipping_methods': {
1630
+ shipping_methods: {
1631
1631
  id: number
1632
1632
  uuid: string
1633
1633
  created_at: string
@@ -1642,7 +1642,7 @@ export declare interface FrameworkSchema {
1642
1642
  baseRate: number
1643
1643
  freeShipping: number
1644
1644
  }
1645
- 'shipping_rates': {
1645
+ shipping_rates: {
1646
1646
  id: number
1647
1647
  uuid: string
1648
1648
  created_at: string
@@ -1659,7 +1659,7 @@ export declare interface FrameworkSchema {
1659
1659
  shippingMethodId: number
1660
1660
  shippingZoneId: number
1661
1661
  }
1662
- 'shipping_zones': {
1662
+ shipping_zones: {
1663
1663
  id: number
1664
1664
  uuid: string
1665
1665
  created_at: string
@@ -1675,7 +1675,7 @@ export declare interface FrameworkSchema {
1675
1675
  postalCodes: string
1676
1676
  shippingMethodId: number
1677
1677
  }
1678
- 'site_domains': {
1678
+ site_domains: {
1679
1679
  id: number
1680
1680
  created_at: string
1681
1681
  updated_at: string | null
@@ -1691,7 +1691,7 @@ export declare interface FrameworkSchema {
1691
1691
  sslStatus: "pending" | "issued" | "failed"
1692
1692
  siteId: number
1693
1693
  }
1694
- 'sites': {
1694
+ sites: {
1695
1695
  id: number
1696
1696
  uuid: string
1697
1697
  created_at: string
@@ -1706,7 +1706,7 @@ export declare interface FrameworkSchema {
1706
1706
  updatedAt: string | null
1707
1707
  teamId: number
1708
1708
  }
1709
- 'sms_opt_outs': {
1709
+ sms_opt_outs: {
1710
1710
  id: number
1711
1711
  created_at: string
1712
1712
  updated_at: string | null
@@ -1717,7 +1717,7 @@ export declare interface FrameworkSchema {
1717
1717
  updatedAt: string | null
1718
1718
  optedOutAt: string
1719
1719
  }
1720
- 'social_accounts': {
1720
+ social_accounts: {
1721
1721
  id: number
1722
1722
  created_at: string
1723
1723
  updated_at: string | null
@@ -1731,7 +1731,7 @@ export declare interface FrameworkSchema {
1731
1731
  providerEmail: string
1732
1732
  userId: number
1733
1733
  }
1734
- 'social_posts': {
1734
+ social_posts: {
1735
1735
  id: number
1736
1736
  uuid: string
1737
1737
  created_at: string
@@ -1756,7 +1756,7 @@ export declare interface FrameworkSchema {
1756
1756
  externalId: string
1757
1757
  userId: number
1758
1758
  }
1759
- 'subscriber_emails': {
1759
+ subscriber_emails: {
1760
1760
  id: number
1761
1761
  uuid: string
1762
1762
  created_at: string
@@ -1768,7 +1768,7 @@ export declare interface FrameworkSchema {
1768
1768
  updatedAt: string | null
1769
1769
  subscriberId: number
1770
1770
  }
1771
- 'subscribers': {
1771
+ subscribers: {
1772
1772
  id: number
1773
1773
  uuid: string
1774
1774
  created_at: string
@@ -1783,7 +1783,7 @@ export declare interface FrameworkSchema {
1783
1783
  unsubscribedAt: string
1784
1784
  userId: number
1785
1785
  }
1786
- 'subscriptions': {
1786
+ subscriptions: {
1787
1787
  id: number
1788
1788
  uuid: string
1789
1789
  created_at: string
@@ -1812,7 +1812,7 @@ export declare interface FrameworkSchema {
1812
1812
  lastUsedAt: string
1813
1813
  userId: number
1814
1814
  }
1815
- 'taggable_models': {
1815
+ taggable_models: {
1816
1816
  id: number
1817
1817
  tag_id: number
1818
1818
  taggable_id: number
@@ -1820,7 +1820,7 @@ export declare interface FrameworkSchema {
1820
1820
  created_at: string
1821
1821
  updated_at: string | null
1822
1822
  }
1823
- 'tags': {
1823
+ tags: {
1824
1824
  id: number
1825
1825
  uuid: string
1826
1826
  created_at: string
@@ -1832,7 +1832,7 @@ export declare interface FrameworkSchema {
1832
1832
  createdAt: string
1833
1833
  updatedAt: string | null
1834
1834
  }
1835
- 'tax_rates': {
1835
+ tax_rates: {
1836
1836
  id: number
1837
1837
  uuid: string
1838
1838
  created_at: string
@@ -1850,7 +1850,7 @@ export declare interface FrameworkSchema {
1850
1850
  updatedAt: string | null
1851
1851
  isDefault: boolean
1852
1852
  }
1853
- 'team_invitations': {
1853
+ team_invitations: {
1854
1854
  id: number
1855
1855
  uuid: string
1856
1856
  created_at: string
@@ -1881,7 +1881,7 @@ export declare interface FrameworkSchema {
1881
1881
  deliveredAt: string
1882
1882
  acceptedAt: string
1883
1883
  }
1884
- 'team_members': {
1884
+ team_members: {
1885
1885
  id: number
1886
1886
  uuid: string
1887
1887
  created_at: string
@@ -1895,7 +1895,7 @@ export declare interface FrameworkSchema {
1895
1895
  teamId: number
1896
1896
  userId: number
1897
1897
  }
1898
- 'teams': {
1898
+ teams: {
1899
1899
  id: number
1900
1900
  uuid: string
1901
1901
  created_at: string
@@ -1908,7 +1908,7 @@ export declare interface FrameworkSchema {
1908
1908
  updatedAt: string | null
1909
1909
  memberCount: number
1910
1910
  }
1911
- 'transactions': {
1911
+ transactions: {
1912
1912
  id: number
1913
1913
  uuid: string
1914
1914
  created_at: string
@@ -1930,7 +1930,7 @@ export declare interface FrameworkSchema {
1930
1930
  loyaltyPointsRedeemed: number
1931
1931
  orderId: number
1932
1932
  }
1933
- 'usage_events': {
1933
+ usage_events: {
1934
1934
  id: number
1935
1935
  uuid: string
1936
1936
  created_at: string
@@ -1947,7 +1947,7 @@ export declare interface FrameworkSchema {
1947
1947
  occurredAt: string
1948
1948
  teamId: number
1949
1949
  }
1950
- 'users': {
1950
+ users: {
1951
1951
  id: number
1952
1952
  uuid: string
1953
1953
  created_at: string
@@ -1959,7 +1959,7 @@ export declare interface FrameworkSchema {
1959
1959
  createdAt: string
1960
1960
  updatedAt: string | null
1961
1961
  }
1962
- 'waitlist_products': {
1962
+ waitlist_products: {
1963
1963
  id: number
1964
1964
  uuid: string
1965
1965
  created_at: string
@@ -1986,7 +1986,7 @@ export declare interface FrameworkSchema {
1986
1986
  productId: number
1987
1987
  customerId: number
1988
1988
  }
1989
- 'waitlist_restaurants': {
1989
+ waitlist_restaurants: {
1990
1990
  id: number
1991
1991
  uuid: string
1992
1992
  created_at: string
@@ -2018,7 +2018,7 @@ export declare interface FrameworkSchema {
2018
2018
  cancelledAt: string
2019
2019
  customerId: number
2020
2020
  }
2021
- 'websockets': {
2021
+ websockets: {
2022
2022
  id: number
2023
2023
  created_at: string
2024
2024
  updated_at: string | null
package/dist/utils.d.ts CHANGED
@@ -198,6 +198,91 @@ export declare interface BaseFluentChain<TRow = Record<string, unknown>, TKind e
198
198
  exists: () => Promise<boolean>
199
199
  doesntExist: () => Promise<boolean>
200
200
  $call: (callback: (query: FluentChain<TRow, TKind>) => FluentChain<TRow, TKind>) => FluentChain<TRow, TKind>
201
+ abort: (...args: unknown[]) => FluentChain<TRow, TKind>
202
+ addSelect: (...args: unknown[]) => FluentChain<TRow, TKind>
203
+ applyPivotColumns: (...args: unknown[]) => FluentChain<TRow, TKind>
204
+ cache: (...args: unknown[]) => FluentChain<TRow, TKind>
205
+ clone: (...args: unknown[]) => FluentChain<TRow, TKind>
206
+ crossJoinSub: (...args: unknown[]) => FluentChain<TRow, TKind>
207
+ denseRank: (...args: unknown[]) => FluentChain<TRow, TKind>
208
+ doesntHave: (...args: unknown[]) => FluentChain<TRow, TKind>
209
+ dump: (...args: unknown[]) => FluentChain<TRow, TKind>
210
+ forPage: (...args: unknown[]) => FluentChain<TRow, TKind>
211
+ groupByRaw: (...args: unknown[]) => FluentChain<TRow, TKind>
212
+ has: (...args: unknown[]) => FluentChain<TRow, TKind>
213
+ havingRaw: (...args: unknown[]) => FluentChain<TRow, TKind>
214
+ inRandomOrder: (...args: unknown[]) => FluentChain<TRow, TKind>
215
+ join: (...args: unknown[]) => FluentChain<TRow, TKind>
216
+ joinSub: (...args: unknown[]) => FluentChain<TRow, TKind>
217
+ latest: (...args: unknown[]) => FluentChain<TRow, TKind>
218
+ leftJoinSub: (...args: unknown[]) => FluentChain<TRow, TKind>
219
+ lockForUpdate: (...args: unknown[]) => FluentChain<TRow, TKind>
220
+ oldest: (...args: unknown[]) => FluentChain<TRow, TKind>
221
+ onlyTrashed: (...args: unknown[]) => FluentChain<TRow, TKind>
222
+ orWhereBetween: (...args: unknown[]) => FluentChain<TRow, TKind>
223
+ orWhereExists: (...args: unknown[]) => FluentChain<TRow, TKind>
224
+ orWhereGroup: (...args: unknown[]) => FluentChain<TRow, TKind>
225
+ orWhereNested: (...args: unknown[]) => FluentChain<TRow, TKind>
226
+ orWhereNotILike: (...args: unknown[]) => FluentChain<TRow, TKind>
227
+ orWhereRaw: (...args: unknown[]) => FluentChain<TRow, TKind>
228
+ orderByDesc: (...args: unknown[]) => FluentChain<TRow, TKind>
229
+ orderByRaw: (...args: unknown[]) => FluentChain<TRow, TKind>
230
+ pipe: (...args: unknown[]) => FluentChain<TRow, TKind>
231
+ reorder: (...args: unknown[]) => FluentChain<TRow, TKind>
232
+ rowNumber: (...args: unknown[]) => FluentChain<TRow, TKind>
233
+ scope: (...args: unknown[]) => FluentChain<TRow, TKind>
234
+ sharedLock: (...args: unknown[]) => FluentChain<TRow, TKind>
235
+ tap: (...args: unknown[]) => FluentChain<TRow, TKind>
236
+ when: (...args: unknown[]) => FluentChain<TRow, TKind>
237
+ whereDate: (...args: unknown[]) => FluentChain<TRow, TKind>
238
+ whereDoesntHave: (...args: unknown[]) => FluentChain<TRow, TKind>
239
+ whereExists: (...args: unknown[]) => FluentChain<TRow, TKind>
240
+ whereGroup: (...args: unknown[]) => FluentChain<TRow, TKind>
241
+ whereHas: (...args: unknown[]) => FluentChain<TRow, TKind>
242
+ whereJsonContains: (...args: unknown[]) => FluentChain<TRow, TKind>
243
+ whereJsonContainsKey: (...args: unknown[]) => FluentChain<TRow, TKind>
244
+ whereJsonDoesntContain: (...args: unknown[]) => FluentChain<TRow, TKind>
245
+ whereJsonDoesntContainKey: (...args: unknown[]) => FluentChain<TRow, TKind>
246
+ whereJsonLength: (...args: unknown[]) => FluentChain<TRow, TKind>
247
+ whereJsonPath: (...args: unknown[]) => FluentChain<TRow, TKind>
248
+ whereNested: (...args: unknown[]) => FluentChain<TRow, TKind>
249
+ wherePivot: (...args: unknown[]) => FluentChain<TRow, TKind>
250
+ wherePivotIn: (...args: unknown[]) => FluentChain<TRow, TKind>
251
+ wherePivotNotIn: (...args: unknown[]) => FluentChain<TRow, TKind>
252
+ wherePivotNotNull: (...args: unknown[]) => FluentChain<TRow, TKind>
253
+ wherePivotNull: (...args: unknown[]) => FluentChain<TRow, TKind>
254
+ withAvg: (...args: unknown[]) => FluentChain<TRow, TKind>
255
+ withCTE: (...args: unknown[]) => FluentChain<TRow, TKind>
256
+ withCount: (...args: unknown[]) => FluentChain<TRow, TKind>
257
+ withMax: (...args: unknown[]) => FluentChain<TRow, TKind>
258
+ withMin: (...args: unknown[]) => FluentChain<TRow, TKind>
259
+ withPivot: (...args: unknown[]) => FluentChain<TRow, TKind>
260
+ withRecursive: (...args: unknown[]) => FluentChain<TRow, TKind>
261
+ withSum: (...args: unknown[]) => FluentChain<TRow, TKind>
262
+ withTimeout: (...args: unknown[]) => FluentChain<TRow, TKind>
263
+ withTrashed: (...args: unknown[]) => FluentChain<TRow, TKind>
264
+ get: () => Promise<TRow[]>
265
+ first: () => Promise<TRow | undefined>
266
+ firstOrFail: () => Promise<TRow>
267
+ find: (id: number | string) => Promise<TRow | undefined>
268
+ findMany: (ids: Array<number | string>) => Promise<TRow[]>
269
+ findOrFail: (id: number | string) => Promise<TRow>
270
+ value: <K extends keyof TRow & string>(column: K) => Promise<TRow[K]>
271
+ lazy: () => AsyncIterable<TRow>
272
+ lazyById: () => AsyncIterable<TRow>
273
+ chunk: (size: number, handler: (rows: TRow[]) => Promise<void> | void) => Promise<void>
274
+ chunkById: (size: number, column?: keyof TRow & string, handler?: (rows: TRow[]) => Promise<void> | void) => Promise<void>
275
+ eachById: (size: number, column?: keyof TRow & string, handler?: (row: TRow) => Promise<void> | void) => Promise<void>
276
+ paginate: (perPage: number, page?: number, opts?: unknown) => Promise<{ data: TRow[], meta: Record<string, unknown> }>
277
+ simplePaginate: (perPage: number, page?: number) => Promise<{ data: TRow[], meta: Record<string, unknown> }>
278
+ cursorPaginate: (perPage: number, cursor?: string | number, column?: string, direction?: 'asc' | 'desc') => Promise<{ data: TRow[], meta: Record<string, unknown> }>
279
+ explain: () => Promise<Record<string, unknown>[]>
280
+ raw: () => Promise<unknown[][]>
281
+ toParams: () => unknown[]
282
+ toText: () => string
283
+ simple: () => unknown
284
+ cancel: () => void
285
+ dd: () => never
201
286
  }
202
287
  /*.ts` and
203
288
  * emits `database/types.d.ts` containing:
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/database",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.72.24",
5
+ "version": "0.72.26",
6
6
  "description": "The Stacks database integration.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -65,15 +65,15 @@
65
65
  "dynamodb-tooling": "^0.3.2"
66
66
  },
67
67
  "devDependencies": {
68
- "@stacksjs/cli": "0.72.24",
69
- "@stacksjs/config": "0.72.24",
70
- "@stacksjs/logging": "0.72.24",
71
- "@stacksjs/router": "0.72.24",
68
+ "@stacksjs/cli": "0.72.26",
69
+ "@stacksjs/config": "0.72.26",
70
+ "@stacksjs/logging": "0.72.26",
71
+ "@stacksjs/router": "0.72.26",
72
72
  "better-dx": "^0.2.23",
73
- "@stacksjs/path": "0.72.24",
74
- "@stacksjs/query-builder": "0.72.24",
75
- "@stacksjs/storage": "0.72.24",
76
- "@stacksjs/strings": "0.72.24",
77
- "@stacksjs/utils": "0.72.24"
73
+ "@stacksjs/path": "0.72.26",
74
+ "@stacksjs/query-builder": "0.72.26",
75
+ "@stacksjs/storage": "0.72.26",
76
+ "@stacksjs/strings": "0.72.26",
77
+ "@stacksjs/utils": "0.72.26"
78
78
  }
79
79
  }