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