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