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