@zodic/shared 0.0.25 → 0.0.27

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