@nymbalhq/platform 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/chunk-74KODSYJ.js +2564 -0
  2. package/dist/chunk-74KODSYJ.js.map +1 -0
  3. package/dist/chunk-PW6ILJF7.js +740 -0
  4. package/dist/chunk-PW6ILJF7.js.map +1 -0
  5. package/dist/chunk-PZ5AY32C.js +10 -0
  6. package/dist/chunk-PZ5AY32C.js.map +1 -0
  7. package/dist/db/schema/index.d.ts +10125 -0
  8. package/dist/db/schema/index.js +10 -0
  9. package/dist/db/schema/index.js.map +1 -0
  10. package/dist/index.d.ts +1373 -0
  11. package/dist/index.js +6462 -0
  12. package/dist/index.js.map +1 -0
  13. package/dist/register-IVFYBJSX.js +8 -0
  14. package/dist/register-IVFYBJSX.js.map +1 -0
  15. package/drizzle.config.postgres.ts +10 -0
  16. package/drizzle.config.sqlite.ts +10 -0
  17. package/migrations/postgres/0000_tearful_longshot.sql +166 -0
  18. package/migrations/postgres/0001_neat_zeigeist.sql +1 -0
  19. package/migrations/postgres/0002_sloppy_mad_thinker.sql +20 -0
  20. package/migrations/postgres/0003_violet_violations.sql +15 -0
  21. package/migrations/postgres/0004_white_reavers.sql +15 -0
  22. package/migrations/postgres/0005_natural_nico_minoru.sql +12 -0
  23. package/migrations/postgres/0006_minor_dragon_man.sql +28 -0
  24. package/migrations/postgres/meta/0000_snapshot.json +1172 -0
  25. package/migrations/postgres/meta/0001_snapshot.json +1187 -0
  26. package/migrations/postgres/meta/0002_snapshot.json +1325 -0
  27. package/migrations/postgres/meta/0003_snapshot.json +1432 -0
  28. package/migrations/postgres/meta/0004_snapshot.json +1439 -0
  29. package/migrations/postgres/meta/0005_snapshot.json +1461 -0
  30. package/migrations/postgres/meta/0006_snapshot.json +1598 -0
  31. package/migrations/postgres/meta/_journal.json +55 -0
  32. package/migrations/sqlite/0000_glorious_vision.sql +166 -0
  33. package/migrations/sqlite/0001_tricky_glorian.sql +1 -0
  34. package/migrations/sqlite/0002_puzzling_epoch.sql +19 -0
  35. package/migrations/sqlite/0003_fantastic_captain_stacy.sql +15 -0
  36. package/migrations/sqlite/0004_remarkable_shriek.sql +12 -0
  37. package/migrations/sqlite/0005_conscious_speedball.sql +13 -0
  38. package/migrations/sqlite/0006_flat_psylocke.sql +28 -0
  39. package/migrations/sqlite/meta/0000_snapshot.json +1093 -0
  40. package/migrations/sqlite/meta/0001_snapshot.json +1100 -0
  41. package/migrations/sqlite/meta/0002_snapshot.json +1222 -0
  42. package/migrations/sqlite/meta/0003_snapshot.json +1320 -0
  43. package/migrations/sqlite/meta/0004_snapshot.json +1328 -0
  44. package/migrations/sqlite/meta/0005_snapshot.json +1343 -0
  45. package/migrations/sqlite/meta/0006_snapshot.json +1470 -0
  46. package/migrations/sqlite/meta/_journal.json +55 -0
  47. package/package.json +85 -3
  48. package/README.md +0 -3
