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