@zodic/shared 0.0.22 → 0.0.23

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