@zodic/shared 0.0.14 → 0.0.16

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.
@@ -0,0 +1,1400 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "d2aec0b1-fc8e-4ef9-bcc3-a4358b1ba88a",
5
+ "prevId": "354158b6-9733-4c5d-848c-9616374861d1",
6
+ "tables": {
7
+ "artifact_faceswap": {
8
+ "name": "artifact_faceswap",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "user_artifact_id": {
18
+ "name": "user_artifact_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "face_swapped_image_url": {
25
+ "name": "face_swapped_image_url",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": false,
29
+ "autoincrement": false
30
+ },
31
+ "created_at": {
32
+ "name": "created_at",
33
+ "type": "integer",
34
+ "primaryKey": false,
35
+ "notNull": false,
36
+ "autoincrement": false,
37
+ "default": "CURRENT_TIMESTAMP"
38
+ },
39
+ "updated_at": {
40
+ "name": "updated_at",
41
+ "type": "integer",
42
+ "primaryKey": false,
43
+ "notNull": false,
44
+ "autoincrement": false,
45
+ "default": "CURRENT_TIMESTAMP"
46
+ }
47
+ },
48
+ "indexes": {},
49
+ "foreignKeys": {
50
+ "artifact_faceswap_user_artifact_id_user_artifacts_id_fk": {
51
+ "name": "artifact_faceswap_user_artifact_id_user_artifacts_id_fk",
52
+ "tableFrom": "artifact_faceswap",
53
+ "tableTo": "user_artifacts",
54
+ "columnsFrom": [
55
+ "user_artifact_id"
56
+ ],
57
+ "columnsTo": [
58
+ "id"
59
+ ],
60
+ "onDelete": "cascade",
61
+ "onUpdate": "no action"
62
+ }
63
+ },
64
+ "compositePrimaryKeys": {},
65
+ "uniqueConstraints": {},
66
+ "checkConstraints": {}
67
+ },
68
+ "artifact_video_generation": {
69
+ "name": "artifact_video_generation",
70
+ "columns": {
71
+ "id": {
72
+ "name": "id",
73
+ "type": "text",
74
+ "primaryKey": true,
75
+ "notNull": true,
76
+ "autoincrement": false
77
+ },
78
+ "user_artifact_id": {
79
+ "name": "user_artifact_id",
80
+ "type": "text",
81
+ "primaryKey": false,
82
+ "notNull": true,
83
+ "autoincrement": false
84
+ },
85
+ "video_status": {
86
+ "name": "video_status",
87
+ "type": "text",
88
+ "primaryKey": false,
89
+ "notNull": false,
90
+ "autoincrement": false,
91
+ "default": "'pending'"
92
+ },
93
+ "video_url": {
94
+ "name": "video_url",
95
+ "type": "text",
96
+ "primaryKey": false,
97
+ "notNull": false,
98
+ "autoincrement": false
99
+ },
100
+ "description": {
101
+ "name": "description",
102
+ "type": "text",
103
+ "primaryKey": false,
104
+ "notNull": false,
105
+ "autoincrement": false
106
+ },
107
+ "duration": {
108
+ "name": "duration",
109
+ "type": "integer",
110
+ "primaryKey": false,
111
+ "notNull": false,
112
+ "autoincrement": false
113
+ }
114
+ },
115
+ "indexes": {
116
+ "artifact_video_generation_status_idx": {
117
+ "name": "artifact_video_generation_status_idx",
118
+ "columns": [
119
+ "video_status"
120
+ ],
121
+ "isUnique": false
122
+ }
123
+ },
124
+ "foreignKeys": {
125
+ "artifact_video_generation_user_artifact_id_user_artifacts_id_fk": {
126
+ "name": "artifact_video_generation_user_artifact_id_user_artifacts_id_fk",
127
+ "tableFrom": "artifact_video_generation",
128
+ "tableTo": "user_artifacts",
129
+ "columnsFrom": [
130
+ "user_artifact_id"
131
+ ],
132
+ "columnsTo": [
133
+ "id"
134
+ ],
135
+ "onDelete": "cascade",
136
+ "onUpdate": "no action"
137
+ }
138
+ },
139
+ "compositePrimaryKeys": {},
140
+ "uniqueConstraints": {},
141
+ "checkConstraints": {}
142
+ },
143
+ "artifacts": {
144
+ "name": "artifacts",
145
+ "columns": {
146
+ "id": {
147
+ "name": "id",
148
+ "type": "text",
149
+ "primaryKey": true,
150
+ "notNull": true,
151
+ "autoincrement": false
152
+ },
153
+ "name": {
154
+ "name": "name",
155
+ "type": "text",
156
+ "primaryKey": false,
157
+ "notNull": true,
158
+ "autoincrement": false
159
+ },
160
+ "slug": {
161
+ "name": "slug",
162
+ "type": "text",
163
+ "primaryKey": false,
164
+ "notNull": true,
165
+ "autoincrement": false
166
+ },
167
+ "concept_id": {
168
+ "name": "concept_id",
169
+ "type": "text",
170
+ "primaryKey": false,
171
+ "notNull": true,
172
+ "autoincrement": false
173
+ },
174
+ "description": {
175
+ "name": "description",
176
+ "type": "text",
177
+ "primaryKey": false,
178
+ "notNull": true,
179
+ "autoincrement": false
180
+ },
181
+ "price": {
182
+ "name": "price",
183
+ "type": "integer",
184
+ "primaryKey": false,
185
+ "notNull": true,
186
+ "autoincrement": false
187
+ },
188
+ "promotion_price": {
189
+ "name": "promotion_price",
190
+ "type": "integer",
191
+ "primaryKey": false,
192
+ "notNull": false,
193
+ "autoincrement": false
194
+ },
195
+ "created_at": {
196
+ "name": "created_at",
197
+ "type": "integer",
198
+ "primaryKey": false,
199
+ "notNull": false,
200
+ "autoincrement": false,
201
+ "default": "CURRENT_TIMESTAMP"
202
+ }
203
+ },
204
+ "indexes": {
205
+ "artifacts_concept_id_idx": {
206
+ "name": "artifacts_concept_id_idx",
207
+ "columns": [
208
+ "concept_id"
209
+ ],
210
+ "isUnique": false
211
+ }
212
+ },
213
+ "foreignKeys": {
214
+ "artifacts_concept_id_concepts_id_fk": {
215
+ "name": "artifacts_concept_id_concepts_id_fk",
216
+ "tableFrom": "artifacts",
217
+ "tableTo": "concepts",
218
+ "columnsFrom": [
219
+ "concept_id"
220
+ ],
221
+ "columnsTo": [
222
+ "id"
223
+ ],
224
+ "onDelete": "cascade",
225
+ "onUpdate": "no action"
226
+ }
227
+ },
228
+ "compositePrimaryKeys": {},
229
+ "uniqueConstraints": {},
230
+ "checkConstraints": {}
231
+ },
232
+ "astro_features": {
233
+ "name": "astro_features",
234
+ "columns": {
235
+ "id": {
236
+ "name": "id",
237
+ "type": "text",
238
+ "primaryKey": true,
239
+ "notNull": true,
240
+ "autoincrement": false
241
+ },
242
+ "user_id": {
243
+ "name": "user_id",
244
+ "type": "text",
245
+ "primaryKey": false,
246
+ "notNull": true,
247
+ "autoincrement": false
248
+ },
249
+ "feature_type": {
250
+ "name": "feature_type",
251
+ "type": "text",
252
+ "primaryKey": false,
253
+ "notNull": true,
254
+ "autoincrement": false
255
+ },
256
+ "name": {
257
+ "name": "name",
258
+ "type": "text",
259
+ "primaryKey": false,
260
+ "notNull": true,
261
+ "autoincrement": false
262
+ },
263
+ "description": {
264
+ "name": "description",
265
+ "type": "text",
266
+ "primaryKey": false,
267
+ "notNull": false,
268
+ "autoincrement": false
269
+ },
270
+ "percentage": {
271
+ "name": "percentage",
272
+ "type": "real",
273
+ "primaryKey": false,
274
+ "notNull": false,
275
+ "autoincrement": false
276
+ },
277
+ "order": {
278
+ "name": "order",
279
+ "type": "integer",
280
+ "primaryKey": false,
281
+ "notNull": true,
282
+ "autoincrement": false
283
+ },
284
+ "prominent_id": {
285
+ "name": "prominent_id",
286
+ "type": "integer",
287
+ "primaryKey": false,
288
+ "notNull": false,
289
+ "autoincrement": false
290
+ }
291
+ },
292
+ "indexes": {
293
+ "astro_features_user_id_idx": {
294
+ "name": "astro_features_user_id_idx",
295
+ "columns": [
296
+ "user_id"
297
+ ],
298
+ "isUnique": false
299
+ }
300
+ },
301
+ "foreignKeys": {
302
+ "astro_features_user_id_users_id_fk": {
303
+ "name": "astro_features_user_id_users_id_fk",
304
+ "tableFrom": "astro_features",
305
+ "tableTo": "users",
306
+ "columnsFrom": [
307
+ "user_id"
308
+ ],
309
+ "columnsTo": [
310
+ "id"
311
+ ],
312
+ "onDelete": "cascade",
313
+ "onUpdate": "no action"
314
+ }
315
+ },
316
+ "compositePrimaryKeys": {},
317
+ "uniqueConstraints": {},
318
+ "checkConstraints": {}
319
+ },
320
+ "astro_houses": {
321
+ "name": "astro_houses",
322
+ "columns": {
323
+ "id": {
324
+ "name": "id",
325
+ "type": "text",
326
+ "primaryKey": true,
327
+ "notNull": true,
328
+ "autoincrement": false
329
+ },
330
+ "user_id": {
331
+ "name": "user_id",
332
+ "type": "text",
333
+ "primaryKey": false,
334
+ "notNull": true,
335
+ "autoincrement": false
336
+ },
337
+ "house": {
338
+ "name": "house",
339
+ "type": "integer",
340
+ "primaryKey": false,
341
+ "notNull": true,
342
+ "autoincrement": false
343
+ },
344
+ "sign": {
345
+ "name": "sign",
346
+ "type": "text",
347
+ "primaryKey": false,
348
+ "notNull": true,
349
+ "autoincrement": false
350
+ },
351
+ "degree": {
352
+ "name": "degree",
353
+ "type": "real",
354
+ "primaryKey": false,
355
+ "notNull": true,
356
+ "autoincrement": false
357
+ },
358
+ "sign_report": {
359
+ "name": "sign_report",
360
+ "type": "text",
361
+ "primaryKey": false,
362
+ "notNull": false,
363
+ "autoincrement": false
364
+ }
365
+ },
366
+ "indexes": {
367
+ "astro_houses_user_id_idx": {
368
+ "name": "astro_houses_user_id_idx",
369
+ "columns": [
370
+ "user_id"
371
+ ],
372
+ "isUnique": false
373
+ }
374
+ },
375
+ "foreignKeys": {
376
+ "astro_houses_user_id_users_id_fk": {
377
+ "name": "astro_houses_user_id_users_id_fk",
378
+ "tableFrom": "astro_houses",
379
+ "tableTo": "users",
380
+ "columnsFrom": [
381
+ "user_id"
382
+ ],
383
+ "columnsTo": [
384
+ "id"
385
+ ],
386
+ "onDelete": "cascade",
387
+ "onUpdate": "no action"
388
+ }
389
+ },
390
+ "compositePrimaryKeys": {},
391
+ "uniqueConstraints": {},
392
+ "checkConstraints": {}
393
+ },
394
+ "astro_planets": {
395
+ "name": "astro_planets",
396
+ "columns": {
397
+ "id": {
398
+ "name": "id",
399
+ "type": "text",
400
+ "primaryKey": true,
401
+ "notNull": true,
402
+ "autoincrement": false
403
+ },
404
+ "user_id": {
405
+ "name": "user_id",
406
+ "type": "text",
407
+ "primaryKey": false,
408
+ "notNull": true,
409
+ "autoincrement": false
410
+ },
411
+ "type": {
412
+ "name": "type",
413
+ "type": "text",
414
+ "primaryKey": false,
415
+ "notNull": true,
416
+ "autoincrement": false
417
+ },
418
+ "name": {
419
+ "name": "name",
420
+ "type": "text",
421
+ "primaryKey": false,
422
+ "notNull": true,
423
+ "autoincrement": false
424
+ },
425
+ "sign": {
426
+ "name": "sign",
427
+ "type": "text",
428
+ "primaryKey": false,
429
+ "notNull": true,
430
+ "autoincrement": false
431
+ },
432
+ "house": {
433
+ "name": "house",
434
+ "type": "integer",
435
+ "primaryKey": false,
436
+ "notNull": true,
437
+ "autoincrement": false
438
+ },
439
+ "full_degree": {
440
+ "name": "full_degree",
441
+ "type": "real",
442
+ "primaryKey": false,
443
+ "notNull": false,
444
+ "autoincrement": false
445
+ },
446
+ "norm_degree": {
447
+ "name": "norm_degree",
448
+ "type": "real",
449
+ "primaryKey": false,
450
+ "notNull": false,
451
+ "autoincrement": false
452
+ },
453
+ "speed": {
454
+ "name": "speed",
455
+ "type": "real",
456
+ "primaryKey": false,
457
+ "notNull": false,
458
+ "autoincrement": false
459
+ },
460
+ "is_retro": {
461
+ "name": "is_retro",
462
+ "type": "integer",
463
+ "primaryKey": false,
464
+ "notNull": false,
465
+ "autoincrement": false
466
+ },
467
+ "sign_report": {
468
+ "name": "sign_report",
469
+ "type": "text",
470
+ "primaryKey": false,
471
+ "notNull": false,
472
+ "autoincrement": false
473
+ },
474
+ "house_report": {
475
+ "name": "house_report",
476
+ "type": "text",
477
+ "primaryKey": false,
478
+ "notNull": false,
479
+ "autoincrement": false
480
+ }
481
+ },
482
+ "indexes": {
483
+ "astro_planets_user_id_idx": {
484
+ "name": "astro_planets_user_id_idx",
485
+ "columns": [
486
+ "user_id"
487
+ ],
488
+ "isUnique": false
489
+ }
490
+ },
491
+ "foreignKeys": {
492
+ "astro_planets_user_id_users_id_fk": {
493
+ "name": "astro_planets_user_id_users_id_fk",
494
+ "tableFrom": "astro_planets",
495
+ "tableTo": "users",
496
+ "columnsFrom": [
497
+ "user_id"
498
+ ],
499
+ "columnsTo": [
500
+ "id"
501
+ ],
502
+ "onDelete": "cascade",
503
+ "onUpdate": "no action"
504
+ }
505
+ },
506
+ "compositePrimaryKeys": {},
507
+ "uniqueConstraints": {},
508
+ "checkConstraints": {}
509
+ },
510
+ "concept_combinations": {
511
+ "name": "concept_combinations",
512
+ "columns": {
513
+ "id": {
514
+ "name": "id",
515
+ "type": "text",
516
+ "primaryKey": true,
517
+ "notNull": true,
518
+ "autoincrement": false
519
+ },
520
+ "concept_id": {
521
+ "name": "concept_id",
522
+ "type": "text",
523
+ "primaryKey": false,
524
+ "notNull": true,
525
+ "autoincrement": false
526
+ },
527
+ "planet1_sign": {
528
+ "name": "planet1_sign",
529
+ "type": "text",
530
+ "primaryKey": false,
531
+ "notNull": true,
532
+ "autoincrement": false
533
+ },
534
+ "planet2_sign": {
535
+ "name": "planet2_sign",
536
+ "type": "text",
537
+ "primaryKey": false,
538
+ "notNull": true,
539
+ "autoincrement": false
540
+ },
541
+ "planet3_sign": {
542
+ "name": "planet3_sign",
543
+ "type": "text",
544
+ "primaryKey": false,
545
+ "notNull": true,
546
+ "autoincrement": false
547
+ },
548
+ "combination_string": {
549
+ "name": "combination_string",
550
+ "type": "text",
551
+ "primaryKey": false,
552
+ "notNull": true,
553
+ "autoincrement": false
554
+ }
555
+ },
556
+ "indexes": {
557
+ "concept_combinations_unique_combination_idx": {
558
+ "name": "concept_combinations_unique_combination_idx",
559
+ "columns": [
560
+ "concept_id",
561
+ "combination_string"
562
+ ],
563
+ "isUnique": false
564
+ }
565
+ },
566
+ "foreignKeys": {
567
+ "concept_combinations_concept_id_concepts_id_fk": {
568
+ "name": "concept_combinations_concept_id_concepts_id_fk",
569
+ "tableFrom": "concept_combinations",
570
+ "tableTo": "concepts",
571
+ "columnsFrom": [
572
+ "concept_id"
573
+ ],
574
+ "columnsTo": [
575
+ "id"
576
+ ],
577
+ "onDelete": "cascade",
578
+ "onUpdate": "no action"
579
+ }
580
+ },
581
+ "compositePrimaryKeys": {},
582
+ "uniqueConstraints": {},
583
+ "checkConstraints": {}
584
+ },
585
+ "concepts": {
586
+ "name": "concepts",
587
+ "columns": {
588
+ "id": {
589
+ "name": "id",
590
+ "type": "text",
591
+ "primaryKey": true,
592
+ "notNull": true,
593
+ "autoincrement": false
594
+ },
595
+ "name": {
596
+ "name": "name",
597
+ "type": "text",
598
+ "primaryKey": false,
599
+ "notNull": true,
600
+ "autoincrement": false
601
+ },
602
+ "slug": {
603
+ "name": "slug",
604
+ "type": "text",
605
+ "primaryKey": false,
606
+ "notNull": true,
607
+ "autoincrement": false
608
+ },
609
+ "planet1": {
610
+ "name": "planet1",
611
+ "type": "text",
612
+ "primaryKey": false,
613
+ "notNull": true,
614
+ "autoincrement": false
615
+ },
616
+ "planet2": {
617
+ "name": "planet2",
618
+ "type": "text",
619
+ "primaryKey": false,
620
+ "notNull": true,
621
+ "autoincrement": false
622
+ },
623
+ "planet3": {
624
+ "name": "planet3",
625
+ "type": "text",
626
+ "primaryKey": false,
627
+ "notNull": false,
628
+ "autoincrement": false
629
+ }
630
+ },
631
+ "indexes": {
632
+ "concepts_name_idx": {
633
+ "name": "concepts_name_idx",
634
+ "columns": [
635
+ "name"
636
+ ],
637
+ "isUnique": false
638
+ }
639
+ },
640
+ "foreignKeys": {},
641
+ "compositePrimaryKeys": {},
642
+ "uniqueConstraints": {},
643
+ "checkConstraints": {}
644
+ },
645
+ "credits_transactions": {
646
+ "name": "credits_transactions",
647
+ "columns": {
648
+ "id": {
649
+ "name": "id",
650
+ "type": "text",
651
+ "primaryKey": true,
652
+ "notNull": true,
653
+ "autoincrement": false
654
+ },
655
+ "user_id": {
656
+ "name": "user_id",
657
+ "type": "text",
658
+ "primaryKey": false,
659
+ "notNull": true,
660
+ "autoincrement": false
661
+ },
662
+ "type": {
663
+ "name": "type",
664
+ "type": "text",
665
+ "primaryKey": false,
666
+ "notNull": true,
667
+ "autoincrement": false
668
+ },
669
+ "amount": {
670
+ "name": "amount",
671
+ "type": "integer",
672
+ "primaryKey": false,
673
+ "notNull": true,
674
+ "autoincrement": false
675
+ },
676
+ "description": {
677
+ "name": "description",
678
+ "type": "text",
679
+ "primaryKey": false,
680
+ "notNull": false,
681
+ "autoincrement": false
682
+ },
683
+ "product_type": {
684
+ "name": "product_type",
685
+ "type": "text",
686
+ "primaryKey": false,
687
+ "notNull": false,
688
+ "autoincrement": false
689
+ },
690
+ "product_id": {
691
+ "name": "product_id",
692
+ "type": "text",
693
+ "primaryKey": false,
694
+ "notNull": false,
695
+ "autoincrement": false
696
+ },
697
+ "payment_id": {
698
+ "name": "payment_id",
699
+ "type": "text",
700
+ "primaryKey": false,
701
+ "notNull": false,
702
+ "autoincrement": false
703
+ },
704
+ "created_at": {
705
+ "name": "created_at",
706
+ "type": "integer",
707
+ "primaryKey": false,
708
+ "notNull": false,
709
+ "autoincrement": false,
710
+ "default": "CURRENT_TIMESTAMP"
711
+ }
712
+ },
713
+ "indexes": {
714
+ "credits_transactions_user_id_idx": {
715
+ "name": "credits_transactions_user_id_idx",
716
+ "columns": [
717
+ "user_id"
718
+ ],
719
+ "isUnique": false
720
+ }
721
+ },
722
+ "foreignKeys": {
723
+ "credits_transactions_user_id_users_id_fk": {
724
+ "name": "credits_transactions_user_id_users_id_fk",
725
+ "tableFrom": "credits_transactions",
726
+ "tableTo": "users",
727
+ "columnsFrom": [
728
+ "user_id"
729
+ ],
730
+ "columnsTo": [
731
+ "id"
732
+ ],
733
+ "onDelete": "cascade",
734
+ "onUpdate": "no action"
735
+ }
736
+ },
737
+ "compositePrimaryKeys": {},
738
+ "uniqueConstraints": {},
739
+ "checkConstraints": {}
740
+ },
741
+ "generations": {
742
+ "name": "generations",
743
+ "columns": {
744
+ "id": {
745
+ "name": "id",
746
+ "type": "text",
747
+ "primaryKey": true,
748
+ "notNull": true,
749
+ "autoincrement": false
750
+ },
751
+ "user_id": {
752
+ "name": "user_id",
753
+ "type": "text",
754
+ "primaryKey": false,
755
+ "notNull": true,
756
+ "autoincrement": false
757
+ },
758
+ "artifact_id": {
759
+ "name": "artifact_id",
760
+ "type": "text",
761
+ "primaryKey": false,
762
+ "notNull": false,
763
+ "autoincrement": false
764
+ },
765
+ "user_artifact_id": {
766
+ "name": "user_artifact_id",
767
+ "type": "text",
768
+ "primaryKey": false,
769
+ "notNull": false,
770
+ "autoincrement": false
771
+ },
772
+ "concept_combination_id": {
773
+ "name": "concept_combination_id",
774
+ "type": "text",
775
+ "primaryKey": false,
776
+ "notNull": false,
777
+ "autoincrement": false
778
+ },
779
+ "type": {
780
+ "name": "type",
781
+ "type": "text",
782
+ "primaryKey": false,
783
+ "notNull": true,
784
+ "autoincrement": false
785
+ },
786
+ "status": {
787
+ "name": "status",
788
+ "type": "text",
789
+ "primaryKey": false,
790
+ "notNull": true,
791
+ "autoincrement": false,
792
+ "default": "'pending'"
793
+ },
794
+ "url": {
795
+ "name": "url",
796
+ "type": "text",
797
+ "primaryKey": false,
798
+ "notNull": false,
799
+ "autoincrement": false
800
+ },
801
+ "created_at": {
802
+ "name": "created_at",
803
+ "type": "integer",
804
+ "primaryKey": false,
805
+ "notNull": false,
806
+ "autoincrement": false,
807
+ "default": "CURRENT_TIMESTAMP"
808
+ },
809
+ "updated_at": {
810
+ "name": "updated_at",
811
+ "type": "integer",
812
+ "primaryKey": false,
813
+ "notNull": false,
814
+ "autoincrement": false,
815
+ "default": "CURRENT_TIMESTAMP"
816
+ }
817
+ },
818
+ "indexes": {
819
+ "generations_user_id_idx": {
820
+ "name": "generations_user_id_idx",
821
+ "columns": [
822
+ "user_id"
823
+ ],
824
+ "isUnique": false
825
+ },
826
+ "generations_concept_combination_id_idx": {
827
+ "name": "generations_concept_combination_id_idx",
828
+ "columns": [
829
+ "concept_combination_id"
830
+ ],
831
+ "isUnique": false
832
+ }
833
+ },
834
+ "foreignKeys": {
835
+ "generations_user_id_users_id_fk": {
836
+ "name": "generations_user_id_users_id_fk",
837
+ "tableFrom": "generations",
838
+ "tableTo": "users",
839
+ "columnsFrom": [
840
+ "user_id"
841
+ ],
842
+ "columnsTo": [
843
+ "id"
844
+ ],
845
+ "onDelete": "cascade",
846
+ "onUpdate": "no action"
847
+ },
848
+ "generations_artifact_id_artifacts_id_fk": {
849
+ "name": "generations_artifact_id_artifacts_id_fk",
850
+ "tableFrom": "generations",
851
+ "tableTo": "artifacts",
852
+ "columnsFrom": [
853
+ "artifact_id"
854
+ ],
855
+ "columnsTo": [
856
+ "id"
857
+ ],
858
+ "onDelete": "cascade",
859
+ "onUpdate": "no action"
860
+ },
861
+ "generations_user_artifact_id_user_artifacts_id_fk": {
862
+ "name": "generations_user_artifact_id_user_artifacts_id_fk",
863
+ "tableFrom": "generations",
864
+ "tableTo": "user_artifacts",
865
+ "columnsFrom": [
866
+ "user_artifact_id"
867
+ ],
868
+ "columnsTo": [
869
+ "id"
870
+ ],
871
+ "onDelete": "cascade",
872
+ "onUpdate": "no action"
873
+ },
874
+ "generations_concept_combination_id_concept_combinations_id_fk": {
875
+ "name": "generations_concept_combination_id_concept_combinations_id_fk",
876
+ "tableFrom": "generations",
877
+ "tableTo": "concept_combinations",
878
+ "columnsFrom": [
879
+ "concept_combination_id"
880
+ ],
881
+ "columnsTo": [
882
+ "id"
883
+ ],
884
+ "onDelete": "cascade",
885
+ "onUpdate": "no action"
886
+ }
887
+ },
888
+ "compositePrimaryKeys": {},
889
+ "uniqueConstraints": {},
890
+ "checkConstraints": {}
891
+ },
892
+ "tokens": {
893
+ "name": "tokens",
894
+ "columns": {
895
+ "id": {
896
+ "name": "id",
897
+ "type": "text",
898
+ "primaryKey": true,
899
+ "notNull": true,
900
+ "autoincrement": false
901
+ },
902
+ "user_id": {
903
+ "name": "user_id",
904
+ "type": "text",
905
+ "primaryKey": false,
906
+ "notNull": true,
907
+ "autoincrement": false
908
+ },
909
+ "refresh_token": {
910
+ "name": "refresh_token",
911
+ "type": "text",
912
+ "primaryKey": false,
913
+ "notNull": true,
914
+ "autoincrement": false
915
+ },
916
+ "expires_at": {
917
+ "name": "expires_at",
918
+ "type": "text",
919
+ "primaryKey": false,
920
+ "notNull": true,
921
+ "autoincrement": false
922
+ },
923
+ "created_at": {
924
+ "name": "created_at",
925
+ "type": "text",
926
+ "primaryKey": false,
927
+ "notNull": true,
928
+ "autoincrement": false,
929
+ "default": "CURRENT_TIMESTAMP"
930
+ }
931
+ },
932
+ "indexes": {
933
+ "tokens_refresh_token_unique": {
934
+ "name": "tokens_refresh_token_unique",
935
+ "columns": [
936
+ "refresh_token"
937
+ ],
938
+ "isUnique": true
939
+ },
940
+ "tokens_user_id_idx": {
941
+ "name": "tokens_user_id_idx",
942
+ "columns": [
943
+ "user_id"
944
+ ],
945
+ "isUnique": false
946
+ }
947
+ },
948
+ "foreignKeys": {
949
+ "tokens_user_id_users_id_fk": {
950
+ "name": "tokens_user_id_users_id_fk",
951
+ "tableFrom": "tokens",
952
+ "tableTo": "users",
953
+ "columnsFrom": [
954
+ "user_id"
955
+ ],
956
+ "columnsTo": [
957
+ "id"
958
+ ],
959
+ "onDelete": "cascade",
960
+ "onUpdate": "no action"
961
+ }
962
+ },
963
+ "compositePrimaryKeys": {},
964
+ "uniqueConstraints": {},
965
+ "checkConstraints": {}
966
+ },
967
+ "user_artifacts": {
968
+ "name": "user_artifacts",
969
+ "columns": {
970
+ "id": {
971
+ "name": "id",
972
+ "type": "text",
973
+ "primaryKey": true,
974
+ "notNull": true,
975
+ "autoincrement": false
976
+ },
977
+ "user_id": {
978
+ "name": "user_id",
979
+ "type": "text",
980
+ "primaryKey": false,
981
+ "notNull": true,
982
+ "autoincrement": false
983
+ },
984
+ "artifact_id": {
985
+ "name": "artifact_id",
986
+ "type": "text",
987
+ "primaryKey": false,
988
+ "notNull": true,
989
+ "autoincrement": false
990
+ },
991
+ "gender": {
992
+ "name": "gender",
993
+ "type": "text",
994
+ "primaryKey": false,
995
+ "notNull": true,
996
+ "autoincrement": false
997
+ },
998
+ "archetype_id": {
999
+ "name": "archetype_id",
1000
+ "type": "text",
1001
+ "primaryKey": false,
1002
+ "notNull": true,
1003
+ "autoincrement": false
1004
+ },
1005
+ "post_image_url": {
1006
+ "name": "post_image_url",
1007
+ "type": "text",
1008
+ "primaryKey": false,
1009
+ "notNull": false,
1010
+ "autoincrement": false
1011
+ },
1012
+ "reel_image_url": {
1013
+ "name": "reel_image_url",
1014
+ "type": "text",
1015
+ "primaryKey": false,
1016
+ "notNull": false,
1017
+ "autoincrement": false
1018
+ },
1019
+ "post_generation_id": {
1020
+ "name": "post_generation_id",
1021
+ "type": "text",
1022
+ "primaryKey": false,
1023
+ "notNull": false,
1024
+ "autoincrement": false
1025
+ },
1026
+ "reel_generation_id": {
1027
+ "name": "reel_generation_id",
1028
+ "type": "text",
1029
+ "primaryKey": false,
1030
+ "notNull": false,
1031
+ "autoincrement": false
1032
+ },
1033
+ "status": {
1034
+ "name": "status",
1035
+ "type": "text",
1036
+ "primaryKey": false,
1037
+ "notNull": true,
1038
+ "autoincrement": false,
1039
+ "default": "'pending'"
1040
+ },
1041
+ "created_at": {
1042
+ "name": "created_at",
1043
+ "type": "integer",
1044
+ "primaryKey": false,
1045
+ "notNull": false,
1046
+ "autoincrement": false,
1047
+ "default": "CURRENT_TIMESTAMP"
1048
+ },
1049
+ "updated_at": {
1050
+ "name": "updated_at",
1051
+ "type": "integer",
1052
+ "primaryKey": false,
1053
+ "notNull": false,
1054
+ "autoincrement": false,
1055
+ "default": "CURRENT_TIMESTAMP"
1056
+ }
1057
+ },
1058
+ "indexes": {
1059
+ "user_artifacts_user_id_idx": {
1060
+ "name": "user_artifacts_user_id_idx",
1061
+ "columns": [
1062
+ "user_id"
1063
+ ],
1064
+ "isUnique": false
1065
+ },
1066
+ "user_artifacts_artifact_id_idx": {
1067
+ "name": "user_artifacts_artifact_id_idx",
1068
+ "columns": [
1069
+ "artifact_id"
1070
+ ],
1071
+ "isUnique": false
1072
+ },
1073
+ "user_artifacts_status_idx": {
1074
+ "name": "user_artifacts_status_idx",
1075
+ "columns": [
1076
+ "status"
1077
+ ],
1078
+ "isUnique": false
1079
+ }
1080
+ },
1081
+ "foreignKeys": {
1082
+ "user_artifacts_user_id_users_id_fk": {
1083
+ "name": "user_artifacts_user_id_users_id_fk",
1084
+ "tableFrom": "user_artifacts",
1085
+ "tableTo": "users",
1086
+ "columnsFrom": [
1087
+ "user_id"
1088
+ ],
1089
+ "columnsTo": [
1090
+ "id"
1091
+ ],
1092
+ "onDelete": "cascade",
1093
+ "onUpdate": "no action"
1094
+ },
1095
+ "user_artifacts_artifact_id_artifacts_id_fk": {
1096
+ "name": "user_artifacts_artifact_id_artifacts_id_fk",
1097
+ "tableFrom": "user_artifacts",
1098
+ "tableTo": "artifacts",
1099
+ "columnsFrom": [
1100
+ "artifact_id"
1101
+ ],
1102
+ "columnsTo": [
1103
+ "id"
1104
+ ],
1105
+ "onDelete": "cascade",
1106
+ "onUpdate": "no action"
1107
+ }
1108
+ },
1109
+ "compositePrimaryKeys": {},
1110
+ "uniqueConstraints": {},
1111
+ "checkConstraints": {}
1112
+ },
1113
+ "user_concepts": {
1114
+ "name": "user_concepts",
1115
+ "columns": {
1116
+ "id": {
1117
+ "name": "id",
1118
+ "type": "text",
1119
+ "primaryKey": true,
1120
+ "notNull": true,
1121
+ "autoincrement": false
1122
+ },
1123
+ "user_id": {
1124
+ "name": "user_id",
1125
+ "type": "text",
1126
+ "primaryKey": false,
1127
+ "notNull": true,
1128
+ "autoincrement": false
1129
+ },
1130
+ "concept_id": {
1131
+ "name": "concept_id",
1132
+ "type": "text",
1133
+ "primaryKey": false,
1134
+ "notNull": true,
1135
+ "autoincrement": false
1136
+ },
1137
+ "concept_combination_id": {
1138
+ "name": "concept_combination_id",
1139
+ "type": "text",
1140
+ "primaryKey": false,
1141
+ "notNull": true,
1142
+ "autoincrement": false
1143
+ },
1144
+ "created_at": {
1145
+ "name": "created_at",
1146
+ "type": "integer",
1147
+ "primaryKey": false,
1148
+ "notNull": false,
1149
+ "autoincrement": false,
1150
+ "default": "CURRENT_TIMESTAMP"
1151
+ },
1152
+ "updated_at": {
1153
+ "name": "updated_at",
1154
+ "type": "integer",
1155
+ "primaryKey": false,
1156
+ "notNull": false,
1157
+ "autoincrement": false,
1158
+ "default": "CURRENT_TIMESTAMP"
1159
+ }
1160
+ },
1161
+ "indexes": {
1162
+ "user_concepts_user_id_idx": {
1163
+ "name": "user_concepts_user_id_idx",
1164
+ "columns": [
1165
+ "user_id"
1166
+ ],
1167
+ "isUnique": false
1168
+ },
1169
+ "user_concepts_concept_id_idx": {
1170
+ "name": "user_concepts_concept_id_idx",
1171
+ "columns": [
1172
+ "concept_id"
1173
+ ],
1174
+ "isUnique": false
1175
+ }
1176
+ },
1177
+ "foreignKeys": {
1178
+ "user_concepts_user_id_users_id_fk": {
1179
+ "name": "user_concepts_user_id_users_id_fk",
1180
+ "tableFrom": "user_concepts",
1181
+ "tableTo": "users",
1182
+ "columnsFrom": [
1183
+ "user_id"
1184
+ ],
1185
+ "columnsTo": [
1186
+ "id"
1187
+ ],
1188
+ "onDelete": "cascade",
1189
+ "onUpdate": "no action"
1190
+ },
1191
+ "user_concepts_concept_id_concepts_id_fk": {
1192
+ "name": "user_concepts_concept_id_concepts_id_fk",
1193
+ "tableFrom": "user_concepts",
1194
+ "tableTo": "concepts",
1195
+ "columnsFrom": [
1196
+ "concept_id"
1197
+ ],
1198
+ "columnsTo": [
1199
+ "id"
1200
+ ],
1201
+ "onDelete": "cascade",
1202
+ "onUpdate": "no action"
1203
+ },
1204
+ "user_concepts_concept_combination_id_concept_combinations_id_fk": {
1205
+ "name": "user_concepts_concept_combination_id_concept_combinations_id_fk",
1206
+ "tableFrom": "user_concepts",
1207
+ "tableTo": "concept_combinations",
1208
+ "columnsFrom": [
1209
+ "concept_combination_id"
1210
+ ],
1211
+ "columnsTo": [
1212
+ "id"
1213
+ ],
1214
+ "onDelete": "cascade",
1215
+ "onUpdate": "no action"
1216
+ }
1217
+ },
1218
+ "compositePrimaryKeys": {},
1219
+ "uniqueConstraints": {},
1220
+ "checkConstraints": {}
1221
+ },
1222
+ "users": {
1223
+ "name": "users",
1224
+ "columns": {
1225
+ "id": {
1226
+ "name": "id",
1227
+ "type": "text",
1228
+ "primaryKey": true,
1229
+ "notNull": true,
1230
+ "autoincrement": false
1231
+ },
1232
+ "email": {
1233
+ "name": "email",
1234
+ "type": "text",
1235
+ "primaryKey": false,
1236
+ "notNull": true,
1237
+ "autoincrement": false
1238
+ },
1239
+ "name": {
1240
+ "name": "name",
1241
+ "type": "text",
1242
+ "primaryKey": false,
1243
+ "notNull": true,
1244
+ "autoincrement": false
1245
+ },
1246
+ "profile_image": {
1247
+ "name": "profile_image",
1248
+ "type": "text",
1249
+ "primaryKey": false,
1250
+ "notNull": false,
1251
+ "autoincrement": false
1252
+ },
1253
+ "user_photo_id": {
1254
+ "name": "user_photo_id",
1255
+ "type": "text",
1256
+ "primaryKey": false,
1257
+ "notNull": false,
1258
+ "autoincrement": false
1259
+ },
1260
+ "user_photo_url": {
1261
+ "name": "user_photo_url",
1262
+ "type": "text",
1263
+ "primaryKey": false,
1264
+ "notNull": false,
1265
+ "autoincrement": false
1266
+ },
1267
+ "gender": {
1268
+ "name": "gender",
1269
+ "type": "text",
1270
+ "primaryKey": false,
1271
+ "notNull": false,
1272
+ "autoincrement": false
1273
+ },
1274
+ "day": {
1275
+ "name": "day",
1276
+ "type": "integer",
1277
+ "primaryKey": false,
1278
+ "notNull": false,
1279
+ "autoincrement": false
1280
+ },
1281
+ "month": {
1282
+ "name": "month",
1283
+ "type": "integer",
1284
+ "primaryKey": false,
1285
+ "notNull": false,
1286
+ "autoincrement": false
1287
+ },
1288
+ "year": {
1289
+ "name": "year",
1290
+ "type": "integer",
1291
+ "primaryKey": false,
1292
+ "notNull": false,
1293
+ "autoincrement": false
1294
+ },
1295
+ "hour": {
1296
+ "name": "hour",
1297
+ "type": "integer",
1298
+ "primaryKey": false,
1299
+ "notNull": false,
1300
+ "autoincrement": false
1301
+ },
1302
+ "min": {
1303
+ "name": "min",
1304
+ "type": "integer",
1305
+ "primaryKey": false,
1306
+ "notNull": false,
1307
+ "autoincrement": false
1308
+ },
1309
+ "latitude": {
1310
+ "name": "latitude",
1311
+ "type": "real",
1312
+ "primaryKey": false,
1313
+ "notNull": false,
1314
+ "autoincrement": false
1315
+ },
1316
+ "longitude": {
1317
+ "name": "longitude",
1318
+ "type": "real",
1319
+ "primaryKey": false,
1320
+ "notNull": false,
1321
+ "autoincrement": false
1322
+ },
1323
+ "tzone": {
1324
+ "name": "tzone",
1325
+ "type": "real",
1326
+ "primaryKey": false,
1327
+ "notNull": false,
1328
+ "autoincrement": false
1329
+ },
1330
+ "instagram_username": {
1331
+ "name": "instagram_username",
1332
+ "type": "text",
1333
+ "primaryKey": false,
1334
+ "notNull": false,
1335
+ "autoincrement": false
1336
+ },
1337
+ "credits_balance": {
1338
+ "name": "credits_balance",
1339
+ "type": "integer",
1340
+ "primaryKey": false,
1341
+ "notNull": false,
1342
+ "autoincrement": false
1343
+ },
1344
+ "total_credits_earned": {
1345
+ "name": "total_credits_earned",
1346
+ "type": "integer",
1347
+ "primaryKey": false,
1348
+ "notNull": false,
1349
+ "autoincrement": false,
1350
+ "default": 0
1351
+ },
1352
+ "last_transaction_at": {
1353
+ "name": "last_transaction_at",
1354
+ "type": "integer",
1355
+ "primaryKey": false,
1356
+ "notNull": false,
1357
+ "autoincrement": false
1358
+ },
1359
+ "created_at": {
1360
+ "name": "created_at",
1361
+ "type": "text",
1362
+ "primaryKey": false,
1363
+ "notNull": true,
1364
+ "autoincrement": false,
1365
+ "default": "CURRENT_TIMESTAMP"
1366
+ }
1367
+ },
1368
+ "indexes": {
1369
+ "users_email_unique": {
1370
+ "name": "users_email_unique",
1371
+ "columns": [
1372
+ "email"
1373
+ ],
1374
+ "isUnique": true
1375
+ },
1376
+ "users_email_idx": {
1377
+ "name": "users_email_idx",
1378
+ "columns": [
1379
+ "email"
1380
+ ],
1381
+ "isUnique": false
1382
+ }
1383
+ },
1384
+ "foreignKeys": {},
1385
+ "compositePrimaryKeys": {},
1386
+ "uniqueConstraints": {},
1387
+ "checkConstraints": {}
1388
+ }
1389
+ },
1390
+ "views": {},
1391
+ "enums": {},
1392
+ "_meta": {
1393
+ "schemas": {},
1394
+ "tables": {},
1395
+ "columns": {}
1396
+ },
1397
+ "internal": {
1398
+ "indexes": {}
1399
+ }
1400
+ }