@zodic/shared 0.0.24 → 0.0.26

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