@nymbalhq/platform 0.0.0-stage → 0.2.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 +1372 -0
  11. package/dist/index.js +6652 -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 +69 -3
  48. package/README.md +0 -3
@@ -0,0 +1,1320 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "0bf2ed3d-a94e-4bb8-91c1-6b40fbb5d9d3",
5
+ "prevId": "2c4ad454-3060-4e91-81de-52431d37ab75",
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
+ "requires_password_reset": {
262
+ "name": "requires_password_reset",
263
+ "type": "integer",
264
+ "primaryKey": false,
265
+ "notNull": true,
266
+ "autoincrement": false,
267
+ "default": false
268
+ },
269
+ "created_at": {
270
+ "name": "created_at",
271
+ "type": "text",
272
+ "primaryKey": false,
273
+ "notNull": true,
274
+ "autoincrement": false
275
+ },
276
+ "updated_at": {
277
+ "name": "updated_at",
278
+ "type": "text",
279
+ "primaryKey": false,
280
+ "notNull": true,
281
+ "autoincrement": false
282
+ }
283
+ },
284
+ "indexes": {
285
+ "customers_email_unique": {
286
+ "name": "customers_email_unique",
287
+ "columns": [
288
+ "email"
289
+ ],
290
+ "isUnique": true
291
+ }
292
+ },
293
+ "foreignKeys": {},
294
+ "compositePrimaryKeys": {},
295
+ "uniqueConstraints": {},
296
+ "checkConstraints": {}
297
+ },
298
+ "events": {
299
+ "name": "events",
300
+ "columns": {
301
+ "seq": {
302
+ "name": "seq",
303
+ "type": "integer",
304
+ "primaryKey": true,
305
+ "notNull": true,
306
+ "autoincrement": true
307
+ },
308
+ "id": {
309
+ "name": "id",
310
+ "type": "text",
311
+ "primaryKey": false,
312
+ "notNull": true,
313
+ "autoincrement": false
314
+ },
315
+ "type": {
316
+ "name": "type",
317
+ "type": "text",
318
+ "primaryKey": false,
319
+ "notNull": true,
320
+ "autoincrement": false
321
+ },
322
+ "envelope": {
323
+ "name": "envelope",
324
+ "type": "text",
325
+ "primaryKey": false,
326
+ "notNull": true,
327
+ "autoincrement": false
328
+ },
329
+ "created_at": {
330
+ "name": "created_at",
331
+ "type": "text",
332
+ "primaryKey": false,
333
+ "notNull": true,
334
+ "autoincrement": false
335
+ },
336
+ "delivered_at": {
337
+ "name": "delivered_at",
338
+ "type": "text",
339
+ "primaryKey": false,
340
+ "notNull": false,
341
+ "autoincrement": false
342
+ },
343
+ "attempts": {
344
+ "name": "attempts",
345
+ "type": "integer",
346
+ "primaryKey": false,
347
+ "notNull": true,
348
+ "autoincrement": false,
349
+ "default": 0
350
+ },
351
+ "dead_at": {
352
+ "name": "dead_at",
353
+ "type": "text",
354
+ "primaryKey": false,
355
+ "notNull": false,
356
+ "autoincrement": false
357
+ }
358
+ },
359
+ "indexes": {
360
+ "events_id_unique": {
361
+ "name": "events_id_unique",
362
+ "columns": [
363
+ "id"
364
+ ],
365
+ "isUnique": true
366
+ },
367
+ "events_undelivered_idx": {
368
+ "name": "events_undelivered_idx",
369
+ "columns": [
370
+ "delivered_at",
371
+ "seq"
372
+ ],
373
+ "isUnique": false
374
+ }
375
+ },
376
+ "foreignKeys": {},
377
+ "compositePrimaryKeys": {},
378
+ "uniqueConstraints": {},
379
+ "checkConstraints": {}
380
+ },
381
+ "inventory_reservations": {
382
+ "name": "inventory_reservations",
383
+ "columns": {
384
+ "reservation_id": {
385
+ "name": "reservation_id",
386
+ "type": "text",
387
+ "primaryKey": true,
388
+ "notNull": true,
389
+ "autoincrement": false
390
+ },
391
+ "variant_id": {
392
+ "name": "variant_id",
393
+ "type": "text",
394
+ "primaryKey": false,
395
+ "notNull": true,
396
+ "autoincrement": false
397
+ },
398
+ "qty": {
399
+ "name": "qty",
400
+ "type": "integer",
401
+ "primaryKey": false,
402
+ "notNull": true,
403
+ "autoincrement": false
404
+ },
405
+ "order_ref": {
406
+ "name": "order_ref",
407
+ "type": "text",
408
+ "primaryKey": false,
409
+ "notNull": false,
410
+ "autoincrement": false
411
+ },
412
+ "expires_at": {
413
+ "name": "expires_at",
414
+ "type": "text",
415
+ "primaryKey": false,
416
+ "notNull": true,
417
+ "autoincrement": false
418
+ },
419
+ "created_at": {
420
+ "name": "created_at",
421
+ "type": "text",
422
+ "primaryKey": false,
423
+ "notNull": true,
424
+ "autoincrement": false
425
+ }
426
+ },
427
+ "indexes": {
428
+ "inv_reservations_variant_idx": {
429
+ "name": "inv_reservations_variant_idx",
430
+ "columns": [
431
+ "variant_id"
432
+ ],
433
+ "isUnique": false
434
+ },
435
+ "inv_reservations_expires_idx": {
436
+ "name": "inv_reservations_expires_idx",
437
+ "columns": [
438
+ "expires_at"
439
+ ],
440
+ "isUnique": false
441
+ }
442
+ },
443
+ "foreignKeys": {},
444
+ "compositePrimaryKeys": {},
445
+ "uniqueConstraints": {},
446
+ "checkConstraints": {}
447
+ },
448
+ "order_history": {
449
+ "name": "order_history",
450
+ "columns": {
451
+ "id": {
452
+ "name": "id",
453
+ "type": "text",
454
+ "primaryKey": true,
455
+ "notNull": true,
456
+ "autoincrement": false
457
+ },
458
+ "order_id": {
459
+ "name": "order_id",
460
+ "type": "text",
461
+ "primaryKey": false,
462
+ "notNull": true,
463
+ "autoincrement": false
464
+ },
465
+ "from_status": {
466
+ "name": "from_status",
467
+ "type": "text",
468
+ "primaryKey": false,
469
+ "notNull": false,
470
+ "autoincrement": false
471
+ },
472
+ "to_status": {
473
+ "name": "to_status",
474
+ "type": "text",
475
+ "primaryKey": false,
476
+ "notNull": true,
477
+ "autoincrement": false
478
+ },
479
+ "actor": {
480
+ "name": "actor",
481
+ "type": "text",
482
+ "primaryKey": false,
483
+ "notNull": true,
484
+ "autoincrement": false
485
+ },
486
+ "note": {
487
+ "name": "note",
488
+ "type": "text",
489
+ "primaryKey": false,
490
+ "notNull": true,
491
+ "autoincrement": false,
492
+ "default": "''"
493
+ },
494
+ "timestamp": {
495
+ "name": "timestamp",
496
+ "type": "text",
497
+ "primaryKey": false,
498
+ "notNull": true,
499
+ "autoincrement": false
500
+ }
501
+ },
502
+ "indexes": {
503
+ "order_history_order_idx": {
504
+ "name": "order_history_order_idx",
505
+ "columns": [
506
+ "order_id"
507
+ ],
508
+ "isUnique": false
509
+ }
510
+ },
511
+ "foreignKeys": {},
512
+ "compositePrimaryKeys": {},
513
+ "uniqueConstraints": {},
514
+ "checkConstraints": {}
515
+ },
516
+ "order_sequences": {
517
+ "name": "order_sequences",
518
+ "columns": {
519
+ "id": {
520
+ "name": "id",
521
+ "type": "integer",
522
+ "primaryKey": true,
523
+ "notNull": true,
524
+ "autoincrement": false
525
+ },
526
+ "next_value": {
527
+ "name": "next_value",
528
+ "type": "integer",
529
+ "primaryKey": false,
530
+ "notNull": true,
531
+ "autoincrement": false
532
+ }
533
+ },
534
+ "indexes": {},
535
+ "foreignKeys": {},
536
+ "compositePrimaryKeys": {},
537
+ "uniqueConstraints": {},
538
+ "checkConstraints": {}
539
+ },
540
+ "orders": {
541
+ "name": "orders",
542
+ "columns": {
543
+ "id": {
544
+ "name": "id",
545
+ "type": "text",
546
+ "primaryKey": true,
547
+ "notNull": true,
548
+ "autoincrement": false
549
+ },
550
+ "order_number": {
551
+ "name": "order_number",
552
+ "type": "text",
553
+ "primaryKey": false,
554
+ "notNull": true,
555
+ "autoincrement": false
556
+ },
557
+ "sequence": {
558
+ "name": "sequence",
559
+ "type": "integer",
560
+ "primaryKey": false,
561
+ "notNull": true,
562
+ "autoincrement": false
563
+ },
564
+ "customer_id": {
565
+ "name": "customer_id",
566
+ "type": "text",
567
+ "primaryKey": false,
568
+ "notNull": false,
569
+ "autoincrement": false
570
+ },
571
+ "status": {
572
+ "name": "status",
573
+ "type": "text",
574
+ "primaryKey": false,
575
+ "notNull": true,
576
+ "autoincrement": false,
577
+ "default": "'pending'"
578
+ },
579
+ "email": {
580
+ "name": "email",
581
+ "type": "text",
582
+ "primaryKey": false,
583
+ "notNull": true,
584
+ "autoincrement": false
585
+ },
586
+ "billing_address": {
587
+ "name": "billing_address",
588
+ "type": "text",
589
+ "primaryKey": false,
590
+ "notNull": true,
591
+ "autoincrement": false
592
+ },
593
+ "shipping_address": {
594
+ "name": "shipping_address",
595
+ "type": "text",
596
+ "primaryKey": false,
597
+ "notNull": true,
598
+ "autoincrement": false
599
+ },
600
+ "line_items": {
601
+ "name": "line_items",
602
+ "type": "text",
603
+ "primaryKey": false,
604
+ "notNull": true,
605
+ "autoincrement": false
606
+ },
607
+ "subtotal_minor": {
608
+ "name": "subtotal_minor",
609
+ "type": "integer",
610
+ "primaryKey": false,
611
+ "notNull": true,
612
+ "autoincrement": false
613
+ },
614
+ "tax_total_minor": {
615
+ "name": "tax_total_minor",
616
+ "type": "integer",
617
+ "primaryKey": false,
618
+ "notNull": true,
619
+ "autoincrement": false,
620
+ "default": 0
621
+ },
622
+ "shipping_total_minor": {
623
+ "name": "shipping_total_minor",
624
+ "type": "integer",
625
+ "primaryKey": false,
626
+ "notNull": true,
627
+ "autoincrement": false,
628
+ "default": 0
629
+ },
630
+ "discount_total_minor": {
631
+ "name": "discount_total_minor",
632
+ "type": "integer",
633
+ "primaryKey": false,
634
+ "notNull": true,
635
+ "autoincrement": false,
636
+ "default": 0
637
+ },
638
+ "total_minor": {
639
+ "name": "total_minor",
640
+ "type": "integer",
641
+ "primaryKey": false,
642
+ "notNull": true,
643
+ "autoincrement": false
644
+ },
645
+ "currency": {
646
+ "name": "currency",
647
+ "type": "text",
648
+ "primaryKey": false,
649
+ "notNull": true,
650
+ "autoincrement": false
651
+ },
652
+ "notes": {
653
+ "name": "notes",
654
+ "type": "text",
655
+ "primaryKey": false,
656
+ "notNull": true,
657
+ "autoincrement": false,
658
+ "default": "''"
659
+ },
660
+ "metadata": {
661
+ "name": "metadata",
662
+ "type": "text",
663
+ "primaryKey": false,
664
+ "notNull": true,
665
+ "autoincrement": false,
666
+ "default": "'{}'"
667
+ },
668
+ "payment_intent_id": {
669
+ "name": "payment_intent_id",
670
+ "type": "text",
671
+ "primaryKey": false,
672
+ "notNull": false,
673
+ "autoincrement": false
674
+ },
675
+ "created_at": {
676
+ "name": "created_at",
677
+ "type": "text",
678
+ "primaryKey": false,
679
+ "notNull": true,
680
+ "autoincrement": false
681
+ },
682
+ "updated_at": {
683
+ "name": "updated_at",
684
+ "type": "text",
685
+ "primaryKey": false,
686
+ "notNull": true,
687
+ "autoincrement": false
688
+ }
689
+ },
690
+ "indexes": {
691
+ "orders_number_unique": {
692
+ "name": "orders_number_unique",
693
+ "columns": [
694
+ "order_number"
695
+ ],
696
+ "isUnique": true
697
+ },
698
+ "orders_sequence_unique": {
699
+ "name": "orders_sequence_unique",
700
+ "columns": [
701
+ "sequence"
702
+ ],
703
+ "isUnique": true
704
+ },
705
+ "orders_customer_idx": {
706
+ "name": "orders_customer_idx",
707
+ "columns": [
708
+ "customer_id"
709
+ ],
710
+ "isUnique": false
711
+ },
712
+ "orders_status_idx": {
713
+ "name": "orders_status_idx",
714
+ "columns": [
715
+ "status"
716
+ ],
717
+ "isUnique": false
718
+ },
719
+ "orders_payment_intent_idx": {
720
+ "name": "orders_payment_intent_idx",
721
+ "columns": [
722
+ "payment_intent_id"
723
+ ],
724
+ "isUnique": false
725
+ }
726
+ },
727
+ "foreignKeys": {},
728
+ "compositePrimaryKeys": {},
729
+ "uniqueConstraints": {},
730
+ "checkConstraints": {}
731
+ },
732
+ "processed_events": {
733
+ "name": "processed_events",
734
+ "columns": {
735
+ "handler_name": {
736
+ "name": "handler_name",
737
+ "type": "text",
738
+ "primaryKey": false,
739
+ "notNull": true,
740
+ "autoincrement": false
741
+ },
742
+ "event_id": {
743
+ "name": "event_id",
744
+ "type": "text",
745
+ "primaryKey": false,
746
+ "notNull": true,
747
+ "autoincrement": false
748
+ },
749
+ "processed_at": {
750
+ "name": "processed_at",
751
+ "type": "text",
752
+ "primaryKey": false,
753
+ "notNull": true,
754
+ "autoincrement": false
755
+ }
756
+ },
757
+ "indexes": {},
758
+ "foreignKeys": {},
759
+ "compositePrimaryKeys": {
760
+ "processed_events_handler_name_event_id_pk": {
761
+ "columns": [
762
+ "handler_name",
763
+ "event_id"
764
+ ],
765
+ "name": "processed_events_handler_name_event_id_pk"
766
+ }
767
+ },
768
+ "uniqueConstraints": {},
769
+ "checkConstraints": {}
770
+ },
771
+ "product_categories": {
772
+ "name": "product_categories",
773
+ "columns": {
774
+ "product_id": {
775
+ "name": "product_id",
776
+ "type": "text",
777
+ "primaryKey": false,
778
+ "notNull": true,
779
+ "autoincrement": false
780
+ },
781
+ "category_id": {
782
+ "name": "category_id",
783
+ "type": "text",
784
+ "primaryKey": false,
785
+ "notNull": true,
786
+ "autoincrement": false
787
+ }
788
+ },
789
+ "indexes": {
790
+ "product_categories_category_idx": {
791
+ "name": "product_categories_category_idx",
792
+ "columns": [
793
+ "category_id"
794
+ ],
795
+ "isUnique": false
796
+ }
797
+ },
798
+ "foreignKeys": {},
799
+ "compositePrimaryKeys": {
800
+ "product_categories_product_id_category_id_pk": {
801
+ "columns": [
802
+ "product_id",
803
+ "category_id"
804
+ ],
805
+ "name": "product_categories_product_id_category_id_pk"
806
+ }
807
+ },
808
+ "uniqueConstraints": {},
809
+ "checkConstraints": {}
810
+ },
811
+ "products": {
812
+ "name": "products",
813
+ "columns": {
814
+ "id": {
815
+ "name": "id",
816
+ "type": "text",
817
+ "primaryKey": true,
818
+ "notNull": true,
819
+ "autoincrement": false
820
+ },
821
+ "slug": {
822
+ "name": "slug",
823
+ "type": "text",
824
+ "primaryKey": false,
825
+ "notNull": true,
826
+ "autoincrement": false
827
+ },
828
+ "name": {
829
+ "name": "name",
830
+ "type": "text",
831
+ "primaryKey": false,
832
+ "notNull": true,
833
+ "autoincrement": false
834
+ },
835
+ "description": {
836
+ "name": "description",
837
+ "type": "text",
838
+ "primaryKey": false,
839
+ "notNull": true,
840
+ "autoincrement": false,
841
+ "default": "''"
842
+ },
843
+ "short_description": {
844
+ "name": "short_description",
845
+ "type": "text",
846
+ "primaryKey": false,
847
+ "notNull": true,
848
+ "autoincrement": false,
849
+ "default": "''"
850
+ },
851
+ "status": {
852
+ "name": "status",
853
+ "type": "text",
854
+ "primaryKey": false,
855
+ "notNull": true,
856
+ "autoincrement": false,
857
+ "default": "'draft'"
858
+ },
859
+ "type": {
860
+ "name": "type",
861
+ "type": "text",
862
+ "primaryKey": false,
863
+ "notNull": true,
864
+ "autoincrement": false,
865
+ "default": "'simple'"
866
+ },
867
+ "seo_title": {
868
+ "name": "seo_title",
869
+ "type": "text",
870
+ "primaryKey": false,
871
+ "notNull": true,
872
+ "autoincrement": false,
873
+ "default": "''"
874
+ },
875
+ "seo_description": {
876
+ "name": "seo_description",
877
+ "type": "text",
878
+ "primaryKey": false,
879
+ "notNull": true,
880
+ "autoincrement": false,
881
+ "default": "''"
882
+ },
883
+ "media": {
884
+ "name": "media",
885
+ "type": "text",
886
+ "primaryKey": false,
887
+ "notNull": true,
888
+ "autoincrement": false,
889
+ "default": "'[]'"
890
+ },
891
+ "metadata": {
892
+ "name": "metadata",
893
+ "type": "text",
894
+ "primaryKey": false,
895
+ "notNull": true,
896
+ "autoincrement": false,
897
+ "default": "'{}'"
898
+ },
899
+ "created_at": {
900
+ "name": "created_at",
901
+ "type": "text",
902
+ "primaryKey": false,
903
+ "notNull": true,
904
+ "autoincrement": false
905
+ },
906
+ "updated_at": {
907
+ "name": "updated_at",
908
+ "type": "text",
909
+ "primaryKey": false,
910
+ "notNull": true,
911
+ "autoincrement": false
912
+ }
913
+ },
914
+ "indexes": {
915
+ "products_slug_unique": {
916
+ "name": "products_slug_unique",
917
+ "columns": [
918
+ "slug"
919
+ ],
920
+ "isUnique": true
921
+ },
922
+ "products_status_idx": {
923
+ "name": "products_status_idx",
924
+ "columns": [
925
+ "status"
926
+ ],
927
+ "isUnique": false
928
+ }
929
+ },
930
+ "foreignKeys": {},
931
+ "compositePrimaryKeys": {},
932
+ "uniqueConstraints": {},
933
+ "checkConstraints": {}
934
+ },
935
+ "refresh_tokens": {
936
+ "name": "refresh_tokens",
937
+ "columns": {
938
+ "id": {
939
+ "name": "id",
940
+ "type": "text",
941
+ "primaryKey": true,
942
+ "notNull": true,
943
+ "autoincrement": false
944
+ },
945
+ "customer_id": {
946
+ "name": "customer_id",
947
+ "type": "text",
948
+ "primaryKey": false,
949
+ "notNull": true,
950
+ "autoincrement": false
951
+ },
952
+ "token_hash": {
953
+ "name": "token_hash",
954
+ "type": "text",
955
+ "primaryKey": false,
956
+ "notNull": true,
957
+ "autoincrement": false
958
+ },
959
+ "revoked_at": {
960
+ "name": "revoked_at",
961
+ "type": "text",
962
+ "primaryKey": false,
963
+ "notNull": false,
964
+ "autoincrement": false
965
+ },
966
+ "replaced_by_jti": {
967
+ "name": "replaced_by_jti",
968
+ "type": "text",
969
+ "primaryKey": false,
970
+ "notNull": false,
971
+ "autoincrement": false
972
+ },
973
+ "expires_at": {
974
+ "name": "expires_at",
975
+ "type": "text",
976
+ "primaryKey": false,
977
+ "notNull": true,
978
+ "autoincrement": false
979
+ },
980
+ "created_at": {
981
+ "name": "created_at",
982
+ "type": "text",
983
+ "primaryKey": false,
984
+ "notNull": true,
985
+ "autoincrement": false
986
+ }
987
+ },
988
+ "indexes": {
989
+ "refresh_tokens_customer_idx": {
990
+ "name": "refresh_tokens_customer_idx",
991
+ "columns": [
992
+ "customer_id"
993
+ ],
994
+ "isUnique": false
995
+ }
996
+ },
997
+ "foreignKeys": {},
998
+ "compositePrimaryKeys": {},
999
+ "uniqueConstraints": {},
1000
+ "checkConstraints": {}
1001
+ },
1002
+ "reviews": {
1003
+ "name": "reviews",
1004
+ "columns": {
1005
+ "id": {
1006
+ "name": "id",
1007
+ "type": "text",
1008
+ "primaryKey": true,
1009
+ "notNull": true,
1010
+ "autoincrement": false
1011
+ },
1012
+ "product_id": {
1013
+ "name": "product_id",
1014
+ "type": "text",
1015
+ "primaryKey": false,
1016
+ "notNull": true,
1017
+ "autoincrement": false
1018
+ },
1019
+ "customer_id": {
1020
+ "name": "customer_id",
1021
+ "type": "text",
1022
+ "primaryKey": false,
1023
+ "notNull": false,
1024
+ "autoincrement": false
1025
+ },
1026
+ "order_id": {
1027
+ "name": "order_id",
1028
+ "type": "text",
1029
+ "primaryKey": false,
1030
+ "notNull": false,
1031
+ "autoincrement": false
1032
+ },
1033
+ "rating": {
1034
+ "name": "rating",
1035
+ "type": "integer",
1036
+ "primaryKey": false,
1037
+ "notNull": true,
1038
+ "autoincrement": false
1039
+ },
1040
+ "title": {
1041
+ "name": "title",
1042
+ "type": "text",
1043
+ "primaryKey": false,
1044
+ "notNull": true,
1045
+ "autoincrement": false,
1046
+ "default": "''"
1047
+ },
1048
+ "body": {
1049
+ "name": "body",
1050
+ "type": "text",
1051
+ "primaryKey": false,
1052
+ "notNull": true,
1053
+ "autoincrement": false,
1054
+ "default": "''"
1055
+ },
1056
+ "moderation_status": {
1057
+ "name": "moderation_status",
1058
+ "type": "text",
1059
+ "primaryKey": false,
1060
+ "notNull": true,
1061
+ "autoincrement": false,
1062
+ "default": "'pending'"
1063
+ },
1064
+ "submitted_at": {
1065
+ "name": "submitted_at",
1066
+ "type": "text",
1067
+ "primaryKey": false,
1068
+ "notNull": true,
1069
+ "autoincrement": false
1070
+ },
1071
+ "moderated_at": {
1072
+ "name": "moderated_at",
1073
+ "type": "text",
1074
+ "primaryKey": false,
1075
+ "notNull": false,
1076
+ "autoincrement": false
1077
+ },
1078
+ "moderated_by": {
1079
+ "name": "moderated_by",
1080
+ "type": "text",
1081
+ "primaryKey": false,
1082
+ "notNull": false,
1083
+ "autoincrement": false
1084
+ }
1085
+ },
1086
+ "indexes": {
1087
+ "reviews_product_idx": {
1088
+ "name": "reviews_product_idx",
1089
+ "columns": [
1090
+ "product_id"
1091
+ ],
1092
+ "isUnique": false
1093
+ },
1094
+ "reviews_status_idx": {
1095
+ "name": "reviews_status_idx",
1096
+ "columns": [
1097
+ "moderation_status"
1098
+ ],
1099
+ "isUnique": false
1100
+ }
1101
+ },
1102
+ "foreignKeys": {},
1103
+ "compositePrimaryKeys": {},
1104
+ "uniqueConstraints": {},
1105
+ "checkConstraints": {}
1106
+ },
1107
+ "stock_adjustments": {
1108
+ "name": "stock_adjustments",
1109
+ "columns": {
1110
+ "id": {
1111
+ "name": "id",
1112
+ "type": "text",
1113
+ "primaryKey": true,
1114
+ "notNull": true,
1115
+ "autoincrement": false
1116
+ },
1117
+ "variant_id": {
1118
+ "name": "variant_id",
1119
+ "type": "text",
1120
+ "primaryKey": false,
1121
+ "notNull": true,
1122
+ "autoincrement": false
1123
+ },
1124
+ "adjustment": {
1125
+ "name": "adjustment",
1126
+ "type": "integer",
1127
+ "primaryKey": false,
1128
+ "notNull": true,
1129
+ "autoincrement": false
1130
+ },
1131
+ "reason": {
1132
+ "name": "reason",
1133
+ "type": "text",
1134
+ "primaryKey": false,
1135
+ "notNull": true,
1136
+ "autoincrement": false
1137
+ },
1138
+ "actor": {
1139
+ "name": "actor",
1140
+ "type": "text",
1141
+ "primaryKey": false,
1142
+ "notNull": true,
1143
+ "autoincrement": false
1144
+ },
1145
+ "previous_qty": {
1146
+ "name": "previous_qty",
1147
+ "type": "integer",
1148
+ "primaryKey": false,
1149
+ "notNull": true,
1150
+ "autoincrement": false
1151
+ },
1152
+ "new_qty": {
1153
+ "name": "new_qty",
1154
+ "type": "integer",
1155
+ "primaryKey": false,
1156
+ "notNull": true,
1157
+ "autoincrement": false
1158
+ },
1159
+ "timestamp": {
1160
+ "name": "timestamp",
1161
+ "type": "text",
1162
+ "primaryKey": false,
1163
+ "notNull": true,
1164
+ "autoincrement": false
1165
+ }
1166
+ },
1167
+ "indexes": {
1168
+ "stock_adjustments_variant_idx": {
1169
+ "name": "stock_adjustments_variant_idx",
1170
+ "columns": [
1171
+ "variant_id"
1172
+ ],
1173
+ "isUnique": false
1174
+ }
1175
+ },
1176
+ "foreignKeys": {},
1177
+ "compositePrimaryKeys": {},
1178
+ "uniqueConstraints": {},
1179
+ "checkConstraints": {}
1180
+ },
1181
+ "variants": {
1182
+ "name": "variants",
1183
+ "columns": {
1184
+ "id": {
1185
+ "name": "id",
1186
+ "type": "text",
1187
+ "primaryKey": true,
1188
+ "notNull": true,
1189
+ "autoincrement": false
1190
+ },
1191
+ "product_id": {
1192
+ "name": "product_id",
1193
+ "type": "text",
1194
+ "primaryKey": false,
1195
+ "notNull": true,
1196
+ "autoincrement": false
1197
+ },
1198
+ "sku": {
1199
+ "name": "sku",
1200
+ "type": "text",
1201
+ "primaryKey": false,
1202
+ "notNull": true,
1203
+ "autoincrement": false
1204
+ },
1205
+ "name": {
1206
+ "name": "name",
1207
+ "type": "text",
1208
+ "primaryKey": false,
1209
+ "notNull": true,
1210
+ "autoincrement": false,
1211
+ "default": "''"
1212
+ },
1213
+ "price_minor": {
1214
+ "name": "price_minor",
1215
+ "type": "integer",
1216
+ "primaryKey": false,
1217
+ "notNull": true,
1218
+ "autoincrement": false
1219
+ },
1220
+ "compare_at_price_minor": {
1221
+ "name": "compare_at_price_minor",
1222
+ "type": "integer",
1223
+ "primaryKey": false,
1224
+ "notNull": false,
1225
+ "autoincrement": false
1226
+ },
1227
+ "weight_grams": {
1228
+ "name": "weight_grams",
1229
+ "type": "integer",
1230
+ "primaryKey": false,
1231
+ "notNull": false,
1232
+ "autoincrement": false
1233
+ },
1234
+ "dimensions": {
1235
+ "name": "dimensions",
1236
+ "type": "text",
1237
+ "primaryKey": false,
1238
+ "notNull": false,
1239
+ "autoincrement": false
1240
+ },
1241
+ "stock": {
1242
+ "name": "stock",
1243
+ "type": "integer",
1244
+ "primaryKey": false,
1245
+ "notNull": true,
1246
+ "autoincrement": false,
1247
+ "default": 0
1248
+ },
1249
+ "low_stock_threshold": {
1250
+ "name": "low_stock_threshold",
1251
+ "type": "integer",
1252
+ "primaryKey": false,
1253
+ "notNull": true,
1254
+ "autoincrement": false,
1255
+ "default": 0
1256
+ },
1257
+ "options": {
1258
+ "name": "options",
1259
+ "type": "text",
1260
+ "primaryKey": false,
1261
+ "notNull": true,
1262
+ "autoincrement": false,
1263
+ "default": "'[]'"
1264
+ },
1265
+ "status": {
1266
+ "name": "status",
1267
+ "type": "text",
1268
+ "primaryKey": false,
1269
+ "notNull": true,
1270
+ "autoincrement": false,
1271
+ "default": "'active'"
1272
+ },
1273
+ "created_at": {
1274
+ "name": "created_at",
1275
+ "type": "text",
1276
+ "primaryKey": false,
1277
+ "notNull": true,
1278
+ "autoincrement": false
1279
+ },
1280
+ "updated_at": {
1281
+ "name": "updated_at",
1282
+ "type": "text",
1283
+ "primaryKey": false,
1284
+ "notNull": true,
1285
+ "autoincrement": false
1286
+ }
1287
+ },
1288
+ "indexes": {
1289
+ "variants_sku_unique": {
1290
+ "name": "variants_sku_unique",
1291
+ "columns": [
1292
+ "sku"
1293
+ ],
1294
+ "isUnique": true
1295
+ },
1296
+ "variants_product_idx": {
1297
+ "name": "variants_product_idx",
1298
+ "columns": [
1299
+ "product_id"
1300
+ ],
1301
+ "isUnique": false
1302
+ }
1303
+ },
1304
+ "foreignKeys": {},
1305
+ "compositePrimaryKeys": {},
1306
+ "uniqueConstraints": {},
1307
+ "checkConstraints": {}
1308
+ }
1309
+ },
1310
+ "views": {},
1311
+ "enums": {},
1312
+ "_meta": {
1313
+ "schemas": {},
1314
+ "tables": {},
1315
+ "columns": {}
1316
+ },
1317
+ "internal": {
1318
+ "indexes": {}
1319
+ }
1320
+ }