@zodic/shared 0.0.245 → 0.0.247

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,2284 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "05fcd87c-1ac6-42ae-bc65-043e6a50d297",
5
+ "prevId": "fec6ab50-7212-4889-a58e-c6cf33e5e3bd",
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
+ "status": {
32
+ "name": "status",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false,
37
+ "default": "'pending'"
38
+ },
39
+ "created_at": {
40
+ "name": "created_at",
41
+ "type": "integer",
42
+ "primaryKey": false,
43
+ "notNull": true,
44
+ "autoincrement": false,
45
+ "default": "CURRENT_TIMESTAMP"
46
+ },
47
+ "updated_at": {
48
+ "name": "updated_at",
49
+ "type": "integer",
50
+ "primaryKey": false,
51
+ "notNull": true,
52
+ "autoincrement": false,
53
+ "default": "CURRENT_TIMESTAMP"
54
+ }
55
+ },
56
+ "indexes": {},
57
+ "foreignKeys": {
58
+ "artifact_faceswap_user_artifact_id_user_artifacts_id_fk": {
59
+ "name": "artifact_faceswap_user_artifact_id_user_artifacts_id_fk",
60
+ "tableFrom": "artifact_faceswap",
61
+ "tableTo": "user_artifacts",
62
+ "columnsFrom": [
63
+ "user_artifact_id"
64
+ ],
65
+ "columnsTo": [
66
+ "id"
67
+ ],
68
+ "onDelete": "cascade",
69
+ "onUpdate": "no action"
70
+ }
71
+ },
72
+ "compositePrimaryKeys": {},
73
+ "uniqueConstraints": {},
74
+ "checkConstraints": {}
75
+ },
76
+ "artifact_video_generation": {
77
+ "name": "artifact_video_generation",
78
+ "columns": {
79
+ "id": {
80
+ "name": "id",
81
+ "type": "text",
82
+ "primaryKey": true,
83
+ "notNull": true,
84
+ "autoincrement": false
85
+ },
86
+ "user_artifact_id": {
87
+ "name": "user_artifact_id",
88
+ "type": "text",
89
+ "primaryKey": false,
90
+ "notNull": true,
91
+ "autoincrement": false
92
+ },
93
+ "video_status": {
94
+ "name": "video_status",
95
+ "type": "text",
96
+ "primaryKey": false,
97
+ "notNull": false,
98
+ "autoincrement": false,
99
+ "default": "'pending'"
100
+ },
101
+ "video_url": {
102
+ "name": "video_url",
103
+ "type": "text",
104
+ "primaryKey": false,
105
+ "notNull": false,
106
+ "autoincrement": false
107
+ },
108
+ "description": {
109
+ "name": "description",
110
+ "type": "text",
111
+ "primaryKey": false,
112
+ "notNull": false,
113
+ "autoincrement": false
114
+ },
115
+ "duration": {
116
+ "name": "duration",
117
+ "type": "integer",
118
+ "primaryKey": false,
119
+ "notNull": false,
120
+ "autoincrement": false
121
+ },
122
+ "created_at": {
123
+ "name": "created_at",
124
+ "type": "integer",
125
+ "primaryKey": false,
126
+ "notNull": true,
127
+ "autoincrement": false,
128
+ "default": "CURRENT_TIMESTAMP"
129
+ },
130
+ "updated_at": {
131
+ "name": "updated_at",
132
+ "type": "integer",
133
+ "primaryKey": false,
134
+ "notNull": true,
135
+ "autoincrement": false,
136
+ "default": "CURRENT_TIMESTAMP"
137
+ }
138
+ },
139
+ "indexes": {
140
+ "artifact_video_generation_status_idx": {
141
+ "name": "artifact_video_generation_status_idx",
142
+ "columns": [
143
+ "video_status"
144
+ ],
145
+ "isUnique": false
146
+ }
147
+ },
148
+ "foreignKeys": {
149
+ "artifact_video_generation_user_artifact_id_user_artifacts_id_fk": {
150
+ "name": "artifact_video_generation_user_artifact_id_user_artifacts_id_fk",
151
+ "tableFrom": "artifact_video_generation",
152
+ "tableTo": "user_artifacts",
153
+ "columnsFrom": [
154
+ "user_artifact_id"
155
+ ],
156
+ "columnsTo": [
157
+ "id"
158
+ ],
159
+ "onDelete": "cascade",
160
+ "onUpdate": "no action"
161
+ }
162
+ },
163
+ "compositePrimaryKeys": {},
164
+ "uniqueConstraints": {},
165
+ "checkConstraints": {}
166
+ },
167
+ "artifacts": {
168
+ "name": "artifacts",
169
+ "columns": {
170
+ "id": {
171
+ "name": "id",
172
+ "type": "text",
173
+ "primaryKey": true,
174
+ "notNull": true,
175
+ "autoincrement": false
176
+ },
177
+ "name": {
178
+ "name": "name",
179
+ "type": "text",
180
+ "primaryKey": false,
181
+ "notNull": true,
182
+ "autoincrement": false
183
+ },
184
+ "slug": {
185
+ "name": "slug",
186
+ "type": "text",
187
+ "primaryKey": false,
188
+ "notNull": true,
189
+ "autoincrement": false
190
+ },
191
+ "concept_id": {
192
+ "name": "concept_id",
193
+ "type": "text",
194
+ "primaryKey": false,
195
+ "notNull": true,
196
+ "autoincrement": false
197
+ },
198
+ "description": {
199
+ "name": "description",
200
+ "type": "text",
201
+ "primaryKey": false,
202
+ "notNull": true,
203
+ "autoincrement": false
204
+ },
205
+ "price": {
206
+ "name": "price",
207
+ "type": "integer",
208
+ "primaryKey": false,
209
+ "notNull": true,
210
+ "autoincrement": false
211
+ },
212
+ "promotion_price": {
213
+ "name": "promotion_price",
214
+ "type": "integer",
215
+ "primaryKey": false,
216
+ "notNull": false,
217
+ "autoincrement": false
218
+ },
219
+ "created_at": {
220
+ "name": "created_at",
221
+ "type": "integer",
222
+ "primaryKey": false,
223
+ "notNull": false,
224
+ "autoincrement": false,
225
+ "default": "CURRENT_TIMESTAMP"
226
+ }
227
+ },
228
+ "indexes": {
229
+ "artifacts_slug_unique": {
230
+ "name": "artifacts_slug_unique",
231
+ "columns": [
232
+ "slug"
233
+ ],
234
+ "isUnique": true
235
+ },
236
+ "artifacts_concept_id_idx": {
237
+ "name": "artifacts_concept_id_idx",
238
+ "columns": [
239
+ "concept_id"
240
+ ],
241
+ "isUnique": false
242
+ }
243
+ },
244
+ "foreignKeys": {
245
+ "artifacts_concept_id_concepts_id_fk": {
246
+ "name": "artifacts_concept_id_concepts_id_fk",
247
+ "tableFrom": "artifacts",
248
+ "tableTo": "concepts",
249
+ "columnsFrom": [
250
+ "concept_id"
251
+ ],
252
+ "columnsTo": [
253
+ "id"
254
+ ],
255
+ "onDelete": "cascade",
256
+ "onUpdate": "no action"
257
+ }
258
+ },
259
+ "compositePrimaryKeys": {},
260
+ "uniqueConstraints": {},
261
+ "checkConstraints": {}
262
+ },
263
+ "aspect_reports": {
264
+ "name": "aspect_reports",
265
+ "columns": {
266
+ "id": {
267
+ "name": "id",
268
+ "type": "text",
269
+ "primaryKey": true,
270
+ "notNull": true,
271
+ "autoincrement": false
272
+ },
273
+ "aspecting_planet": {
274
+ "name": "aspecting_planet",
275
+ "type": "text",
276
+ "primaryKey": false,
277
+ "notNull": true,
278
+ "autoincrement": false
279
+ },
280
+ "aspected_planet": {
281
+ "name": "aspected_planet",
282
+ "type": "text",
283
+ "primaryKey": false,
284
+ "notNull": true,
285
+ "autoincrement": false
286
+ },
287
+ "aspect": {
288
+ "name": "aspect",
289
+ "type": "text",
290
+ "primaryKey": false,
291
+ "notNull": true,
292
+ "autoincrement": false
293
+ },
294
+ "en_description": {
295
+ "name": "en_description",
296
+ "type": "text",
297
+ "primaryKey": false,
298
+ "notNull": false,
299
+ "autoincrement": false
300
+ },
301
+ "pt_description": {
302
+ "name": "pt_description",
303
+ "type": "text",
304
+ "primaryKey": false,
305
+ "notNull": false,
306
+ "autoincrement": false
307
+ },
308
+ "en_report": {
309
+ "name": "en_report",
310
+ "type": "text",
311
+ "primaryKey": false,
312
+ "notNull": false,
313
+ "autoincrement": false
314
+ },
315
+ "pt_report": {
316
+ "name": "pt_report",
317
+ "type": "text",
318
+ "primaryKey": false,
319
+ "notNull": false,
320
+ "autoincrement": false
321
+ },
322
+ "created_at": {
323
+ "name": "created_at",
324
+ "type": "integer",
325
+ "primaryKey": false,
326
+ "notNull": false,
327
+ "autoincrement": false,
328
+ "default": "CURRENT_TIMESTAMP"
329
+ },
330
+ "updated_at": {
331
+ "name": "updated_at",
332
+ "type": "integer",
333
+ "primaryKey": false,
334
+ "notNull": false,
335
+ "autoincrement": false,
336
+ "default": "CURRENT_TIMESTAMP"
337
+ }
338
+ },
339
+ "indexes": {
340
+ "aspect_reports_aspecting_idx": {
341
+ "name": "aspect_reports_aspecting_idx",
342
+ "columns": [
343
+ "aspecting_planet"
344
+ ],
345
+ "isUnique": false
346
+ },
347
+ "aspect_reports_aspected_idx": {
348
+ "name": "aspect_reports_aspected_idx",
349
+ "columns": [
350
+ "aspected_planet"
351
+ ],
352
+ "isUnique": false
353
+ },
354
+ "aspect_reports_aspect_idx": {
355
+ "name": "aspect_reports_aspect_idx",
356
+ "columns": [
357
+ "aspect"
358
+ ],
359
+ "isUnique": false
360
+ },
361
+ "aspect_reports_combined_idx": {
362
+ "name": "aspect_reports_combined_idx",
363
+ "columns": [
364
+ "aspecting_planet",
365
+ "aspected_planet",
366
+ "aspect"
367
+ ],
368
+ "isUnique": false
369
+ }
370
+ },
371
+ "foreignKeys": {},
372
+ "compositePrimaryKeys": {},
373
+ "uniqueConstraints": {},
374
+ "checkConstraints": {}
375
+ },
376
+ "astro_aspects": {
377
+ "name": "astro_aspects",
378
+ "columns": {
379
+ "id": {
380
+ "name": "id",
381
+ "type": "text",
382
+ "primaryKey": true,
383
+ "notNull": true,
384
+ "autoincrement": false
385
+ },
386
+ "user_id": {
387
+ "name": "user_id",
388
+ "type": "text",
389
+ "primaryKey": false,
390
+ "notNull": true,
391
+ "autoincrement": false
392
+ },
393
+ "aspecting_planet": {
394
+ "name": "aspecting_planet",
395
+ "type": "text",
396
+ "primaryKey": false,
397
+ "notNull": true,
398
+ "autoincrement": false
399
+ },
400
+ "aspected_planet": {
401
+ "name": "aspected_planet",
402
+ "type": "text",
403
+ "primaryKey": false,
404
+ "notNull": true,
405
+ "autoincrement": false
406
+ },
407
+ "aspecting_planet_id": {
408
+ "name": "aspecting_planet_id",
409
+ "type": "integer",
410
+ "primaryKey": false,
411
+ "notNull": true,
412
+ "autoincrement": false
413
+ },
414
+ "aspected_planet_id": {
415
+ "name": "aspected_planet_id",
416
+ "type": "integer",
417
+ "primaryKey": false,
418
+ "notNull": true,
419
+ "autoincrement": false
420
+ },
421
+ "type": {
422
+ "name": "type",
423
+ "type": "text",
424
+ "primaryKey": false,
425
+ "notNull": true,
426
+ "autoincrement": false
427
+ },
428
+ "orb": {
429
+ "name": "orb",
430
+ "type": "real",
431
+ "primaryKey": false,
432
+ "notNull": true,
433
+ "autoincrement": false
434
+ },
435
+ "diff": {
436
+ "name": "diff",
437
+ "type": "real",
438
+ "primaryKey": false,
439
+ "notNull": true,
440
+ "autoincrement": false
441
+ }
442
+ },
443
+ "indexes": {
444
+ "astro_aspects_user_id_idx": {
445
+ "name": "astro_aspects_user_id_idx",
446
+ "columns": [
447
+ "user_id"
448
+ ],
449
+ "isUnique": false
450
+ }
451
+ },
452
+ "foreignKeys": {
453
+ "astro_aspects_user_id_users_id_fk": {
454
+ "name": "astro_aspects_user_id_users_id_fk",
455
+ "tableFrom": "astro_aspects",
456
+ "tableTo": "users",
457
+ "columnsFrom": [
458
+ "user_id"
459
+ ],
460
+ "columnsTo": [
461
+ "id"
462
+ ],
463
+ "onDelete": "cascade",
464
+ "onUpdate": "no action"
465
+ }
466
+ },
467
+ "compositePrimaryKeys": {},
468
+ "uniqueConstraints": {},
469
+ "checkConstraints": {}
470
+ },
471
+ "astro_feature_reports": {
472
+ "name": "astro_feature_reports",
473
+ "columns": {
474
+ "id": {
475
+ "name": "id",
476
+ "type": "text",
477
+ "primaryKey": true,
478
+ "notNull": true,
479
+ "autoincrement": false
480
+ },
481
+ "feature_type": {
482
+ "name": "feature_type",
483
+ "type": "text",
484
+ "primaryKey": false,
485
+ "notNull": true,
486
+ "autoincrement": false
487
+ },
488
+ "name": {
489
+ "name": "name",
490
+ "type": "text",
491
+ "primaryKey": false,
492
+ "notNull": true,
493
+ "autoincrement": false
494
+ },
495
+ "en_description": {
496
+ "name": "en_description",
497
+ "type": "text",
498
+ "primaryKey": false,
499
+ "notNull": false,
500
+ "autoincrement": false
501
+ },
502
+ "pt_description": {
503
+ "name": "pt_description",
504
+ "type": "text",
505
+ "primaryKey": false,
506
+ "notNull": false,
507
+ "autoincrement": false
508
+ },
509
+ "en_report": {
510
+ "name": "en_report",
511
+ "type": "text",
512
+ "primaryKey": false,
513
+ "notNull": false,
514
+ "autoincrement": false
515
+ },
516
+ "pt_report": {
517
+ "name": "pt_report",
518
+ "type": "text",
519
+ "primaryKey": false,
520
+ "notNull": false,
521
+ "autoincrement": false
522
+ },
523
+ "created_at": {
524
+ "name": "created_at",
525
+ "type": "integer",
526
+ "primaryKey": false,
527
+ "notNull": false,
528
+ "autoincrement": false,
529
+ "default": "CURRENT_TIMESTAMP"
530
+ },
531
+ "updated_at": {
532
+ "name": "updated_at",
533
+ "type": "integer",
534
+ "primaryKey": false,
535
+ "notNull": false,
536
+ "autoincrement": false,
537
+ "default": "CURRENT_TIMESTAMP"
538
+ }
539
+ },
540
+ "indexes": {
541
+ "astro_feature_reports_type_name_idx": {
542
+ "name": "astro_feature_reports_type_name_idx",
543
+ "columns": [
544
+ "feature_type",
545
+ "name"
546
+ ],
547
+ "isUnique": false
548
+ }
549
+ },
550
+ "foreignKeys": {},
551
+ "compositePrimaryKeys": {},
552
+ "uniqueConstraints": {},
553
+ "checkConstraints": {}
554
+ },
555
+ "astro_features": {
556
+ "name": "astro_features",
557
+ "columns": {
558
+ "id": {
559
+ "name": "id",
560
+ "type": "text",
561
+ "primaryKey": true,
562
+ "notNull": true,
563
+ "autoincrement": false
564
+ },
565
+ "user_id": {
566
+ "name": "user_id",
567
+ "type": "text",
568
+ "primaryKey": false,
569
+ "notNull": true,
570
+ "autoincrement": false
571
+ },
572
+ "feature_type": {
573
+ "name": "feature_type",
574
+ "type": "text",
575
+ "primaryKey": false,
576
+ "notNull": true,
577
+ "autoincrement": false
578
+ },
579
+ "name": {
580
+ "name": "name",
581
+ "type": "text",
582
+ "primaryKey": false,
583
+ "notNull": true,
584
+ "autoincrement": false
585
+ },
586
+ "description": {
587
+ "name": "description",
588
+ "type": "text",
589
+ "primaryKey": false,
590
+ "notNull": false,
591
+ "autoincrement": false
592
+ },
593
+ "percentage": {
594
+ "name": "percentage",
595
+ "type": "real",
596
+ "primaryKey": false,
597
+ "notNull": false,
598
+ "autoincrement": false
599
+ },
600
+ "order": {
601
+ "name": "order",
602
+ "type": "integer",
603
+ "primaryKey": false,
604
+ "notNull": false,
605
+ "autoincrement": false
606
+ },
607
+ "prominent_id": {
608
+ "name": "prominent_id",
609
+ "type": "integer",
610
+ "primaryKey": false,
611
+ "notNull": false,
612
+ "autoincrement": false
613
+ }
614
+ },
615
+ "indexes": {
616
+ "astro_features_user_id_idx": {
617
+ "name": "astro_features_user_id_idx",
618
+ "columns": [
619
+ "user_id"
620
+ ],
621
+ "isUnique": false
622
+ }
623
+ },
624
+ "foreignKeys": {
625
+ "astro_features_user_id_users_id_fk": {
626
+ "name": "astro_features_user_id_users_id_fk",
627
+ "tableFrom": "astro_features",
628
+ "tableTo": "users",
629
+ "columnsFrom": [
630
+ "user_id"
631
+ ],
632
+ "columnsTo": [
633
+ "id"
634
+ ],
635
+ "onDelete": "cascade",
636
+ "onUpdate": "no action"
637
+ }
638
+ },
639
+ "compositePrimaryKeys": {},
640
+ "uniqueConstraints": {},
641
+ "checkConstraints": {}
642
+ },
643
+ "astro_houses": {
644
+ "name": "astro_houses",
645
+ "columns": {
646
+ "id": {
647
+ "name": "id",
648
+ "type": "text",
649
+ "primaryKey": true,
650
+ "notNull": true,
651
+ "autoincrement": false
652
+ },
653
+ "user_id": {
654
+ "name": "user_id",
655
+ "type": "text",
656
+ "primaryKey": false,
657
+ "notNull": true,
658
+ "autoincrement": false
659
+ },
660
+ "house": {
661
+ "name": "house",
662
+ "type": "integer",
663
+ "primaryKey": false,
664
+ "notNull": true,
665
+ "autoincrement": false
666
+ },
667
+ "sign": {
668
+ "name": "sign",
669
+ "type": "text",
670
+ "primaryKey": false,
671
+ "notNull": true,
672
+ "autoincrement": false
673
+ },
674
+ "degree": {
675
+ "name": "degree",
676
+ "type": "real",
677
+ "primaryKey": false,
678
+ "notNull": true,
679
+ "autoincrement": false
680
+ }
681
+ },
682
+ "indexes": {
683
+ "astro_houses_user_id_idx": {
684
+ "name": "astro_houses_user_id_idx",
685
+ "columns": [
686
+ "user_id"
687
+ ],
688
+ "isUnique": false
689
+ }
690
+ },
691
+ "foreignKeys": {
692
+ "astro_houses_user_id_users_id_fk": {
693
+ "name": "astro_houses_user_id_users_id_fk",
694
+ "tableFrom": "astro_houses",
695
+ "tableTo": "users",
696
+ "columnsFrom": [
697
+ "user_id"
698
+ ],
699
+ "columnsTo": [
700
+ "id"
701
+ ],
702
+ "onDelete": "cascade",
703
+ "onUpdate": "no action"
704
+ }
705
+ },
706
+ "compositePrimaryKeys": {},
707
+ "uniqueConstraints": {},
708
+ "checkConstraints": {}
709
+ },
710
+ "astro_planets": {
711
+ "name": "astro_planets",
712
+ "columns": {
713
+ "id": {
714
+ "name": "id",
715
+ "type": "text",
716
+ "primaryKey": true,
717
+ "notNull": true,
718
+ "autoincrement": false
719
+ },
720
+ "user_id": {
721
+ "name": "user_id",
722
+ "type": "text",
723
+ "primaryKey": false,
724
+ "notNull": true,
725
+ "autoincrement": false
726
+ },
727
+ "type": {
728
+ "name": "type",
729
+ "type": "text",
730
+ "primaryKey": false,
731
+ "notNull": true,
732
+ "autoincrement": false
733
+ },
734
+ "name": {
735
+ "name": "name",
736
+ "type": "text",
737
+ "primaryKey": false,
738
+ "notNull": true,
739
+ "autoincrement": false
740
+ },
741
+ "sign": {
742
+ "name": "sign",
743
+ "type": "text",
744
+ "primaryKey": false,
745
+ "notNull": true,
746
+ "autoincrement": false
747
+ },
748
+ "house": {
749
+ "name": "house",
750
+ "type": "integer",
751
+ "primaryKey": false,
752
+ "notNull": false,
753
+ "autoincrement": false
754
+ },
755
+ "full_degree": {
756
+ "name": "full_degree",
757
+ "type": "real",
758
+ "primaryKey": false,
759
+ "notNull": false,
760
+ "autoincrement": false
761
+ },
762
+ "norm_degree": {
763
+ "name": "norm_degree",
764
+ "type": "real",
765
+ "primaryKey": false,
766
+ "notNull": false,
767
+ "autoincrement": false
768
+ },
769
+ "speed": {
770
+ "name": "speed",
771
+ "type": "real",
772
+ "primaryKey": false,
773
+ "notNull": false,
774
+ "autoincrement": false
775
+ },
776
+ "is_retro": {
777
+ "name": "is_retro",
778
+ "type": "integer",
779
+ "primaryKey": false,
780
+ "notNull": false,
781
+ "autoincrement": false
782
+ }
783
+ },
784
+ "indexes": {
785
+ "astro_planets_user_id_idx": {
786
+ "name": "astro_planets_user_id_idx",
787
+ "columns": [
788
+ "user_id"
789
+ ],
790
+ "isUnique": false
791
+ }
792
+ },
793
+ "foreignKeys": {
794
+ "astro_planets_user_id_users_id_fk": {
795
+ "name": "astro_planets_user_id_users_id_fk",
796
+ "tableFrom": "astro_planets",
797
+ "tableTo": "users",
798
+ "columnsFrom": [
799
+ "user_id"
800
+ ],
801
+ "columnsTo": [
802
+ "id"
803
+ ],
804
+ "onDelete": "cascade",
805
+ "onUpdate": "no action"
806
+ }
807
+ },
808
+ "compositePrimaryKeys": {},
809
+ "uniqueConstraints": {},
810
+ "checkConstraints": {}
811
+ },
812
+ "astro_reports": {
813
+ "name": "astro_reports",
814
+ "columns": {
815
+ "id": {
816
+ "name": "id",
817
+ "type": "text",
818
+ "primaryKey": true,
819
+ "notNull": true,
820
+ "autoincrement": false
821
+ },
822
+ "type": {
823
+ "name": "type",
824
+ "type": "text",
825
+ "primaryKey": false,
826
+ "notNull": true,
827
+ "autoincrement": false
828
+ },
829
+ "name": {
830
+ "name": "name",
831
+ "type": "text",
832
+ "primaryKey": false,
833
+ "notNull": true,
834
+ "autoincrement": false
835
+ },
836
+ "sign": {
837
+ "name": "sign",
838
+ "type": "text",
839
+ "primaryKey": false,
840
+ "notNull": false,
841
+ "autoincrement": false
842
+ },
843
+ "house": {
844
+ "name": "house",
845
+ "type": "integer",
846
+ "primaryKey": false,
847
+ "notNull": false,
848
+ "autoincrement": false
849
+ },
850
+ "en_description": {
851
+ "name": "en_description",
852
+ "type": "text",
853
+ "primaryKey": false,
854
+ "notNull": false,
855
+ "autoincrement": false
856
+ },
857
+ "pt_description": {
858
+ "name": "pt_description",
859
+ "type": "text",
860
+ "primaryKey": false,
861
+ "notNull": false,
862
+ "autoincrement": false
863
+ },
864
+ "en_report": {
865
+ "name": "en_report",
866
+ "type": "text",
867
+ "primaryKey": false,
868
+ "notNull": false,
869
+ "autoincrement": false
870
+ },
871
+ "pt_report": {
872
+ "name": "pt_report",
873
+ "type": "text",
874
+ "primaryKey": false,
875
+ "notNull": false,
876
+ "autoincrement": false
877
+ },
878
+ "created_at": {
879
+ "name": "created_at",
880
+ "type": "integer",
881
+ "primaryKey": false,
882
+ "notNull": false,
883
+ "autoincrement": false,
884
+ "default": "CURRENT_TIMESTAMP"
885
+ },
886
+ "updated_at": {
887
+ "name": "updated_at",
888
+ "type": "integer",
889
+ "primaryKey": false,
890
+ "notNull": false,
891
+ "autoincrement": false,
892
+ "default": "CURRENT_TIMESTAMP"
893
+ }
894
+ },
895
+ "indexes": {
896
+ "astro_reports_type_idx": {
897
+ "name": "astro_reports_type_idx",
898
+ "columns": [
899
+ "type"
900
+ ],
901
+ "isUnique": false
902
+ },
903
+ "astro_reports_name_sign_idx": {
904
+ "name": "astro_reports_name_sign_idx",
905
+ "columns": [
906
+ "name",
907
+ "sign"
908
+ ],
909
+ "isUnique": false
910
+ },
911
+ "astro_reports_name_house_idx": {
912
+ "name": "astro_reports_name_house_idx",
913
+ "columns": [
914
+ "name",
915
+ "house"
916
+ ],
917
+ "isUnique": false
918
+ }
919
+ },
920
+ "foreignKeys": {},
921
+ "compositePrimaryKeys": {},
922
+ "uniqueConstraints": {},
923
+ "checkConstraints": {}
924
+ },
925
+ "concept_combinations": {
926
+ "name": "concept_combinations",
927
+ "columns": {
928
+ "id": {
929
+ "name": "id",
930
+ "type": "text",
931
+ "primaryKey": true,
932
+ "notNull": true,
933
+ "autoincrement": false
934
+ },
935
+ "concept_id": {
936
+ "name": "concept_id",
937
+ "type": "text",
938
+ "primaryKey": false,
939
+ "notNull": true,
940
+ "autoincrement": false
941
+ },
942
+ "planet1_sign": {
943
+ "name": "planet1_sign",
944
+ "type": "text",
945
+ "primaryKey": false,
946
+ "notNull": true,
947
+ "autoincrement": false
948
+ },
949
+ "planet2_sign": {
950
+ "name": "planet2_sign",
951
+ "type": "text",
952
+ "primaryKey": false,
953
+ "notNull": true,
954
+ "autoincrement": false
955
+ },
956
+ "planet3_sign": {
957
+ "name": "planet3_sign",
958
+ "type": "text",
959
+ "primaryKey": false,
960
+ "notNull": true,
961
+ "autoincrement": false
962
+ },
963
+ "combination_string": {
964
+ "name": "combination_string",
965
+ "type": "text",
966
+ "primaryKey": false,
967
+ "notNull": true,
968
+ "autoincrement": false
969
+ }
970
+ },
971
+ "indexes": {
972
+ "concept_combinations_unique_combination_idx": {
973
+ "name": "concept_combinations_unique_combination_idx",
974
+ "columns": [
975
+ "concept_id",
976
+ "combination_string"
977
+ ],
978
+ "isUnique": false
979
+ }
980
+ },
981
+ "foreignKeys": {
982
+ "concept_combinations_concept_id_concepts_id_fk": {
983
+ "name": "concept_combinations_concept_id_concepts_id_fk",
984
+ "tableFrom": "concept_combinations",
985
+ "tableTo": "concepts",
986
+ "columnsFrom": [
987
+ "concept_id"
988
+ ],
989
+ "columnsTo": [
990
+ "id"
991
+ ],
992
+ "onDelete": "cascade",
993
+ "onUpdate": "no action"
994
+ }
995
+ },
996
+ "compositePrimaryKeys": {},
997
+ "uniqueConstraints": {},
998
+ "checkConstraints": {}
999
+ },
1000
+ "concepts": {
1001
+ "name": "concepts",
1002
+ "columns": {
1003
+ "id": {
1004
+ "name": "id",
1005
+ "type": "text",
1006
+ "primaryKey": true,
1007
+ "notNull": true,
1008
+ "autoincrement": false
1009
+ },
1010
+ "name": {
1011
+ "name": "name",
1012
+ "type": "text",
1013
+ "primaryKey": false,
1014
+ "notNull": true,
1015
+ "autoincrement": false
1016
+ },
1017
+ "slug": {
1018
+ "name": "slug",
1019
+ "type": "text",
1020
+ "primaryKey": false,
1021
+ "notNull": true,
1022
+ "autoincrement": false
1023
+ },
1024
+ "planet1": {
1025
+ "name": "planet1",
1026
+ "type": "text",
1027
+ "primaryKey": false,
1028
+ "notNull": true,
1029
+ "autoincrement": false
1030
+ },
1031
+ "planet2": {
1032
+ "name": "planet2",
1033
+ "type": "text",
1034
+ "primaryKey": false,
1035
+ "notNull": true,
1036
+ "autoincrement": false
1037
+ },
1038
+ "planet3": {
1039
+ "name": "planet3",
1040
+ "type": "text",
1041
+ "primaryKey": false,
1042
+ "notNull": false,
1043
+ "autoincrement": false
1044
+ }
1045
+ },
1046
+ "indexes": {
1047
+ "concepts_name_idx": {
1048
+ "name": "concepts_name_idx",
1049
+ "columns": [
1050
+ "name"
1051
+ ],
1052
+ "isUnique": false
1053
+ }
1054
+ },
1055
+ "foreignKeys": {},
1056
+ "compositePrimaryKeys": {},
1057
+ "uniqueConstraints": {},
1058
+ "checkConstraints": {}
1059
+ },
1060
+ "concepts_data": {
1061
+ "name": "concepts_data",
1062
+ "columns": {
1063
+ "id": {
1064
+ "name": "id",
1065
+ "type": "text",
1066
+ "primaryKey": true,
1067
+ "notNull": true,
1068
+ "autoincrement": false
1069
+ },
1070
+ "language": {
1071
+ "name": "language",
1072
+ "type": "text",
1073
+ "primaryKey": false,
1074
+ "notNull": true,
1075
+ "autoincrement": false
1076
+ },
1077
+ "concept_slug": {
1078
+ "name": "concept_slug",
1079
+ "type": "text",
1080
+ "primaryKey": false,
1081
+ "notNull": true,
1082
+ "autoincrement": false
1083
+ },
1084
+ "combination": {
1085
+ "name": "combination",
1086
+ "type": "text",
1087
+ "primaryKey": false,
1088
+ "notNull": true,
1089
+ "autoincrement": false
1090
+ },
1091
+ "name": {
1092
+ "name": "name",
1093
+ "type": "text",
1094
+ "primaryKey": false,
1095
+ "notNull": true,
1096
+ "autoincrement": false
1097
+ },
1098
+ "description": {
1099
+ "name": "description",
1100
+ "type": "text",
1101
+ "primaryKey": false,
1102
+ "notNull": true,
1103
+ "autoincrement": false
1104
+ },
1105
+ "content": {
1106
+ "name": "content",
1107
+ "type": "text",
1108
+ "primaryKey": false,
1109
+ "notNull": false,
1110
+ "autoincrement": false,
1111
+ "default": "'[]'"
1112
+ },
1113
+ "poem": {
1114
+ "name": "poem",
1115
+ "type": "text",
1116
+ "primaryKey": false,
1117
+ "notNull": false,
1118
+ "autoincrement": false,
1119
+ "default": "'[]'"
1120
+ },
1121
+ "leonardo_prompt": {
1122
+ "name": "leonardo_prompt",
1123
+ "type": "text",
1124
+ "primaryKey": false,
1125
+ "notNull": false,
1126
+ "autoincrement": false
1127
+ },
1128
+ "post_images": {
1129
+ "name": "post_images",
1130
+ "type": "text",
1131
+ "primaryKey": false,
1132
+ "notNull": false,
1133
+ "autoincrement": false,
1134
+ "default": "'[]'"
1135
+ },
1136
+ "reel_images": {
1137
+ "name": "reel_images",
1138
+ "type": "text",
1139
+ "primaryKey": false,
1140
+ "notNull": false,
1141
+ "autoincrement": false,
1142
+ "default": "'[]'"
1143
+ },
1144
+ "status": {
1145
+ "name": "status",
1146
+ "type": "text",
1147
+ "primaryKey": false,
1148
+ "notNull": false,
1149
+ "autoincrement": false,
1150
+ "default": "'idle'"
1151
+ },
1152
+ "created_at": {
1153
+ "name": "created_at",
1154
+ "type": "integer",
1155
+ "primaryKey": false,
1156
+ "notNull": false,
1157
+ "autoincrement": false,
1158
+ "default": "CURRENT_TIMESTAMP"
1159
+ },
1160
+ "updated_at": {
1161
+ "name": "updated_at",
1162
+ "type": "integer",
1163
+ "primaryKey": false,
1164
+ "notNull": false,
1165
+ "autoincrement": false,
1166
+ "default": "CURRENT_TIMESTAMP"
1167
+ }
1168
+ },
1169
+ "indexes": {
1170
+ "concepts_data_language_idx": {
1171
+ "name": "concepts_data_language_idx",
1172
+ "columns": [
1173
+ "language"
1174
+ ],
1175
+ "isUnique": false
1176
+ },
1177
+ "concepts_data_concept_slug_idx": {
1178
+ "name": "concepts_data_concept_slug_idx",
1179
+ "columns": [
1180
+ "concept_slug"
1181
+ ],
1182
+ "isUnique": false
1183
+ },
1184
+ "concepts_data_combination_idx": {
1185
+ "name": "concepts_data_combination_idx",
1186
+ "columns": [
1187
+ "combination"
1188
+ ],
1189
+ "isUnique": false
1190
+ },
1191
+ "concepts_data_name_idx": {
1192
+ "name": "concepts_data_name_idx",
1193
+ "columns": [
1194
+ "name"
1195
+ ],
1196
+ "isUnique": false
1197
+ }
1198
+ },
1199
+ "foreignKeys": {},
1200
+ "compositePrimaryKeys": {},
1201
+ "uniqueConstraints": {},
1202
+ "checkConstraints": {}
1203
+ },
1204
+ "credits_transactions": {
1205
+ "name": "credits_transactions",
1206
+ "columns": {
1207
+ "id": {
1208
+ "name": "id",
1209
+ "type": "text",
1210
+ "primaryKey": true,
1211
+ "notNull": true,
1212
+ "autoincrement": false
1213
+ },
1214
+ "user_id": {
1215
+ "name": "user_id",
1216
+ "type": "text",
1217
+ "primaryKey": false,
1218
+ "notNull": true,
1219
+ "autoincrement": false
1220
+ },
1221
+ "type": {
1222
+ "name": "type",
1223
+ "type": "text",
1224
+ "primaryKey": false,
1225
+ "notNull": true,
1226
+ "autoincrement": false
1227
+ },
1228
+ "amount": {
1229
+ "name": "amount",
1230
+ "type": "integer",
1231
+ "primaryKey": false,
1232
+ "notNull": true,
1233
+ "autoincrement": false
1234
+ },
1235
+ "description": {
1236
+ "name": "description",
1237
+ "type": "text",
1238
+ "primaryKey": false,
1239
+ "notNull": false,
1240
+ "autoincrement": false
1241
+ },
1242
+ "product_type": {
1243
+ "name": "product_type",
1244
+ "type": "text",
1245
+ "primaryKey": false,
1246
+ "notNull": false,
1247
+ "autoincrement": false
1248
+ },
1249
+ "product_id": {
1250
+ "name": "product_id",
1251
+ "type": "text",
1252
+ "primaryKey": false,
1253
+ "notNull": false,
1254
+ "autoincrement": false
1255
+ },
1256
+ "payment_id": {
1257
+ "name": "payment_id",
1258
+ "type": "text",
1259
+ "primaryKey": false,
1260
+ "notNull": true,
1261
+ "autoincrement": false
1262
+ },
1263
+ "created_at": {
1264
+ "name": "created_at",
1265
+ "type": "integer",
1266
+ "primaryKey": false,
1267
+ "notNull": true,
1268
+ "autoincrement": false,
1269
+ "default": "CURRENT_TIMESTAMP"
1270
+ },
1271
+ "updated_at": {
1272
+ "name": "updated_at",
1273
+ "type": "integer",
1274
+ "primaryKey": false,
1275
+ "notNull": true,
1276
+ "autoincrement": false,
1277
+ "default": "CURRENT_TIMESTAMP"
1278
+ }
1279
+ },
1280
+ "indexes": {
1281
+ "credits_transactions_user_id_idx": {
1282
+ "name": "credits_transactions_user_id_idx",
1283
+ "columns": [
1284
+ "user_id"
1285
+ ],
1286
+ "isUnique": false
1287
+ }
1288
+ },
1289
+ "foreignKeys": {
1290
+ "credits_transactions_user_id_users_id_fk": {
1291
+ "name": "credits_transactions_user_id_users_id_fk",
1292
+ "tableFrom": "credits_transactions",
1293
+ "tableTo": "users",
1294
+ "columnsFrom": [
1295
+ "user_id"
1296
+ ],
1297
+ "columnsTo": [
1298
+ "id"
1299
+ ],
1300
+ "onDelete": "cascade",
1301
+ "onUpdate": "no action"
1302
+ }
1303
+ },
1304
+ "compositePrimaryKeys": {},
1305
+ "uniqueConstraints": {},
1306
+ "checkConstraints": {}
1307
+ },
1308
+ "generations": {
1309
+ "name": "generations",
1310
+ "columns": {
1311
+ "id": {
1312
+ "name": "id",
1313
+ "type": "text",
1314
+ "primaryKey": true,
1315
+ "notNull": true,
1316
+ "autoincrement": false
1317
+ },
1318
+ "user_id": {
1319
+ "name": "user_id",
1320
+ "type": "text",
1321
+ "primaryKey": false,
1322
+ "notNull": false,
1323
+ "autoincrement": false
1324
+ },
1325
+ "artifact_id": {
1326
+ "name": "artifact_id",
1327
+ "type": "text",
1328
+ "primaryKey": false,
1329
+ "notNull": false,
1330
+ "autoincrement": false
1331
+ },
1332
+ "archetype_index": {
1333
+ "name": "archetype_index",
1334
+ "type": "integer",
1335
+ "primaryKey": false,
1336
+ "notNull": false,
1337
+ "autoincrement": false
1338
+ },
1339
+ "user_artifact_id": {
1340
+ "name": "user_artifact_id",
1341
+ "type": "text",
1342
+ "primaryKey": false,
1343
+ "notNull": false,
1344
+ "autoincrement": false
1345
+ },
1346
+ "gender": {
1347
+ "name": "gender",
1348
+ "type": "text",
1349
+ "primaryKey": false,
1350
+ "notNull": false,
1351
+ "autoincrement": false
1352
+ },
1353
+ "concept_combination_id": {
1354
+ "name": "concept_combination_id",
1355
+ "type": "text",
1356
+ "primaryKey": false,
1357
+ "notNull": false,
1358
+ "autoincrement": false
1359
+ },
1360
+ "type": {
1361
+ "name": "type",
1362
+ "type": "text",
1363
+ "primaryKey": false,
1364
+ "notNull": true,
1365
+ "autoincrement": false
1366
+ },
1367
+ "status": {
1368
+ "name": "status",
1369
+ "type": "text",
1370
+ "primaryKey": false,
1371
+ "notNull": true,
1372
+ "autoincrement": false,
1373
+ "default": "'pending'"
1374
+ },
1375
+ "url": {
1376
+ "name": "url",
1377
+ "type": "text",
1378
+ "primaryKey": false,
1379
+ "notNull": false,
1380
+ "autoincrement": false
1381
+ },
1382
+ "created_at": {
1383
+ "name": "created_at",
1384
+ "type": "integer",
1385
+ "primaryKey": false,
1386
+ "notNull": true,
1387
+ "autoincrement": false,
1388
+ "default": "CURRENT_TIMESTAMP"
1389
+ },
1390
+ "updated_at": {
1391
+ "name": "updated_at",
1392
+ "type": "integer",
1393
+ "primaryKey": false,
1394
+ "notNull": true,
1395
+ "autoincrement": false,
1396
+ "default": "CURRENT_TIMESTAMP"
1397
+ }
1398
+ },
1399
+ "indexes": {
1400
+ "generations_user_id_idx": {
1401
+ "name": "generations_user_id_idx",
1402
+ "columns": [
1403
+ "user_id"
1404
+ ],
1405
+ "isUnique": false
1406
+ },
1407
+ "generations_concept_combination_id_idx": {
1408
+ "name": "generations_concept_combination_id_idx",
1409
+ "columns": [
1410
+ "concept_combination_id"
1411
+ ],
1412
+ "isUnique": false
1413
+ },
1414
+ "generations_archetype_index_idx": {
1415
+ "name": "generations_archetype_index_idx",
1416
+ "columns": [
1417
+ "archetype_index"
1418
+ ],
1419
+ "isUnique": false
1420
+ }
1421
+ },
1422
+ "foreignKeys": {
1423
+ "generations_user_id_users_id_fk": {
1424
+ "name": "generations_user_id_users_id_fk",
1425
+ "tableFrom": "generations",
1426
+ "tableTo": "users",
1427
+ "columnsFrom": [
1428
+ "user_id"
1429
+ ],
1430
+ "columnsTo": [
1431
+ "id"
1432
+ ],
1433
+ "onDelete": "cascade",
1434
+ "onUpdate": "no action"
1435
+ },
1436
+ "generations_artifact_id_artifacts_id_fk": {
1437
+ "name": "generations_artifact_id_artifacts_id_fk",
1438
+ "tableFrom": "generations",
1439
+ "tableTo": "artifacts",
1440
+ "columnsFrom": [
1441
+ "artifact_id"
1442
+ ],
1443
+ "columnsTo": [
1444
+ "id"
1445
+ ],
1446
+ "onDelete": "cascade",
1447
+ "onUpdate": "no action"
1448
+ },
1449
+ "generations_user_artifact_id_user_artifacts_id_fk": {
1450
+ "name": "generations_user_artifact_id_user_artifacts_id_fk",
1451
+ "tableFrom": "generations",
1452
+ "tableTo": "user_artifacts",
1453
+ "columnsFrom": [
1454
+ "user_artifact_id"
1455
+ ],
1456
+ "columnsTo": [
1457
+ "id"
1458
+ ],
1459
+ "onDelete": "cascade",
1460
+ "onUpdate": "no action"
1461
+ },
1462
+ "generations_concept_combination_id_concept_combinations_id_fk": {
1463
+ "name": "generations_concept_combination_id_concept_combinations_id_fk",
1464
+ "tableFrom": "generations",
1465
+ "tableTo": "concept_combinations",
1466
+ "columnsFrom": [
1467
+ "concept_combination_id"
1468
+ ],
1469
+ "columnsTo": [
1470
+ "id"
1471
+ ],
1472
+ "onDelete": "cascade",
1473
+ "onUpdate": "no action"
1474
+ }
1475
+ },
1476
+ "compositePrimaryKeys": {},
1477
+ "uniqueConstraints": {},
1478
+ "checkConstraints": {}
1479
+ },
1480
+ "house_reports": {
1481
+ "name": "house_reports",
1482
+ "columns": {
1483
+ "id": {
1484
+ "name": "id",
1485
+ "type": "text",
1486
+ "primaryKey": true,
1487
+ "notNull": true,
1488
+ "autoincrement": false
1489
+ },
1490
+ "sign": {
1491
+ "name": "sign",
1492
+ "type": "text",
1493
+ "primaryKey": false,
1494
+ "notNull": true,
1495
+ "autoincrement": false
1496
+ },
1497
+ "house": {
1498
+ "name": "house",
1499
+ "type": "integer",
1500
+ "primaryKey": false,
1501
+ "notNull": true,
1502
+ "autoincrement": false
1503
+ },
1504
+ "en_description": {
1505
+ "name": "en_description",
1506
+ "type": "text",
1507
+ "primaryKey": false,
1508
+ "notNull": false,
1509
+ "autoincrement": false
1510
+ },
1511
+ "pt_description": {
1512
+ "name": "pt_description",
1513
+ "type": "text",
1514
+ "primaryKey": false,
1515
+ "notNull": false,
1516
+ "autoincrement": false
1517
+ },
1518
+ "en_report": {
1519
+ "name": "en_report",
1520
+ "type": "text",
1521
+ "primaryKey": false,
1522
+ "notNull": false,
1523
+ "autoincrement": false
1524
+ },
1525
+ "pt_report": {
1526
+ "name": "pt_report",
1527
+ "type": "text",
1528
+ "primaryKey": false,
1529
+ "notNull": false,
1530
+ "autoincrement": false
1531
+ },
1532
+ "created_at": {
1533
+ "name": "created_at",
1534
+ "type": "integer",
1535
+ "primaryKey": false,
1536
+ "notNull": false,
1537
+ "autoincrement": false,
1538
+ "default": "CURRENT_TIMESTAMP"
1539
+ },
1540
+ "updated_at": {
1541
+ "name": "updated_at",
1542
+ "type": "integer",
1543
+ "primaryKey": false,
1544
+ "notNull": false,
1545
+ "autoincrement": false,
1546
+ "default": "CURRENT_TIMESTAMP"
1547
+ }
1548
+ },
1549
+ "indexes": {
1550
+ "house_reports_sign_house_idx": {
1551
+ "name": "house_reports_sign_house_idx",
1552
+ "columns": [
1553
+ "sign",
1554
+ "house"
1555
+ ],
1556
+ "isUnique": false
1557
+ }
1558
+ },
1559
+ "foreignKeys": {},
1560
+ "compositePrimaryKeys": {},
1561
+ "uniqueConstraints": {},
1562
+ "checkConstraints": {}
1563
+ },
1564
+ "tokens": {
1565
+ "name": "tokens",
1566
+ "columns": {
1567
+ "id": {
1568
+ "name": "id",
1569
+ "type": "text",
1570
+ "primaryKey": true,
1571
+ "notNull": true,
1572
+ "autoincrement": false
1573
+ },
1574
+ "user_id": {
1575
+ "name": "user_id",
1576
+ "type": "text",
1577
+ "primaryKey": false,
1578
+ "notNull": true,
1579
+ "autoincrement": false
1580
+ },
1581
+ "refresh_token": {
1582
+ "name": "refresh_token",
1583
+ "type": "text",
1584
+ "primaryKey": false,
1585
+ "notNull": true,
1586
+ "autoincrement": false
1587
+ },
1588
+ "expires_at": {
1589
+ "name": "expires_at",
1590
+ "type": "text",
1591
+ "primaryKey": false,
1592
+ "notNull": true,
1593
+ "autoincrement": false
1594
+ },
1595
+ "created_at": {
1596
+ "name": "created_at",
1597
+ "type": "integer",
1598
+ "primaryKey": false,
1599
+ "notNull": true,
1600
+ "autoincrement": false,
1601
+ "default": "CURRENT_TIMESTAMP"
1602
+ },
1603
+ "updated_at": {
1604
+ "name": "updated_at",
1605
+ "type": "integer",
1606
+ "primaryKey": false,
1607
+ "notNull": true,
1608
+ "autoincrement": false,
1609
+ "default": "CURRENT_TIMESTAMP"
1610
+ }
1611
+ },
1612
+ "indexes": {
1613
+ "tokens_refresh_token_unique": {
1614
+ "name": "tokens_refresh_token_unique",
1615
+ "columns": [
1616
+ "refresh_token"
1617
+ ],
1618
+ "isUnique": true
1619
+ },
1620
+ "tokens_user_id_idx": {
1621
+ "name": "tokens_user_id_idx",
1622
+ "columns": [
1623
+ "user_id"
1624
+ ],
1625
+ "isUnique": false
1626
+ }
1627
+ },
1628
+ "foreignKeys": {
1629
+ "tokens_user_id_users_id_fk": {
1630
+ "name": "tokens_user_id_users_id_fk",
1631
+ "tableFrom": "tokens",
1632
+ "tableTo": "users",
1633
+ "columnsFrom": [
1634
+ "user_id"
1635
+ ],
1636
+ "columnsTo": [
1637
+ "id"
1638
+ ],
1639
+ "onDelete": "cascade",
1640
+ "onUpdate": "no action"
1641
+ }
1642
+ },
1643
+ "compositePrimaryKeys": {},
1644
+ "uniqueConstraints": {},
1645
+ "checkConstraints": {}
1646
+ },
1647
+ "user_artifacts": {
1648
+ "name": "user_artifacts",
1649
+ "columns": {
1650
+ "id": {
1651
+ "name": "id",
1652
+ "type": "text",
1653
+ "primaryKey": true,
1654
+ "notNull": true,
1655
+ "autoincrement": false
1656
+ },
1657
+ "user_id": {
1658
+ "name": "user_id",
1659
+ "type": "text",
1660
+ "primaryKey": false,
1661
+ "notNull": true,
1662
+ "autoincrement": false
1663
+ },
1664
+ "user_concept_id": {
1665
+ "name": "user_concept_id",
1666
+ "type": "text",
1667
+ "primaryKey": false,
1668
+ "notNull": true,
1669
+ "autoincrement": false
1670
+ },
1671
+ "artifact_id": {
1672
+ "name": "artifact_id",
1673
+ "type": "text",
1674
+ "primaryKey": false,
1675
+ "notNull": true,
1676
+ "autoincrement": false
1677
+ },
1678
+ "gender": {
1679
+ "name": "gender",
1680
+ "type": "text",
1681
+ "primaryKey": false,
1682
+ "notNull": true,
1683
+ "autoincrement": false
1684
+ },
1685
+ "archetype_index": {
1686
+ "name": "archetype_index",
1687
+ "type": "text",
1688
+ "primaryKey": false,
1689
+ "notNull": true,
1690
+ "autoincrement": false
1691
+ },
1692
+ "post_image_id": {
1693
+ "name": "post_image_id",
1694
+ "type": "text",
1695
+ "primaryKey": false,
1696
+ "notNull": false,
1697
+ "autoincrement": false
1698
+ },
1699
+ "reel_image_id": {
1700
+ "name": "reel_image_id",
1701
+ "type": "text",
1702
+ "primaryKey": false,
1703
+ "notNull": false,
1704
+ "autoincrement": false
1705
+ },
1706
+ "post_image_url": {
1707
+ "name": "post_image_url",
1708
+ "type": "text",
1709
+ "primaryKey": false,
1710
+ "notNull": false,
1711
+ "autoincrement": false
1712
+ },
1713
+ "reel_image_url": {
1714
+ "name": "reel_image_url",
1715
+ "type": "text",
1716
+ "primaryKey": false,
1717
+ "notNull": false,
1718
+ "autoincrement": false
1719
+ },
1720
+ "post_generation_id": {
1721
+ "name": "post_generation_id",
1722
+ "type": "text",
1723
+ "primaryKey": false,
1724
+ "notNull": false,
1725
+ "autoincrement": false
1726
+ },
1727
+ "reel_generation_id": {
1728
+ "name": "reel_generation_id",
1729
+ "type": "text",
1730
+ "primaryKey": false,
1731
+ "notNull": false,
1732
+ "autoincrement": false
1733
+ },
1734
+ "status": {
1735
+ "name": "status",
1736
+ "type": "text",
1737
+ "primaryKey": false,
1738
+ "notNull": true,
1739
+ "autoincrement": false,
1740
+ "default": "'pending'"
1741
+ },
1742
+ "created_at": {
1743
+ "name": "created_at",
1744
+ "type": "integer",
1745
+ "primaryKey": false,
1746
+ "notNull": true,
1747
+ "autoincrement": false,
1748
+ "default": "CURRENT_TIMESTAMP"
1749
+ },
1750
+ "updated_at": {
1751
+ "name": "updated_at",
1752
+ "type": "integer",
1753
+ "primaryKey": false,
1754
+ "notNull": true,
1755
+ "autoincrement": false,
1756
+ "default": "CURRENT_TIMESTAMP"
1757
+ }
1758
+ },
1759
+ "indexes": {
1760
+ "user_artifacts_user_id_idx": {
1761
+ "name": "user_artifacts_user_id_idx",
1762
+ "columns": [
1763
+ "user_id"
1764
+ ],
1765
+ "isUnique": false
1766
+ },
1767
+ "user_artifacts_artifact_id_idx": {
1768
+ "name": "user_artifacts_artifact_id_idx",
1769
+ "columns": [
1770
+ "artifact_id"
1771
+ ],
1772
+ "isUnique": false
1773
+ },
1774
+ "user_artifacts_status_idx": {
1775
+ "name": "user_artifacts_status_idx",
1776
+ "columns": [
1777
+ "status"
1778
+ ],
1779
+ "isUnique": false
1780
+ }
1781
+ },
1782
+ "foreignKeys": {
1783
+ "user_artifacts_user_id_users_id_fk": {
1784
+ "name": "user_artifacts_user_id_users_id_fk",
1785
+ "tableFrom": "user_artifacts",
1786
+ "tableTo": "users",
1787
+ "columnsFrom": [
1788
+ "user_id"
1789
+ ],
1790
+ "columnsTo": [
1791
+ "id"
1792
+ ],
1793
+ "onDelete": "cascade",
1794
+ "onUpdate": "no action"
1795
+ },
1796
+ "user_artifacts_user_concept_id_user_concepts_id_fk": {
1797
+ "name": "user_artifacts_user_concept_id_user_concepts_id_fk",
1798
+ "tableFrom": "user_artifacts",
1799
+ "tableTo": "user_concepts",
1800
+ "columnsFrom": [
1801
+ "user_concept_id"
1802
+ ],
1803
+ "columnsTo": [
1804
+ "id"
1805
+ ],
1806
+ "onDelete": "cascade",
1807
+ "onUpdate": "no action"
1808
+ },
1809
+ "user_artifacts_artifact_id_artifacts_id_fk": {
1810
+ "name": "user_artifacts_artifact_id_artifacts_id_fk",
1811
+ "tableFrom": "user_artifacts",
1812
+ "tableTo": "artifacts",
1813
+ "columnsFrom": [
1814
+ "artifact_id"
1815
+ ],
1816
+ "columnsTo": [
1817
+ "id"
1818
+ ],
1819
+ "onDelete": "cascade",
1820
+ "onUpdate": "no action"
1821
+ }
1822
+ },
1823
+ "compositePrimaryKeys": {},
1824
+ "uniqueConstraints": {},
1825
+ "checkConstraints": {}
1826
+ },
1827
+ "user_concepts": {
1828
+ "name": "user_concepts",
1829
+ "columns": {
1830
+ "id": {
1831
+ "name": "id",
1832
+ "type": "text",
1833
+ "primaryKey": true,
1834
+ "notNull": true,
1835
+ "autoincrement": false
1836
+ },
1837
+ "user_id": {
1838
+ "name": "user_id",
1839
+ "type": "text",
1840
+ "primaryKey": false,
1841
+ "notNull": true,
1842
+ "autoincrement": false
1843
+ },
1844
+ "concept_id": {
1845
+ "name": "concept_id",
1846
+ "type": "text",
1847
+ "primaryKey": false,
1848
+ "notNull": true,
1849
+ "autoincrement": false
1850
+ },
1851
+ "concept_combination_id": {
1852
+ "name": "concept_combination_id",
1853
+ "type": "text",
1854
+ "primaryKey": false,
1855
+ "notNull": true,
1856
+ "autoincrement": false
1857
+ },
1858
+ "created_at": {
1859
+ "name": "created_at",
1860
+ "type": "integer",
1861
+ "primaryKey": false,
1862
+ "notNull": true,
1863
+ "autoincrement": false,
1864
+ "default": "CURRENT_TIMESTAMP"
1865
+ },
1866
+ "updated_at": {
1867
+ "name": "updated_at",
1868
+ "type": "integer",
1869
+ "primaryKey": false,
1870
+ "notNull": true,
1871
+ "autoincrement": false,
1872
+ "default": "CURRENT_TIMESTAMP"
1873
+ }
1874
+ },
1875
+ "indexes": {
1876
+ "user_concepts_user_id_idx": {
1877
+ "name": "user_concepts_user_id_idx",
1878
+ "columns": [
1879
+ "user_id"
1880
+ ],
1881
+ "isUnique": false
1882
+ },
1883
+ "user_concepts_concept_id_idx": {
1884
+ "name": "user_concepts_concept_id_idx",
1885
+ "columns": [
1886
+ "concept_id"
1887
+ ],
1888
+ "isUnique": false
1889
+ }
1890
+ },
1891
+ "foreignKeys": {
1892
+ "user_concepts_user_id_users_id_fk": {
1893
+ "name": "user_concepts_user_id_users_id_fk",
1894
+ "tableFrom": "user_concepts",
1895
+ "tableTo": "users",
1896
+ "columnsFrom": [
1897
+ "user_id"
1898
+ ],
1899
+ "columnsTo": [
1900
+ "id"
1901
+ ],
1902
+ "onDelete": "cascade",
1903
+ "onUpdate": "no action"
1904
+ },
1905
+ "user_concepts_concept_id_concepts_id_fk": {
1906
+ "name": "user_concepts_concept_id_concepts_id_fk",
1907
+ "tableFrom": "user_concepts",
1908
+ "tableTo": "concepts",
1909
+ "columnsFrom": [
1910
+ "concept_id"
1911
+ ],
1912
+ "columnsTo": [
1913
+ "id"
1914
+ ],
1915
+ "onDelete": "cascade",
1916
+ "onUpdate": "no action"
1917
+ },
1918
+ "user_concepts_concept_combination_id_concept_combinations_id_fk": {
1919
+ "name": "user_concepts_concept_combination_id_concept_combinations_id_fk",
1920
+ "tableFrom": "user_concepts",
1921
+ "tableTo": "concept_combinations",
1922
+ "columnsFrom": [
1923
+ "concept_combination_id"
1924
+ ],
1925
+ "columnsTo": [
1926
+ "id"
1927
+ ],
1928
+ "onDelete": "cascade",
1929
+ "onUpdate": "no action"
1930
+ }
1931
+ },
1932
+ "compositePrimaryKeys": {},
1933
+ "uniqueConstraints": {},
1934
+ "checkConstraints": {}
1935
+ },
1936
+ "users": {
1937
+ "name": "users",
1938
+ "columns": {
1939
+ "id": {
1940
+ "name": "id",
1941
+ "type": "text",
1942
+ "primaryKey": true,
1943
+ "notNull": true,
1944
+ "autoincrement": false
1945
+ },
1946
+ "email": {
1947
+ "name": "email",
1948
+ "type": "text",
1949
+ "primaryKey": false,
1950
+ "notNull": true,
1951
+ "autoincrement": false
1952
+ },
1953
+ "password_hash": {
1954
+ "name": "password_hash",
1955
+ "type": "text",
1956
+ "primaryKey": false,
1957
+ "notNull": false,
1958
+ "autoincrement": false
1959
+ },
1960
+ "name": {
1961
+ "name": "name",
1962
+ "type": "text",
1963
+ "primaryKey": false,
1964
+ "notNull": true,
1965
+ "autoincrement": false
1966
+ },
1967
+ "profile_image": {
1968
+ "name": "profile_image",
1969
+ "type": "text",
1970
+ "primaryKey": false,
1971
+ "notNull": false,
1972
+ "autoincrement": false
1973
+ },
1974
+ "user_photo_id": {
1975
+ "name": "user_photo_id",
1976
+ "type": "text",
1977
+ "primaryKey": false,
1978
+ "notNull": false,
1979
+ "autoincrement": false
1980
+ },
1981
+ "user_photo_url": {
1982
+ "name": "user_photo_url",
1983
+ "type": "text",
1984
+ "primaryKey": false,
1985
+ "notNull": false,
1986
+ "autoincrement": false
1987
+ },
1988
+ "gender": {
1989
+ "name": "gender",
1990
+ "type": "text",
1991
+ "primaryKey": false,
1992
+ "notNull": false,
1993
+ "autoincrement": false
1994
+ },
1995
+ "day": {
1996
+ "name": "day",
1997
+ "type": "integer",
1998
+ "primaryKey": false,
1999
+ "notNull": true,
2000
+ "autoincrement": false
2001
+ },
2002
+ "month": {
2003
+ "name": "month",
2004
+ "type": "integer",
2005
+ "primaryKey": false,
2006
+ "notNull": true,
2007
+ "autoincrement": false
2008
+ },
2009
+ "year": {
2010
+ "name": "year",
2011
+ "type": "integer",
2012
+ "primaryKey": false,
2013
+ "notNull": true,
2014
+ "autoincrement": false
2015
+ },
2016
+ "hour": {
2017
+ "name": "hour",
2018
+ "type": "integer",
2019
+ "primaryKey": false,
2020
+ "notNull": false,
2021
+ "autoincrement": false
2022
+ },
2023
+ "min": {
2024
+ "name": "min",
2025
+ "type": "integer",
2026
+ "primaryKey": false,
2027
+ "notNull": false,
2028
+ "autoincrement": false
2029
+ },
2030
+ "latitude": {
2031
+ "name": "latitude",
2032
+ "type": "real",
2033
+ "primaryKey": false,
2034
+ "notNull": true,
2035
+ "autoincrement": false
2036
+ },
2037
+ "longitude": {
2038
+ "name": "longitude",
2039
+ "type": "real",
2040
+ "primaryKey": false,
2041
+ "notNull": true,
2042
+ "autoincrement": false
2043
+ },
2044
+ "tzone": {
2045
+ "name": "tzone",
2046
+ "type": "real",
2047
+ "primaryKey": false,
2048
+ "notNull": false,
2049
+ "autoincrement": false
2050
+ },
2051
+ "birth_location": {
2052
+ "name": "birth_location",
2053
+ "type": "text",
2054
+ "primaryKey": false,
2055
+ "notNull": true,
2056
+ "autoincrement": false
2057
+ },
2058
+ "instagram_username": {
2059
+ "name": "instagram_username",
2060
+ "type": "text",
2061
+ "primaryKey": false,
2062
+ "notNull": false,
2063
+ "autoincrement": false
2064
+ },
2065
+ "tiktok_username": {
2066
+ "name": "tiktok_username",
2067
+ "type": "text",
2068
+ "primaryKey": false,
2069
+ "notNull": false,
2070
+ "autoincrement": false
2071
+ },
2072
+ "oauth_provider": {
2073
+ "name": "oauth_provider",
2074
+ "type": "text",
2075
+ "primaryKey": false,
2076
+ "notNull": false,
2077
+ "autoincrement": false
2078
+ },
2079
+ "oauth_provider_id": {
2080
+ "name": "oauth_provider_id",
2081
+ "type": "text",
2082
+ "primaryKey": false,
2083
+ "notNull": false,
2084
+ "autoincrement": false
2085
+ },
2086
+ "credits_balance": {
2087
+ "name": "credits_balance",
2088
+ "type": "integer",
2089
+ "primaryKey": false,
2090
+ "notNull": true,
2091
+ "autoincrement": false,
2092
+ "default": 0
2093
+ },
2094
+ "total_credits_earned": {
2095
+ "name": "total_credits_earned",
2096
+ "type": "integer",
2097
+ "primaryKey": false,
2098
+ "notNull": true,
2099
+ "autoincrement": false,
2100
+ "default": 0
2101
+ },
2102
+ "last_transaction_at": {
2103
+ "name": "last_transaction_at",
2104
+ "type": "integer",
2105
+ "primaryKey": false,
2106
+ "notNull": false,
2107
+ "autoincrement": false
2108
+ },
2109
+ "language": {
2110
+ "name": "language",
2111
+ "type": "text",
2112
+ "primaryKey": false,
2113
+ "notNull": true,
2114
+ "autoincrement": false
2115
+ },
2116
+ "created_at": {
2117
+ "name": "created_at",
2118
+ "type": "integer",
2119
+ "primaryKey": false,
2120
+ "notNull": true,
2121
+ "autoincrement": false,
2122
+ "default": "CURRENT_TIMESTAMP"
2123
+ },
2124
+ "updated_at": {
2125
+ "name": "updated_at",
2126
+ "type": "integer",
2127
+ "primaryKey": false,
2128
+ "notNull": true,
2129
+ "autoincrement": false,
2130
+ "default": "CURRENT_TIMESTAMP"
2131
+ }
2132
+ },
2133
+ "indexes": {
2134
+ "users_email_unique": {
2135
+ "name": "users_email_unique",
2136
+ "columns": [
2137
+ "email"
2138
+ ],
2139
+ "isUnique": true
2140
+ },
2141
+ "users_instagram_username_unique": {
2142
+ "name": "users_instagram_username_unique",
2143
+ "columns": [
2144
+ "instagram_username"
2145
+ ],
2146
+ "isUnique": true
2147
+ },
2148
+ "users_tiktok_username_unique": {
2149
+ "name": "users_tiktok_username_unique",
2150
+ "columns": [
2151
+ "tiktok_username"
2152
+ ],
2153
+ "isUnique": true
2154
+ },
2155
+ "users_oauth_provider_id_unique": {
2156
+ "name": "users_oauth_provider_id_unique",
2157
+ "columns": [
2158
+ "oauth_provider_id"
2159
+ ],
2160
+ "isUnique": true
2161
+ },
2162
+ "users_email_idx": {
2163
+ "name": "users_email_idx",
2164
+ "columns": [
2165
+ "email"
2166
+ ],
2167
+ "isUnique": false
2168
+ },
2169
+ "users_oauth_provider_idx": {
2170
+ "name": "users_oauth_provider_idx",
2171
+ "columns": [
2172
+ "oauth_provider",
2173
+ "oauth_provider_id"
2174
+ ],
2175
+ "isUnique": false
2176
+ }
2177
+ },
2178
+ "foreignKeys": {},
2179
+ "compositePrimaryKeys": {},
2180
+ "uniqueConstraints": {},
2181
+ "checkConstraints": {}
2182
+ },
2183
+ "users_temp": {
2184
+ "name": "users_temp",
2185
+ "columns": {
2186
+ "id": {
2187
+ "name": "id",
2188
+ "type": "text",
2189
+ "primaryKey": true,
2190
+ "notNull": true,
2191
+ "autoincrement": false
2192
+ },
2193
+ "email": {
2194
+ "name": "email",
2195
+ "type": "text",
2196
+ "primaryKey": false,
2197
+ "notNull": true,
2198
+ "autoincrement": false
2199
+ },
2200
+ "name": {
2201
+ "name": "name",
2202
+ "type": "text",
2203
+ "primaryKey": false,
2204
+ "notNull": true,
2205
+ "autoincrement": false
2206
+ },
2207
+ "profile_image": {
2208
+ "name": "profile_image",
2209
+ "type": "text",
2210
+ "primaryKey": false,
2211
+ "notNull": false,
2212
+ "autoincrement": false
2213
+ },
2214
+ "language": {
2215
+ "name": "language",
2216
+ "type": "text",
2217
+ "primaryKey": false,
2218
+ "notNull": true,
2219
+ "autoincrement": false
2220
+ },
2221
+ "oauth_provider": {
2222
+ "name": "oauth_provider",
2223
+ "type": "text",
2224
+ "primaryKey": false,
2225
+ "notNull": false,
2226
+ "autoincrement": false
2227
+ },
2228
+ "oauth_provider_id": {
2229
+ "name": "oauth_provider_id",
2230
+ "type": "text",
2231
+ "primaryKey": false,
2232
+ "notNull": false,
2233
+ "autoincrement": false
2234
+ },
2235
+ "created_at": {
2236
+ "name": "created_at",
2237
+ "type": "integer",
2238
+ "primaryKey": false,
2239
+ "notNull": true,
2240
+ "autoincrement": false,
2241
+ "default": "CURRENT_TIMESTAMP"
2242
+ },
2243
+ "updated_at": {
2244
+ "name": "updated_at",
2245
+ "type": "integer",
2246
+ "primaryKey": false,
2247
+ "notNull": true,
2248
+ "autoincrement": false,
2249
+ "default": "CURRENT_TIMESTAMP"
2250
+ }
2251
+ },
2252
+ "indexes": {
2253
+ "users_temp_email_unique": {
2254
+ "name": "users_temp_email_unique",
2255
+ "columns": [
2256
+ "email"
2257
+ ],
2258
+ "isUnique": true
2259
+ },
2260
+ "users_temp_email_idx": {
2261
+ "name": "users_temp_email_idx",
2262
+ "columns": [
2263
+ "email"
2264
+ ],
2265
+ "isUnique": false
2266
+ }
2267
+ },
2268
+ "foreignKeys": {},
2269
+ "compositePrimaryKeys": {},
2270
+ "uniqueConstraints": {},
2271
+ "checkConstraints": {}
2272
+ }
2273
+ },
2274
+ "views": {},
2275
+ "enums": {},
2276
+ "_meta": {
2277
+ "schemas": {},
2278
+ "tables": {},
2279
+ "columns": {}
2280
+ },
2281
+ "internal": {
2282
+ "indexes": {}
2283
+ }
2284
+ }