@@ -0,0 +1,1328 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "4cbd5000-eaf0-4ba4-833a-40d6c4db03bf",
5
+ "prevId": "0bf2ed3d-a94e-4bb8-91c1-6b40fbb5d9d3",
6
+ "tables": {
7
+ "carts": {
8
+ "name": "carts",
9
+ "columns": {
10
+ "token": {
11
+ "name": "token",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "customer_id": {
18
+ "name": "customer_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": false,
22
+ "autoincrement": false
23
+ },
24
+ "currency": {
25
+ "name": "currency",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "items": {
32
+ "name": "items",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false,
37
+ "default": "'[]'"
38
+ },
39
+ "line_count": {
40
+ "name": "line_count",
41
+ "type": "integer",
42
+ "primaryKey": false,
43
+ "notNull": true,
44
+ "autoincrement": false,
45
+ "default": 0
46
+ },
47
+ "subtotal_minor": {
48
+ "name": "subtotal_minor",
49
+ "type": "integer",
50
+ "primaryKey": false,
51
+ "notNull": true,
52
+ "autoincrement": false,
53
+ "default": 0
54
+ },
55
+ "expires_at": {
56
+ "name": "expires_at",
57
+ "type": "text",
58
+ "primaryKey": false,
59
+ "notNull": true,
60
+ "autoincrement": false
61
+ },
62
+ "created_at": {
63
+ "name": "created_at",
64
+ "type": "text",
65
+ "primaryKey": false,
66
+ "notNull": true,
67
+ "autoincrement": false
68
+ },
69
+ "updated_at": {
70
+ "name": "updated_at",
71
+ "type": "text",
72
+ "primaryKey": false,
73
+ "notNull": true,
74
+ "autoincrement": false
75
+ },
76
+ "abandoned_notified_at": {
77
+ "name": "abandoned_notified_at",
78
+ "type": "text",
79
+ "primaryKey": false,
80
+ "notNull": false,
81
+ "autoincrement": false
82
+ }
83
+ },
84
+ "indexes": {
85
+ "carts_expires_idx": {
86
+ "name": "carts_expires_idx",
87
+ "columns": [
88
+ "expires_at"
89
+ ],
90
+ "isUnique": false
91
+ },
92
+ "carts_updated_idx": {
93
+ "name": "carts_updated_idx",
94
+ "columns": [
95
+ "updated_at"
96
+ ],
97
+ "isUnique": false
98
+ }
99
+ },
100
+ "foreignKeys": {},
101
+ "compositePrimaryKeys": {},
102
+ "uniqueConstraints": {},
103
+ "checkConstraints": {}
104
+ },
105
+ "categories": {
106
+ "name": "categories",
107
+ "columns": {
108
+ "id": {
109
+ "name": "id",
110
+ "type": "text",
111
+ "primaryKey": true,
112
+ "notNull": true,
113
+ "autoincrement": false
114
+ },
115
+ "parent_id": {
116
+ "name": "parent_id",
117
+ "type": "text",
118
+ "primaryKey": false,
119
+ "notNull": false,
120
+ "autoincrement": false
121
+ },
122
+ "slug": {
123
+ "name": "slug",
124
+ "type": "text",
125
+ "primaryKey": false,
126
+ "notNull": true,
127
+ "autoincrement": false
128
+ },
129
+ "name": {
130
+ "name": "name",
131
+ "type": "text",
132
+ "primaryKey": false,
133
+ "notNull": true,
134
+ "autoincrement": false
135
+ },
136
+ "description": {
137
+ "name": "description",
138
+ "type": "text",
139
+ "primaryKey": false,
140
+ "notNull": true,
141
+ "autoincrement": false,
142
+ "default": "''"
143
+ },
144
+ "position": {
145
+ "name": "position",
146
+ "type": "integer",
147
+ "primaryKey": false,
148
+ "notNull": true,
149
+ "autoincrement": false,
150
+ "default": 0
151
+ },
152
+ "created_at": {
153
+ "name": "created_at",
154
+ "type": "text",
155
+ "primaryKey": false,
156
+ "notNull": true,
157
+ "autoincrement": false
158
+ }
159
+ },
160
+ "indexes": {
161
+ "categories_slug_unique": {
162
+ "name": "categories_slug_unique",
163
+ "columns": [
164
+ "slug"
165
+ ],
166
+ "isUnique": true
167
+ },
168
+ "categories_parent_idx": {
169
+ "name": "categories_parent_idx",
170
+ "columns": [
171
+ "parent_id"
172
+ ],
173
+ "isUnique": false
174
+ }
175
+ },
176
+ "foreignKeys": {},
177
+ "compositePrimaryKeys": {},
178
+ "uniqueConstraints": {},
179
+ "checkConstraints": {}
180
+ },
181
+ "customers": {
182
+ "name": "customers",
183
+ "columns": {
184
+ "id": {
185
+ "name": "id",
186
+ "type": "text",
187
+ "primaryKey": true,
188
+ "notNull": true,
189
+ "autoincrement": false
190
+ },
191
+ "email": {
192
+ "name": "email",
193
+ "type": "text",
194
+ "primaryKey": false,
195
+ "notNull": true,
196
+ "autoincrement": false
197
+ },
198
+ "password_hash": {
199
+ "name": "password_hash",
200
+ "type": "text",
201
+ "primaryKey": false,
202
+ "notNull": true,
203
+ "autoincrement": false
204
+ },
205
+ "first_name": {
206
+ "name": "first_name",
207
+ "type": "text",
208
+ "primaryKey": false,
209
+ "notNull": true,
210
+ "autoincrement": false,
211
+ "default": "''"
212
+ },
213
+ "last_name": {
214
+ "name": "last_name",
215
+ "type": "text",
216
+ "primaryKey": false,
217
+ "notNull": true,
218
+ "autoincrement": false,
219
+ "default": "''"
220
+ },
221
+ "phone": {
222
+ "name": "phone",
223
+ "type": "text",
224
+ "primaryKey": false,
225
+ "notNull": true,
226
+ "autoincrement": false,
227
+ "default": "''"
228
+ },
229
+ "addresses": {
230
+ "name": "addresses",
231
+ "type": "text",
232
+ "primaryKey": false,
233
+ "notNull": true,
234
+ "autoincrement": false,
235
+ "default": "'[]'"
236
+ },
237
+ "order_count": {
238
+ "name": "order_count",
239
+ "type": "integer",
240
+ "primaryKey": false,
241
+ "notNull": true,
242
+ "autoincrement": false,
243
+ "default": 0
244
+ },
245
+ "total_spent_minor": {
246
+ "name": "total_spent_minor",
247
+ "type": "integer",
248
+ "primaryKey": false,
249
+ "notNull": true,
250
+ "autoincrement": false,
251
+ "default": 0
252
+ },
253
+ "metadata": {
254
+ "name": "metadata",
255
+ "type": "text",
256
+ "primaryKey": false,
257
+ "notNull": true,
258
+ "autoincrement": false,
259
+ "default": "'{}'"
260
+ },
261
+ "roles": {
262
+ "name": "roles",
263
+ "type": "text",
264
+ "primaryKey": false,
265
+ "notNull": true,
266
+ "autoincrement": false,
267
+ "default": "'[\"customer\"]'"
268
+ },
269
+ "requires_password_reset": {
270
+ "name": "requires_password_reset",
271
+ "type": "integer",
272
+ "primaryKey": false,
273
+ "notNull": true,
274
+ "autoincrement": false,
275
+ "default": false
276
+ },
277
+ "created_at": {
278
+ "name": "created_at",
279
+ "type": "text",
280
+ "primaryKey": false,
281
+ "notNull": true,
282
+ "autoincrement": false
283
+ },
284
+ "updated_at": {
285
+ "name": "updated_at",
286
+ "type": "text",
287
+ "primaryKey": false,
288
+ "notNull": true,
289
+ "autoincrement": false
290
+ }
291
+ },
292
+ "indexes": {
293
+ "customers_email_unique": {
294
+ "name": "customers_email_unique",
295
+ "columns": [
296
+ "email"
297
+ ],
298
+ "isUnique": true
299
+ }
300
+ },
301
+ "foreignKeys": {},
302
+ "compositePrimaryKeys": {},
303
+ "uniqueConstraints": {},
304
+ "checkConstraints": {}
305
+ },
306
+ "events": {
307
+ "name": "events",
308
+ "columns": {
309
+ "seq": {
310
+ "name": "seq",
311
+ "type": "integer",
312
+ "primaryKey": true,
313
+ "notNull": true,
314
+ "autoincrement": true
315
+ },
316
+ "id": {
317
+ "name": "id",
318
+ "type": "text",
319
+ "primaryKey": false,
320
+ "notNull": true,
321
+ "autoincrement": false
322
+ },
323
+ "type": {
324
+ "name": "type",
325
+ "type": "text",
326
+ "primaryKey": false,
327
+ "notNull": true,
328
+ "autoincrement": false
329
+ },
330
+ "envelope": {
331
+ "name": "envelope",
332
+ "type": "text",
333
+ "primaryKey": false,
334
+ "notNull": true,
335
+ "autoincrement": false
336
+ },
337
+ "created_at": {
338
+ "name": "created_at",
339
+ "type": "text",
340
+ "primaryKey": false,
341
+ "notNull": true,
342
+ "autoincrement": false
343
+ },
344
+ "delivered_at": {
345
+ "name": "delivered_at",
346
+ "type": "text",
347
+ "primaryKey": false,
348
+ "notNull": false,
349
+ "autoincrement": false
350
+ },
351
+ "attempts": {
352
+ "name": "attempts",
353
+ "type": "integer",
354
+ "primaryKey": false,
355
+ "notNull": true,
356
+ "autoincrement": false,
357
+ "default": 0
358
+ },
359
+ "dead_at": {
360
+ "name": "dead_at",
361
+ "type": "text",
362
+ "primaryKey": false,
363
+ "notNull": false,
364
+ "autoincrement": false
365
+ }
366
+ },
367
+ "indexes": {
368
+ "events_id_unique": {
369
+ "name": "events_id_unique",
370
+ "columns": [
371
+ "id"
372
+ ],
373
+ "isUnique": true
374
+ },
375
+ "events_undelivered_idx": {
376
+ "name": "events_undelivered_idx",
377
+ "columns": [
378
+ "delivered_at",
379
+ "seq"
380
+ ],
381
+ "isUnique": false
382
+ }
383
+ },
384
+ "foreignKeys": {},
385
+ "compositePrimaryKeys": {},
386
+ "uniqueConstraints": {},
387
+ "checkConstraints": {}
388
+ },
389
+ "inventory_reservations": {
390
+ "name": "inventory_reservations",
391
+ "columns": {
392
+ "reservation_id": {
393
+ "name": "reservation_id",
394
+ "type": "text",
395
+ "primaryKey": true,
396
+ "notNull": true,
397
+ "autoincrement": false
398
+ },
399
+ "variant_id": {
400
+ "name": "variant_id",
401
+ "type": "text",
402
+ "primaryKey": false,
403
+ "notNull": true,
404
+ "autoincrement": false
405
+ },
406
+ "qty": {
407
+ "name": "qty",
408
+ "type": "integer",
409
+ "primaryKey": false,
410
+ "notNull": true,
411
+ "autoincrement": false
412
+ },
413
+ "order_ref": {
414
+ "name": "order_ref",
415
+ "type": "text",
416
+ "primaryKey": false,
417
+ "notNull": false,
418
+ "autoincrement": false
419
+ },
420
+ "expires_at": {
421
+ "name": "expires_at",
422
+ "type": "text",
423
+ "primaryKey": false,
424
+ "notNull": true,
425
+ "autoincrement": false
426
+ },
427
+ "created_at": {
428
+ "name": "created_at",
429
+ "type": "text",
430
+ "primaryKey": false,
431
+ "notNull": true,
432
+ "autoincrement": false
433
+ }
434
+ },
435
+ "indexes": {
436
+ "inv_reservations_variant_idx": {
437
+ "name": "inv_reservations_variant_idx",
438
+ "columns": [
439
+ "variant_id"
440
+ ],
441
+ "isUnique": false
442
+ },
443
+ "inv_reservations_expires_idx": {
444
+ "name": "inv_reservations_expires_idx",
445
+ "columns": [
446
+ "expires_at"
447
+ ],
448
+ "isUnique": false
449
+ }
450
+ },
451
+ "foreignKeys": {},
452
+ "compositePrimaryKeys": {},
453
+ "uniqueConstraints": {},
454
+ "checkConstraints": {}
455
+ },
456
+ "order_history": {
457
+ "name": "order_history",
458
+ "columns": {
459
+ "id": {
460
+ "name": "id",
461
+ "type": "text",
462
+ "primaryKey": true,
463
+ "notNull": true,
464
+ "autoincrement": false
465
+ },
466
+ "order_id": {
467
+ "name": "order_id",
468
+ "type": "text",
469
+ "primaryKey": false,
470
+ "notNull": true,
471
+ "autoincrement": false
472
+ },
473
+ "from_status": {
474
+ "name": "from_status",
475
+ "type": "text",
476
+ "primaryKey": false,
477
+ "notNull": false,
478
+ "autoincrement": false
479
+ },
480
+ "to_status": {
481
+ "name": "to_status",
482
+ "type": "text",
483
+ "primaryKey": false,
484
+ "notNull": true,
485
+ "autoincrement": false
486
+ },
487
+ "actor": {
488
+ "name": "actor",
489
+ "type": "text",
490
+ "primaryKey": false,
491
+ "notNull": true,
492
+ "autoincrement": false
493
+ },
494
+ "note": {
495
+ "name": "note",
496
+ "type": "text",
497
+ "primaryKey": false,
498
+ "notNull": true,
499
+ "autoincrement": false,
500
+ "default": "''"
501
+ },
502
+ "timestamp": {
503
+ "name": "timestamp",
504
+ "type": "text",
505
+ "primaryKey": false,
506
+ "notNull": true,
507
+ "autoincrement": false
508
+ }
509
+ },
510
+ "indexes": {
511
+ "order_history_order_idx": {
512
+ "name": "order_history_order_idx",
513
+ "columns": [
514
+ "order_id"
515
+ ],
516
+ "isUnique": false
517
+ }
518
+ },
519
+ "foreignKeys": {},
520
+ "compositePrimaryKeys": {},
521
+ "uniqueConstraints": {},
522
+ "checkConstraints": {}
523
+ },
524
+ "order_sequences": {
525
+ "name": "order_sequences",
526
+ "columns": {
527
+ "id": {
528
+ "name": "id",
529
+ "type": "integer",
530
+ "primaryKey": true,
531
+ "notNull": true,
532
+ "autoincrement": false
533
+ },
534
+ "next_value": {
535
+ "name": "next_value",
536
+ "type": "integer",
537
+ "primaryKey": false,
538
+ "notNull": true,
539
+ "autoincrement": false
540
+ }
541
+ },
542
+ "indexes": {},
543
+ "foreignKeys": {},
544
+ "compositePrimaryKeys": {},
545
+ "uniqueConstraints": {},
546
+ "checkConstraints": {}
547
+ },
548
+ "orders": {
549
+ "name": "orders",
550
+ "columns": {
551
+ "id": {
552
+ "name": "id",
553
+ "type": "text",
554
+ "primaryKey": true,
555
+ "notNull": true,
556
+ "autoincrement": false
557
+ },
558
+ "order_number": {
559
+ "name": "order_number",
560
+ "type": "text",
561
+ "primaryKey": false,
562
+ "notNull": true,
563
+ "autoincrement": false
564
+ },
565
+ "sequence": {
566
+ "name": "sequence",
567
+ "type": "integer",
568
+ "primaryKey": false,
569
+ "notNull": true,
570
+ "autoincrement": false
571
+ },
572
+ "customer_id": {
573
+ "name": "customer_id",
574
+ "type": "text",
575
+ "primaryKey": false,
576
+ "notNull": false,
577
+ "autoincrement": false
578
+ },
579
+ "status": {
580
+ "name": "status",
581
+ "type": "text",
582
+ "primaryKey": false,
583
+ "notNull": true,
584
+ "autoincrement": false,
585
+ "default": "'pending'"
586
+ },
587
+ "email": {
588
+ "name": "email",
589
+ "type": "text",
590
+ "primaryKey": false,
591
+ "notNull": true,
592
+ "autoincrement": false
593
+ },
594
+ "billing_address": {
595
+ "name": "billing_address",
596
+ "type": "text",
597
+ "primaryKey": false,
598
+ "notNull": true,
599
+ "autoincrement": false
600
+ },
601
+ "shipping_address": {
602
+ "name": "shipping_address",
603
+ "type": "text",
604
+ "primaryKey": false,
605
+ "notNull": true,
606
+ "autoincrement": false
607
+ },
608
+ "line_items": {
609
+ "name": "line_items",
610
+ "type": "text",
611
+ "primaryKey": false,
612
+ "notNull": true,
613
+ "autoincrement": false
614
+ },
615
+ "subtotal_minor": {
616
+ "name": "subtotal_minor",
617
+ "type": "integer",
618
+ "primaryKey": false,
619
+ "notNull": true,
620
+ "autoincrement": false
621
+ },
622
+ "tax_total_minor": {
623
+ "name": "tax_total_minor",
624
+ "type": "integer",
625
+ "primaryKey": false,
626
+ "notNull": true,
627
+ "autoincrement": false,
628
+ "default": 0
629
+ },
630
+ "shipping_total_minor": {
631
+ "name": "shipping_total_minor",
632
+ "type": "integer",
633
+ "primaryKey": false,
634
+ "notNull": true,
635
+ "autoincrement": false,
636
+ "default": 0
637
+ },
638
+ "discount_total_minor": {
639
+ "name": "discount_total_minor",
640
+ "type": "integer",
641
+ "primaryKey": false,
642
+ "notNull": true,
643
+ "autoincrement": false,
644
+ "default": 0
645
+ },
646
+ "total_minor": {
647
+ "name": "total_minor",
648
+ "type": "integer",
649
+ "primaryKey": false,
650
+ "notNull": true,
651
+ "autoincrement": false
652
+ },
653
+ "currency": {
654
+ "name": "currency",
655
+ "type": "text",
656
+ "primaryKey": false,
657
+ "notNull": true,
658
+ "autoincrement": false
659
+ },
660
+ "notes": {
661
+ "name": "notes",
662
+ "type": "text",
663
+ "primaryKey": false,
664
+ "notNull": true,
665
+ "autoincrement": false,
666
+ "default": "''"
667
+ },
668
+ "metadata": {
669
+ "name": "metadata",
670
+ "type": "text",
671
+ "primaryKey": false,
672
+ "notNull": true,
673
+ "autoincrement": false,
674
+ "default": "'{}'"
675
+ },
676
+ "payment_intent_id": {
677
+ "name": "payment_intent_id",
678
+ "type": "text",
679
+ "primaryKey": false,
680
+ "notNull": false,
681
+ "autoincrement": false
682
+ },
683
+ "created_at": {
684
+ "name": "created_at",
685
+ "type": "text",
686
+ "primaryKey": false,
687
+ "notNull": true,
688
+ "autoincrement": false
689
+ },
690
+ "updated_at": {
691
+ "name": "updated_at",
692
+ "type": "text",
693
+ "primaryKey": false,
694
+ "notNull": true,
695
+ "autoincrement": false
696
+ }
697
+ },
698
+ "indexes": {
699
+ "orders_number_unique": {
700
+ "name": "orders_number_unique",
701
+ "columns": [
702
+ "order_number"
703
+ ],
704
+ "isUnique": true
705
+ },
706
+ "orders_sequence_unique": {
707
+ "name": "orders_sequence_unique",
708
+ "columns": [
709
+ "sequence"
710
+ ],
711
+ "isUnique": true
712
+ },
713
+ "orders_customer_idx": {
714
+ "name": "orders_customer_idx",
715
+ "columns": [
716
+ "customer_id"
717
+ ],
718
+ "isUnique": false
719
+ },
720
+ "orders_status_idx": {
721
+ "name": "orders_status_idx",
722
+ "columns": [
723
+ "status"
724
+ ],
725
+ "isUnique": false
726
+ },
727
+ "orders_payment_intent_idx": {
728
+ "name": "orders_payment_intent_idx",
729
+ "columns": [
730
+ "payment_intent_id"
731
+ ],
732
+ "isUnique": false
733
+ }
734
+ },
735
+ "foreignKeys": {},
736
+ "compositePrimaryKeys": {},
737
+ "uniqueConstraints": {},
738
+ "checkConstraints": {}
739
+ },
740
+ "processed_events": {
741
+ "name": "processed_events",
742
+ "columns": {
743
+ "handler_name": {
744
+ "name": "handler_name",
745
+ "type": "text",
746
+ "primaryKey": false,
747
+ "notNull": true,
748
+ "autoincrement": false
749
+ },
750
+ "event_id": {
751
+ "name": "event_id",
752
+ "type": "text",
753
+ "primaryKey": false,
754
+ "notNull": true,
755
+ "autoincrement": false
756
+ },
757
+ "processed_at": {
758
+ "name": "processed_at",
759
+ "type": "text",
760
+ "primaryKey": false,
761
+ "notNull": true,
762
+ "autoincrement": false
763
+ }
764
+ },
765
+ "indexes": {},
766
+ "foreignKeys": {},
767
+ "compositePrimaryKeys": {
768
+ "processed_events_handler_name_event_id_pk": {
769
+ "columns": [
770
+ "handler_name",
771
+ "event_id"
772
+ ],
773
+ "name": "processed_events_handler_name_event_id_pk"
774
+ }
775
+ },
776
+ "uniqueConstraints": {},
777
+ "checkConstraints": {}
778
+ },
779
+ "product_categories": {
780
+ "name": "product_categories",
781
+ "columns": {
782
+ "product_id": {
783
+ "name": "product_id",
784
+ "type": "text",
785
+ "primaryKey": false,
786
+ "notNull": true,
787
+ "autoincrement": false
788
+ },
789
+ "category_id": {
790
+ "name": "category_id",
791
+ "type": "text",
792
+ "primaryKey": false,
793
+ "notNull": true,
794
+ "autoincrement": false
795
+ }
796
+ },
797
+ "indexes": {
798
+ "product_categories_category_idx": {
799
+ "name": "product_categories_category_idx",
800
+ "columns": [
801
+ "category_id"
802
+ ],
803
+ "isUnique": false
804
+ }
805
+ },
806
+ "foreignKeys": {},
807
+ "compositePrimaryKeys": {
808
+ "product_categories_product_id_category_id_pk": {
809
+ "columns": [
810
+ "product_id",
811
+ "category_id"
812
+ ],
813
+ "name": "product_categories_product_id_category_id_pk"
814
+ }
815
+ },
816
+ "uniqueConstraints": {},
817
+ "checkConstraints": {}
818
+ },
819
+ "products": {
820
+ "name": "products",
821
+ "columns": {
822
+ "id": {
823
+ "name": "id",
824
+ "type": "text",
825
+ "primaryKey": true,
826
+ "notNull": true,
827
+ "autoincrement": false
828
+ },
829
+ "slug": {
830
+ "name": "slug",
831
+ "type": "text",
832
+ "primaryKey": false,
833
+ "notNull": true,
834
+ "autoincrement": false
835
+ },
836
+ "name": {
837
+ "name": "name",
838
+ "type": "text",
839
+ "primaryKey": false,
840
+ "notNull": true,
841
+ "autoincrement": false
842
+ },
843
+ "description": {
844
+ "name": "description",
845
+ "type": "text",
846
+ "primaryKey": false,
847
+ "notNull": true,
848
+ "autoincrement": false,
849
+ "default": "''"
850
+ },
851
+ "short_description": {
852
+ "name": "short_description",
853
+ "type": "text",
854
+ "primaryKey": false,
855
+ "notNull": true,
856
+ "autoincrement": false,
857
+ "default": "''"
858
+ },
859
+ "status": {
860
+ "name": "status",
861
+ "type": "text",
862
+ "primaryKey": false,
863
+ "notNull": true,
864
+ "autoincrement": false,
865
+ "default": "'draft'"
866
+ },
867
+ "type": {
868
+ "name": "type",
869
+ "type": "text",
870
+ "primaryKey": false,
871
+ "notNull": true,
872
+ "autoincrement": false,
873
+ "default": "'simple'"
874
+ },
875
+ "seo_title": {
876
+ "name": "seo_title",
877
+ "type": "text",
878
+ "primaryKey": false,
879
+ "notNull": true,
880
+ "autoincrement": false,
881
+ "default": "''"
882
+ },
883
+ "seo_description": {
884
+ "name": "seo_description",
885
+ "type": "text",
886
+ "primaryKey": false,
887
+ "notNull": true,
888
+ "autoincrement": false,
889
+ "default": "''"
890
+ },
891
+ "media": {
892
+ "name": "media",
893
+ "type": "text",
894
+ "primaryKey": false,
895
+ "notNull": true,
896
+ "autoincrement": false,
897
+ "default": "'[]'"
898
+ },
899
+ "metadata": {
900
+ "name": "metadata",
901
+ "type": "text",
902
+ "primaryKey": false,
903
+ "notNull": true,
904
+ "autoincrement": false,
905
+ "default": "'{}'"
906
+ },
907
+ "created_at": {
908
+ "name": "created_at",
909
+ "type": "text",
910
+ "primaryKey": false,
911
+ "notNull": true,
912
+ "autoincrement": false
913
+ },
914
+ "updated_at": {
915
+ "name": "updated_at",
916
+ "type": "text",
917
+ "primaryKey": false,
918
+ "notNull": true,
919
+ "autoincrement": false
920
+ }
921
+ },
922
+ "indexes": {
923
+ "products_slug_unique": {
924
+ "name": "products_slug_unique",
925
+ "columns": [
926
+ "slug"
927
+ ],
928
+ "isUnique": true
929
+ },
930
+ "products_status_idx": {
931
+ "name": "products_status_idx",
932
+ "columns": [
933
+ "status"
934
+ ],
935
+ "isUnique": false
936
+ }
937
+ },
938
+ "foreignKeys": {},
939
+ "compositePrimaryKeys": {},
940
+ "uniqueConstraints": {},
941
+ "checkConstraints": {}
942
+ },
943
+ "refresh_tokens": {
944
+ "name": "refresh_tokens",
945
+ "columns": {
946
+ "id": {
947
+ "name": "id",
948
+ "type": "text",
949
+ "primaryKey": true,
950
+ "notNull": true,
951
+ "autoincrement": false
952
+ },
953
+ "customer_id": {
954
+ "name": "customer_id",
955
+ "type": "text",
956
+ "primaryKey": false,
957
+ "notNull": true,
958
+ "autoincrement": false
959
+ },
960
+ "token_hash": {
961
+ "name": "token_hash",
962
+ "type": "text",
963
+ "primaryKey": false,
964
+ "notNull": true,
965
+ "autoincrement": false
966
+ },
967
+ "revoked_at": {
968
+ "name": "revoked_at",
969
+ "type": "text",
970
+ "primaryKey": false,
971
+ "notNull": false,
972
+ "autoincrement": false
973
+ },
974
+ "replaced_by_jti": {
975
+ "name": "replaced_by_jti",
976
+ "type": "text",
977
+ "primaryKey": false,
978
+ "notNull": false,
979
+ "autoincrement": false
980
+ },
981
+ "expires_at": {
982
+ "name": "expires_at",
983
+ "type": "text",
984
+ "primaryKey": false,
985
+ "notNull": true,
986
+ "autoincrement": false
987
+ },
988
+ "created_at": {
989
+ "name": "created_at",
990
+ "type": "text",
991
+ "primaryKey": false,
992
+ "notNull": true,
993
+ "autoincrement": false
994
+ }
995
+ },
996
+ "indexes": {
997
+ "refresh_tokens_customer_idx": {
998
+ "name": "refresh_tokens_customer_idx",
999
+ "columns": [
1000
+ "customer_id"
1001
+ ],
1002
+ "isUnique": false
1003
+ }
1004
+ },
1005
+ "foreignKeys": {},
1006
+ "compositePrimaryKeys": {},
1007
+ "uniqueConstraints": {},
1008
+ "checkConstraints": {}
1009
+ },
1010
+ "reviews": {
1011
+ "name": "reviews",
1012
+ "columns": {
1013
+ "id": {
1014
+ "name": "id",
1015
+ "type": "text",
1016
+ "primaryKey": true,
1017
+ "notNull": true,
1018
+ "autoincrement": false
1019
+ },
1020
+ "product_id": {
1021
+ "name": "product_id",
1022
+ "type": "text",
1023
+ "primaryKey": false,
1024
+ "notNull": true,
1025
+ "autoincrement": false
1026
+ },
1027
+ "customer_id": {
1028
+ "name": "customer_id",
1029
+ "type": "text",
1030
+ "primaryKey": false,
1031
+ "notNull": false,
1032
+ "autoincrement": false
1033
+ },
1034
+ "order_id": {
1035
+ "name": "order_id",
1036
+ "type": "text",
1037
+ "primaryKey": false,
1038
+ "notNull": false,
1039
+ "autoincrement": false
1040
+ },
1041
+ "rating": {
1042
+ "name": "rating",
1043
+ "type": "integer",
1044
+ "primaryKey": false,
1045
+ "notNull": true,
1046
+ "autoincrement": false
1047
+ },
1048
+ "title": {
1049
+ "name": "title",
1050
+ "type": "text",
1051
+ "primaryKey": false,
1052
+ "notNull": true,
1053
+ "autoincrement": false,
1054
+ "default": "''"
1055
+ },
1056
+ "body": {
1057
+ "name": "body",
1058
+ "type": "text",
1059
+ "primaryKey": false,
1060
+ "notNull": true,
1061
+ "autoincrement": false,
1062
+ "default": "''"
1063
+ },
1064
+ "moderation_status": {
1065
+ "name": "moderation_status",
1066
+ "type": "text",
1067
+ "primaryKey": false,
1068
+ "notNull": true,
1069
+ "autoincrement": false,
1070
+ "default": "'pending'"
1071
+ },
1072
+ "submitted_at": {
1073
+ "name": "submitted_at",
1074
+ "type": "text",
1075
+ "primaryKey": false,
1076
+ "notNull": true,
1077
+ "autoincrement": false
1078
+ },
1079
+ "moderated_at": {
1080
+ "name": "moderated_at",
1081
+ "type": "text",
1082
+ "primaryKey": false,
1083
+ "notNull": false,
1084
+ "autoincrement": false
1085
+ },
1086
+ "moderated_by": {
1087
+ "name": "moderated_by",
1088
+ "type": "text",
1089
+ "primaryKey": false,
1090
+ "notNull": false,
1091
+ "autoincrement": false
1092
+ }
1093
+ },
1094
+ "indexes": {
1095
+ "reviews_product_idx": {
1096
+ "name": "reviews_product_idx",
1097
+ "columns": [
1098
+ "product_id"
1099
+ ],
1100
+ "isUnique": false
1101
+ },
1102
+ "reviews_status_idx": {
1103
+ "name": "reviews_status_idx",
1104
+ "columns": [
1105
+ "moderation_status"
1106
+ ],
1107
+ "isUnique": false
1108
+ }
1109
+ },
1110
+ "foreignKeys": {},
1111
+ "compositePrimaryKeys": {},
1112
+ "uniqueConstraints": {},
1113
+ "checkConstraints": {}
1114
+ },
1115
+ "stock_adjustments": {
1116
+ "name": "stock_adjustments",
1117
+ "columns": {
1118
+ "id": {
1119
+ "name": "id",
1120
+ "type": "text",
1121
+ "primaryKey": true,
1122
+ "notNull": true,
1123
+ "autoincrement": false
1124
+ },
1125
+ "variant_id": {
1126
+ "name": "variant_id",
1127
+ "type": "text",
1128
+ "primaryKey": false,
1129
+ "notNull": true,
1130
+ "autoincrement": false
1131
+ },
1132
+ "adjustment": {
1133
+ "name": "adjustment",
1134
+ "type": "integer",
1135
+ "primaryKey": false,
1136
+ "notNull": true,
1137
+ "autoincrement": false
1138
+ },
1139
+ "reason": {
1140
+ "name": "reason",
1141
+ "type": "text",
1142
+ "primaryKey": false,
1143
+ "notNull": true,
1144
+ "autoincrement": false
1145
+ },
1146
+ "actor": {
1147
+ "name": "actor",
1148
+ "type": "text",
1149
+ "primaryKey": false,
1150
+ "notNull": true,
1151
+ "autoincrement": false
1152
+ },
1153
+ "previous_qty": {
1154
+ "name": "previous_qty",
1155
+ "type": "integer",
1156
+ "primaryKey": false,
1157
+ "notNull": true,
1158
+ "autoincrement": false
1159
+ },
1160
+ "new_qty": {
1161
+ "name": "new_qty",
1162
+ "type": "integer",
1163
+ "primaryKey": false,
1164
+ "notNull": true,
1165
+ "autoincrement": false
1166
+ },
1167
+ "timestamp": {
1168
+ "name": "timestamp",
1169
+ "type": "text",
1170
+ "primaryKey": false,
1171
+ "notNull": true,
1172
+ "autoincrement": false
1173
+ }
1174
+ },
1175
+ "indexes": {
1176
+ "stock_adjustments_variant_idx": {
1177
+ "name": "stock_adjustments_variant_idx",
1178
+ "columns": [
1179
+ "variant_id"
1180
+ ],
1181
+ "isUnique": false
1182
+ }
1183
+ },
1184
+ "foreignKeys": {},
1185
+ "compositePrimaryKeys": {},
1186
+ "uniqueConstraints": {},
1187
+ "checkConstraints": {}
1188
+ },
1189
+ "variants": {
1190
+ "name": "variants",
1191
+ "columns": {
1192
+ "id": {
1193
+ "name": "id",
1194
+ "type": "text",
1195
+ "primaryKey": true,
1196
+ "notNull": true,
1197
+ "autoincrement": false
1198
+ },
1199
+ "product_id": {
1200
+ "name": "product_id",
1201
+ "type": "text",
1202
+ "primaryKey": false,
1203
+ "notNull": true,
1204
+ "autoincrement": false
1205
+ },
1206
+ "sku": {
1207
+ "name": "sku",
1208
+ "type": "text",
1209
+ "primaryKey": false,
1210
+ "notNull": true,
1211
+ "autoincrement": false
1212
+ },
1213
+ "name": {
1214
+ "name": "name",
1215
+ "type": "text",
1216
+ "primaryKey": false,
1217
+ "notNull": true,
1218
+ "autoincrement": false,
1219
+ "default": "''"
1220
+ },
1221
+ "price_minor": {
1222
+ "name": "price_minor",
1223
+ "type": "integer",
1224
+ "primaryKey": false,
1225
+ "notNull": true,
1226
+ "autoincrement": false
1227
+ },
1228
+ "compare_at_price_minor": {
1229
+ "name": "compare_at_price_minor",
1230
+ "type": "integer",
1231
+ "primaryKey": false,
1232
+ "notNull": false,
1233
+ "autoincrement": false
1234
+ },
1235
+ "weight_grams": {
1236
+ "name": "weight_grams",
1237
+ "type": "integer",
1238
+ "primaryKey": false,
1239
+ "notNull": false,
1240
+ "autoincrement": false
1241
+ },
1242
+ "dimensions": {
1243
+ "name": "dimensions",
1244
+ "type": "text",
1245
+ "primaryKey": false,
1246
+ "notNull": false,
1247
+ "autoincrement": false
1248
+ },
1249
+ "stock": {
1250
+ "name": "stock",
1251
+ "type": "integer",
1252
+ "primaryKey": false,
1253
+ "notNull": true,
1254
+ "autoincrement": false,
1255
+ "default": 0
1256
+ },
1257
+ "low_stock_threshold": {
1258
+ "name": "low_stock_threshold",
1259
+ "type": "integer",
1260
+ "primaryKey": false,
1261
+ "notNull": true,
1262
+ "autoincrement": false,
1263
+ "default": 0
1264
+ },
1265
+ "options": {
1266
+ "name": "options",
1267
+ "type": "text",
1268
+ "primaryKey": false,
1269
+ "notNull": true,
1270
+ "autoincrement": false,
1271
+ "default": "'[]'"
1272
+ },
1273
+ "status": {
1274
+ "name": "status",
1275
+ "type": "text",
1276
+ "primaryKey": false,
1277
+ "notNull": true,
1278
+ "autoincrement": false,
1279
+ "default": "'active'"
1280
+ },
1281
+ "created_at": {
1282
+ "name": "created_at",
1283
+ "type": "text",
1284
+ "primaryKey": false,
1285
+ "notNull": true,
1286
+ "autoincrement": false
1287
+ },
1288
+ "updated_at": {
1289
+ "name": "updated_at",
1290
+ "type": "text",
1291
+ "primaryKey": false,
1292
+ "notNull": true,
1293
+ "autoincrement": false
1294
+ }
1295
+ },
1296
+ "indexes": {
1297
+ "variants_sku_unique": {
1298
+ "name": "variants_sku_unique",
1299
+ "columns": [
1300
+ "sku"
1301
+ ],
1302
+ "isUnique": true
1303
+ },
1304
+ "variants_product_idx": {
1305
+ "name": "variants_product_idx",
1306
+ "columns": [
1307
+ "product_id"
1308
+ ],
1309
+ "isUnique": false
1310
+ }
1311
+ },
1312
+ "foreignKeys": {},
1313
+ "compositePrimaryKeys": {},
1314
+ "uniqueConstraints": {},
1315
+ "checkConstraints": {}
1316
+ }
1317
+ },
1318
+ "views": {},
1319
+ "enums": {},
1320
+ "_meta": {
1321
+ "schemas": {},
1322
+ "tables": {},
1323
+ "columns": {}
1324
+ },
1325
+ "internal": {
1326
+ "indexes": {}
1327
+ }
1328
+ }