@zodic/shared 0.0.26 → 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,1480 +0,0 @@
1
- {
2
- "version": "6",
3
- "dialect": "sqlite",
4
- "id": "296968bc-93ca-46e5-bbba-470b06a7f941",
5
- "prevId": "1edfb5a6-2efd-4b9e-8d5e-db89e6192f71",
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": true,
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": true,
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
- "user_artifact_id": {
797
- "name": "user_artifact_id",
798
- "type": "text",
799
- "primaryKey": false,
800
- "notNull": false,
801
- "autoincrement": false
802
- },
803
- "gender": {
804
- "name": "gender",
805
- "type": "text",
806
- "primaryKey": false,
807
- "notNull": false,
808
- "autoincrement": false
809
- },
810
- "concept_combination_id": {
811
- "name": "concept_combination_id",
812
- "type": "text",
813
- "primaryKey": false,
814
- "notNull": false,
815
- "autoincrement": false
816
- },
817
- "type": {
818
- "name": "type",
819
- "type": "text",
820
- "primaryKey": false,
821
- "notNull": true,
822
- "autoincrement": false
823
- },
824
- "status": {
825
- "name": "status",
826
- "type": "text",
827
- "primaryKey": false,
828
- "notNull": true,
829
- "autoincrement": false,
830
- "default": "'pending'"
831
- },
832
- "url": {
833
- "name": "url",
834
- "type": "text",
835
- "primaryKey": false,
836
- "notNull": false,
837
- "autoincrement": false
838
- },
839
- "created_at": {
840
- "name": "created_at",
841
- "type": "integer",
842
- "primaryKey": false,
843
- "notNull": true,
844
- "autoincrement": false,
845
- "default": "CURRENT_TIMESTAMP"
846
- },
847
- "updated_at": {
848
- "name": "updated_at",
849
- "type": "integer",
850
- "primaryKey": false,
851
- "notNull": true,
852
- "autoincrement": false,
853
- "default": "CURRENT_TIMESTAMP"
854
- }
855
- },
856
- "indexes": {
857
- "generations_user_id_idx": {
858
- "name": "generations_user_id_idx",
859
- "columns": [
860
- "user_id"
861
- ],
862
- "isUnique": false
863
- },
864
- "generations_concept_combination_id_idx": {
865
- "name": "generations_concept_combination_id_idx",
866
- "columns": [
867
- "concept_combination_id"
868
- ],
869
- "isUnique": false
870
- }
871
- },
872
- "foreignKeys": {
873
- "generations_user_id_users_id_fk": {
874
- "name": "generations_user_id_users_id_fk",
875
- "tableFrom": "generations",
876
- "tableTo": "users",
877
- "columnsFrom": [
878
- "user_id"
879
- ],
880
- "columnsTo": [
881
- "id"
882
- ],
883
- "onDelete": "cascade",
884
- "onUpdate": "no action"
885
- },
886
- "generations_artifact_id_artifacts_id_fk": {
887
- "name": "generations_artifact_id_artifacts_id_fk",
888
- "tableFrom": "generations",
889
- "tableTo": "artifacts",
890
- "columnsFrom": [
891
- "artifact_id"
892
- ],
893
- "columnsTo": [
894
- "id"
895
- ],
896
- "onDelete": "cascade",
897
- "onUpdate": "no action"
898
- },
899
- "generations_user_artifact_id_user_artifacts_id_fk": {
900
- "name": "generations_user_artifact_id_user_artifacts_id_fk",
901
- "tableFrom": "generations",
902
- "tableTo": "user_artifacts",
903
- "columnsFrom": [
904
- "user_artifact_id"
905
- ],
906
- "columnsTo": [
907
- "id"
908
- ],
909
- "onDelete": "cascade",
910
- "onUpdate": "no action"
911
- },
912
- "generations_concept_combination_id_concept_combinations_id_fk": {
913
- "name": "generations_concept_combination_id_concept_combinations_id_fk",
914
- "tableFrom": "generations",
915
- "tableTo": "concept_combinations",
916
- "columnsFrom": [
917
- "concept_combination_id"
918
- ],
919
- "columnsTo": [
920
- "id"
921
- ],
922
- "onDelete": "cascade",
923
- "onUpdate": "no action"
924
- }
925
- },
926
- "compositePrimaryKeys": {},
927
- "uniqueConstraints": {},
928
- "checkConstraints": {}
929
- },
930
- "tokens": {
931
- "name": "tokens",
932
- "columns": {
933
- "id": {
934
- "name": "id",
935
- "type": "text",
936
- "primaryKey": true,
937
- "notNull": true,
938
- "autoincrement": false
939
- },
940
- "user_id": {
941
- "name": "user_id",
942
- "type": "text",
943
- "primaryKey": false,
944
- "notNull": true,
945
- "autoincrement": false
946
- },
947
- "refresh_token": {
948
- "name": "refresh_token",
949
- "type": "text",
950
- "primaryKey": false,
951
- "notNull": true,
952
- "autoincrement": false
953
- },
954
- "expires_at": {
955
- "name": "expires_at",
956
- "type": "text",
957
- "primaryKey": false,
958
- "notNull": true,
959
- "autoincrement": false
960
- },
961
- "created_at": {
962
- "name": "created_at",
963
- "type": "text",
964
- "primaryKey": false,
965
- "notNull": true,
966
- "autoincrement": false,
967
- "default": "CURRENT_TIMESTAMP"
968
- }
969
- },
970
- "indexes": {
971
- "tokens_refresh_token_unique": {
972
- "name": "tokens_refresh_token_unique",
973
- "columns": [
974
- "refresh_token"
975
- ],
976
- "isUnique": true
977
- },
978
- "tokens_user_id_idx": {
979
- "name": "tokens_user_id_idx",
980
- "columns": [
981
- "user_id"
982
- ],
983
- "isUnique": false
984
- }
985
- },
986
- "foreignKeys": {
987
- "tokens_user_id_users_id_fk": {
988
- "name": "tokens_user_id_users_id_fk",
989
- "tableFrom": "tokens",
990
- "tableTo": "users",
991
- "columnsFrom": [
992
- "user_id"
993
- ],
994
- "columnsTo": [
995
- "id"
996
- ],
997
- "onDelete": "cascade",
998
- "onUpdate": "no action"
999
- }
1000
- },
1001
- "compositePrimaryKeys": {},
1002
- "uniqueConstraints": {},
1003
- "checkConstraints": {}
1004
- },
1005
- "user_artifacts": {
1006
- "name": "user_artifacts",
1007
- "columns": {
1008
- "id": {
1009
- "name": "id",
1010
- "type": "text",
1011
- "primaryKey": true,
1012
- "notNull": true,
1013
- "autoincrement": false
1014
- },
1015
- "user_id": {
1016
- "name": "user_id",
1017
- "type": "text",
1018
- "primaryKey": false,
1019
- "notNull": true,
1020
- "autoincrement": false
1021
- },
1022
- "user_concept_id": {
1023
- "name": "user_concept_id",
1024
- "type": "text",
1025
- "primaryKey": false,
1026
- "notNull": true,
1027
- "autoincrement": false
1028
- },
1029
- "artifact_id": {
1030
- "name": "artifact_id",
1031
- "type": "text",
1032
- "primaryKey": false,
1033
- "notNull": true,
1034
- "autoincrement": false
1035
- },
1036
- "gender": {
1037
- "name": "gender",
1038
- "type": "text",
1039
- "primaryKey": false,
1040
- "notNull": true,
1041
- "autoincrement": false
1042
- },
1043
- "archetype_index": {
1044
- "name": "archetype_index",
1045
- "type": "text",
1046
- "primaryKey": false,
1047
- "notNull": true,
1048
- "autoincrement": false
1049
- },
1050
- "post_image_id": {
1051
- "name": "post_image_id",
1052
- "type": "text",
1053
- "primaryKey": false,
1054
- "notNull": false,
1055
- "autoincrement": false
1056
- },
1057
- "reel_image_id": {
1058
- "name": "reel_image_id",
1059
- "type": "text",
1060
- "primaryKey": false,
1061
- "notNull": false,
1062
- "autoincrement": false
1063
- },
1064
- "post_image_url": {
1065
- "name": "post_image_url",
1066
- "type": "text",
1067
- "primaryKey": false,
1068
- "notNull": false,
1069
- "autoincrement": false
1070
- },
1071
- "reel_image_url": {
1072
- "name": "reel_image_url",
1073
- "type": "text",
1074
- "primaryKey": false,
1075
- "notNull": false,
1076
- "autoincrement": false
1077
- },
1078
- "post_generation_id": {
1079
- "name": "post_generation_id",
1080
- "type": "text",
1081
- "primaryKey": false,
1082
- "notNull": false,
1083
- "autoincrement": false
1084
- },
1085
- "reel_generation_id": {
1086
- "name": "reel_generation_id",
1087
- "type": "text",
1088
- "primaryKey": false,
1089
- "notNull": false,
1090
- "autoincrement": false
1091
- },
1092
- "status": {
1093
- "name": "status",
1094
- "type": "text",
1095
- "primaryKey": false,
1096
- "notNull": true,
1097
- "autoincrement": false,
1098
- "default": "'pending'"
1099
- },
1100
- "created_at": {
1101
- "name": "created_at",
1102
- "type": "integer",
1103
- "primaryKey": false,
1104
- "notNull": true,
1105
- "autoincrement": false,
1106
- "default": "CURRENT_TIMESTAMP"
1107
- },
1108
- "updated_at": {
1109
- "name": "updated_at",
1110
- "type": "integer",
1111
- "primaryKey": false,
1112
- "notNull": true,
1113
- "autoincrement": false,
1114
- "default": "CURRENT_TIMESTAMP"
1115
- }
1116
- },
1117
- "indexes": {
1118
- "user_artifacts_user_id_idx": {
1119
- "name": "user_artifacts_user_id_idx",
1120
- "columns": [
1121
- "user_id"
1122
- ],
1123
- "isUnique": false
1124
- },
1125
- "user_artifacts_artifact_id_idx": {
1126
- "name": "user_artifacts_artifact_id_idx",
1127
- "columns": [
1128
- "artifact_id"
1129
- ],
1130
- "isUnique": false
1131
- },
1132
- "user_artifacts_status_idx": {
1133
- "name": "user_artifacts_status_idx",
1134
- "columns": [
1135
- "status"
1136
- ],
1137
- "isUnique": false
1138
- }
1139
- },
1140
- "foreignKeys": {
1141
- "user_artifacts_user_id_users_id_fk": {
1142
- "name": "user_artifacts_user_id_users_id_fk",
1143
- "tableFrom": "user_artifacts",
1144
- "tableTo": "users",
1145
- "columnsFrom": [
1146
- "user_id"
1147
- ],
1148
- "columnsTo": [
1149
- "id"
1150
- ],
1151
- "onDelete": "cascade",
1152
- "onUpdate": "no action"
1153
- },
1154
- "user_artifacts_user_concept_id_user_concepts_id_fk": {
1155
- "name": "user_artifacts_user_concept_id_user_concepts_id_fk",
1156
- "tableFrom": "user_artifacts",
1157
- "tableTo": "user_concepts",
1158
- "columnsFrom": [
1159
- "user_concept_id"
1160
- ],
1161
- "columnsTo": [
1162
- "id"
1163
- ],
1164
- "onDelete": "cascade",
1165
- "onUpdate": "no action"
1166
- },
1167
- "user_artifacts_artifact_id_artifacts_id_fk": {
1168
- "name": "user_artifacts_artifact_id_artifacts_id_fk",
1169
- "tableFrom": "user_artifacts",
1170
- "tableTo": "artifacts",
1171
- "columnsFrom": [
1172
- "artifact_id"
1173
- ],
1174
- "columnsTo": [
1175
- "id"
1176
- ],
1177
- "onDelete": "cascade",
1178
- "onUpdate": "no action"
1179
- }
1180
- },
1181
- "compositePrimaryKeys": {},
1182
- "uniqueConstraints": {},
1183
- "checkConstraints": {}
1184
- },
1185
- "user_concepts": {
1186
- "name": "user_concepts",
1187
- "columns": {
1188
- "id": {
1189
- "name": "id",
1190
- "type": "text",
1191
- "primaryKey": true,
1192
- "notNull": true,
1193
- "autoincrement": false
1194
- },
1195
- "user_id": {
1196
- "name": "user_id",
1197
- "type": "text",
1198
- "primaryKey": false,
1199
- "notNull": true,
1200
- "autoincrement": false
1201
- },
1202
- "concept_id": {
1203
- "name": "concept_id",
1204
- "type": "text",
1205
- "primaryKey": false,
1206
- "notNull": true,
1207
- "autoincrement": false
1208
- },
1209
- "concept_combination_id": {
1210
- "name": "concept_combination_id",
1211
- "type": "text",
1212
- "primaryKey": false,
1213
- "notNull": true,
1214
- "autoincrement": false
1215
- },
1216
- "created_at": {
1217
- "name": "created_at",
1218
- "type": "integer",
1219
- "primaryKey": false,
1220
- "notNull": true,
1221
- "autoincrement": false,
1222
- "default": "CURRENT_TIMESTAMP"
1223
- },
1224
- "updated_at": {
1225
- "name": "updated_at",
1226
- "type": "integer",
1227
- "primaryKey": false,
1228
- "notNull": true,
1229
- "autoincrement": false,
1230
- "default": "CURRENT_TIMESTAMP"
1231
- }
1232
- },
1233
- "indexes": {
1234
- "user_concepts_user_id_idx": {
1235
- "name": "user_concepts_user_id_idx",
1236
- "columns": [
1237
- "user_id"
1238
- ],
1239
- "isUnique": false
1240
- },
1241
- "user_concepts_concept_id_idx": {
1242
- "name": "user_concepts_concept_id_idx",
1243
- "columns": [
1244
- "concept_id"
1245
- ],
1246
- "isUnique": false
1247
- }
1248
- },
1249
- "foreignKeys": {
1250
- "user_concepts_user_id_users_id_fk": {
1251
- "name": "user_concepts_user_id_users_id_fk",
1252
- "tableFrom": "user_concepts",
1253
- "tableTo": "users",
1254
- "columnsFrom": [
1255
- "user_id"
1256
- ],
1257
- "columnsTo": [
1258
- "id"
1259
- ],
1260
- "onDelete": "cascade",
1261
- "onUpdate": "no action"
1262
- },
1263
- "user_concepts_concept_id_concepts_id_fk": {
1264
- "name": "user_concepts_concept_id_concepts_id_fk",
1265
- "tableFrom": "user_concepts",
1266
- "tableTo": "concepts",
1267
- "columnsFrom": [
1268
- "concept_id"
1269
- ],
1270
- "columnsTo": [
1271
- "id"
1272
- ],
1273
- "onDelete": "cascade",
1274
- "onUpdate": "no action"
1275
- },
1276
- "user_concepts_concept_combination_id_concept_combinations_id_fk": {
1277
- "name": "user_concepts_concept_combination_id_concept_combinations_id_fk",
1278
- "tableFrom": "user_concepts",
1279
- "tableTo": "concept_combinations",
1280
- "columnsFrom": [
1281
- "concept_combination_id"
1282
- ],
1283
- "columnsTo": [
1284
- "id"
1285
- ],
1286
- "onDelete": "cascade",
1287
- "onUpdate": "no action"
1288
- }
1289
- },
1290
- "compositePrimaryKeys": {},
1291
- "uniqueConstraints": {},
1292
- "checkConstraints": {}
1293
- },
1294
- "users": {
1295
- "name": "users",
1296
- "columns": {
1297
- "id": {
1298
- "name": "id",
1299
- "type": "text",
1300
- "primaryKey": true,
1301
- "notNull": true,
1302
- "autoincrement": false
1303
- },
1304
- "email": {
1305
- "name": "email",
1306
- "type": "text",
1307
- "primaryKey": false,
1308
- "notNull": true,
1309
- "autoincrement": false
1310
- },
1311
- "name": {
1312
- "name": "name",
1313
- "type": "text",
1314
- "primaryKey": false,
1315
- "notNull": true,
1316
- "autoincrement": false
1317
- },
1318
- "profile_image": {
1319
- "name": "profile_image",
1320
- "type": "text",
1321
- "primaryKey": false,
1322
- "notNull": false,
1323
- "autoincrement": false
1324
- },
1325
- "user_photo_id": {
1326
- "name": "user_photo_id",
1327
- "type": "text",
1328
- "primaryKey": false,
1329
- "notNull": false,
1330
- "autoincrement": false
1331
- },
1332
- "user_photo_url": {
1333
- "name": "user_photo_url",
1334
- "type": "text",
1335
- "primaryKey": false,
1336
- "notNull": false,
1337
- "autoincrement": false
1338
- },
1339
- "gender": {
1340
- "name": "gender",
1341
- "type": "text",
1342
- "primaryKey": false,
1343
- "notNull": false,
1344
- "autoincrement": false
1345
- },
1346
- "day": {
1347
- "name": "day",
1348
- "type": "integer",
1349
- "primaryKey": false,
1350
- "notNull": false,
1351
- "autoincrement": false
1352
- },
1353
- "month": {
1354
- "name": "month",
1355
- "type": "integer",
1356
- "primaryKey": false,
1357
- "notNull": false,
1358
- "autoincrement": false
1359
- },
1360
- "year": {
1361
- "name": "year",
1362
- "type": "integer",
1363
- "primaryKey": false,
1364
- "notNull": false,
1365
- "autoincrement": false
1366
- },
1367
- "hour": {
1368
- "name": "hour",
1369
- "type": "integer",
1370
- "primaryKey": false,
1371
- "notNull": false,
1372
- "autoincrement": false
1373
- },
1374
- "min": {
1375
- "name": "min",
1376
- "type": "integer",
1377
- "primaryKey": false,
1378
- "notNull": false,
1379
- "autoincrement": false
1380
- },
1381
- "latitude": {
1382
- "name": "latitude",
1383
- "type": "real",
1384
- "primaryKey": false,
1385
- "notNull": false,
1386
- "autoincrement": false
1387
- },
1388
- "longitude": {
1389
- "name": "longitude",
1390
- "type": "real",
1391
- "primaryKey": false,
1392
- "notNull": false,
1393
- "autoincrement": false
1394
- },
1395
- "tzone": {
1396
- "name": "tzone",
1397
- "type": "real",
1398
- "primaryKey": false,
1399
- "notNull": false,
1400
- "autoincrement": false
1401
- },
1402
- "instagram_username": {
1403
- "name": "instagram_username",
1404
- "type": "text",
1405
- "primaryKey": false,
1406
- "notNull": false,
1407
- "autoincrement": false
1408
- },
1409
- "credits_balance": {
1410
- "name": "credits_balance",
1411
- "type": "integer",
1412
- "primaryKey": false,
1413
- "notNull": false,
1414
- "autoincrement": false
1415
- },
1416
- "total_credits_earned": {
1417
- "name": "total_credits_earned",
1418
- "type": "integer",
1419
- "primaryKey": false,
1420
- "notNull": false,
1421
- "autoincrement": false,
1422
- "default": 0
1423
- },
1424
- "last_transaction_at": {
1425
- "name": "last_transaction_at",
1426
- "type": "integer",
1427
- "primaryKey": false,
1428
- "notNull": false,
1429
- "autoincrement": false
1430
- },
1431
- "created_at": {
1432
- "name": "created_at",
1433
- "type": "integer",
1434
- "primaryKey": false,
1435
- "notNull": true,
1436
- "autoincrement": false,
1437
- "default": "CURRENT_TIMESTAMP"
1438
- },
1439
- "updated_at": {
1440
- "name": "updated_at",
1441
- "type": "integer",
1442
- "primaryKey": false,
1443
- "notNull": true,
1444
- "autoincrement": false,
1445
- "default": "CURRENT_TIMESTAMP"
1446
- }
1447
- },
1448
- "indexes": {
1449
- "users_email_unique": {
1450
- "name": "users_email_unique",
1451
- "columns": [
1452
- "email"
1453
- ],
1454
- "isUnique": true
1455
- },
1456
- "users_email_idx": {
1457
- "name": "users_email_idx",
1458
- "columns": [
1459
- "email"
1460
- ],
1461
- "isUnique": false
1462
- }
1463
- },
1464
- "foreignKeys": {},
1465
- "compositePrimaryKeys": {},
1466
- "uniqueConstraints": {},
1467
- "checkConstraints": {}
1468
- }
1469
- },
1470
- "views": {},
1471
- "enums": {},
1472
- "_meta": {
1473
- "schemas": {},
1474
- "tables": {},
1475
- "columns": {}
1476
- },
1477
- "internal": {
1478
- "indexes": {}
1479
- }
1480
- }