@zodic/shared 0.0.12 → 0.0.14

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,9 +1,758 @@
1
1
  {
2
2
  "version": "6",
3
3
  "dialect": "sqlite",
4
- "id": "ebd56564-96c0-4785-a419-40258282dbc0",
4
+ "id": "354158b6-9733-4c5d-848c-9616374861d1",
5
5
  "prevId": "00000000-0000-0000-0000-000000000000",
6
6
  "tables": {
7
+ "artifacts": {
8
+ "name": "artifacts",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "name": {
18
+ "name": "name",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "slug": {
25
+ "name": "slug",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "concept_id": {
32
+ "name": "concept_id",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "description": {
39
+ "name": "description",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false
44
+ },
45
+ "price": {
46
+ "name": "price",
47
+ "type": "integer",
48
+ "primaryKey": false,
49
+ "notNull": true,
50
+ "autoincrement": false
51
+ },
52
+ "promotion_price": {
53
+ "name": "promotion_price",
54
+ "type": "integer",
55
+ "primaryKey": false,
56
+ "notNull": false,
57
+ "autoincrement": false
58
+ },
59
+ "created_at": {
60
+ "name": "created_at",
61
+ "type": "integer",
62
+ "primaryKey": false,
63
+ "notNull": false,
64
+ "autoincrement": false,
65
+ "default": "CURRENT_TIMESTAMP"
66
+ }
67
+ },
68
+ "indexes": {
69
+ "artifacts_concept_id_idx": {
70
+ "name": "artifacts_concept_id_idx",
71
+ "columns": [
72
+ "concept_id"
73
+ ],
74
+ "isUnique": false
75
+ }
76
+ },
77
+ "foreignKeys": {
78
+ "artifacts_concept_id_concepts_id_fk": {
79
+ "name": "artifacts_concept_id_concepts_id_fk",
80
+ "tableFrom": "artifacts",
81
+ "tableTo": "concepts",
82
+ "columnsFrom": [
83
+ "concept_id"
84
+ ],
85
+ "columnsTo": [
86
+ "id"
87
+ ],
88
+ "onDelete": "cascade",
89
+ "onUpdate": "no action"
90
+ }
91
+ },
92
+ "compositePrimaryKeys": {},
93
+ "uniqueConstraints": {},
94
+ "checkConstraints": {}
95
+ },
96
+ "astro_features": {
97
+ "name": "astro_features",
98
+ "columns": {
99
+ "id": {
100
+ "name": "id",
101
+ "type": "text",
102
+ "primaryKey": true,
103
+ "notNull": true,
104
+ "autoincrement": false
105
+ },
106
+ "user_id": {
107
+ "name": "user_id",
108
+ "type": "text",
109
+ "primaryKey": false,
110
+ "notNull": true,
111
+ "autoincrement": false
112
+ },
113
+ "feature_type": {
114
+ "name": "feature_type",
115
+ "type": "text",
116
+ "primaryKey": false,
117
+ "notNull": true,
118
+ "autoincrement": false
119
+ },
120
+ "name": {
121
+ "name": "name",
122
+ "type": "text",
123
+ "primaryKey": false,
124
+ "notNull": true,
125
+ "autoincrement": false
126
+ },
127
+ "description": {
128
+ "name": "description",
129
+ "type": "text",
130
+ "primaryKey": false,
131
+ "notNull": false,
132
+ "autoincrement": false
133
+ },
134
+ "percentage": {
135
+ "name": "percentage",
136
+ "type": "real",
137
+ "primaryKey": false,
138
+ "notNull": false,
139
+ "autoincrement": false
140
+ },
141
+ "order": {
142
+ "name": "order",
143
+ "type": "integer",
144
+ "primaryKey": false,
145
+ "notNull": true,
146
+ "autoincrement": false
147
+ },
148
+ "prominent_id": {
149
+ "name": "prominent_id",
150
+ "type": "integer",
151
+ "primaryKey": false,
152
+ "notNull": false,
153
+ "autoincrement": false
154
+ }
155
+ },
156
+ "indexes": {
157
+ "astro_features_user_id_idx": {
158
+ "name": "astro_features_user_id_idx",
159
+ "columns": [
160
+ "user_id"
161
+ ],
162
+ "isUnique": false
163
+ }
164
+ },
165
+ "foreignKeys": {
166
+ "astro_features_user_id_users_id_fk": {
167
+ "name": "astro_features_user_id_users_id_fk",
168
+ "tableFrom": "astro_features",
169
+ "tableTo": "users",
170
+ "columnsFrom": [
171
+ "user_id"
172
+ ],
173
+ "columnsTo": [
174
+ "id"
175
+ ],
176
+ "onDelete": "cascade",
177
+ "onUpdate": "no action"
178
+ }
179
+ },
180
+ "compositePrimaryKeys": {},
181
+ "uniqueConstraints": {},
182
+ "checkConstraints": {}
183
+ },
184
+ "astro_houses": {
185
+ "name": "astro_houses",
186
+ "columns": {
187
+ "id": {
188
+ "name": "id",
189
+ "type": "text",
190
+ "primaryKey": true,
191
+ "notNull": true,
192
+ "autoincrement": false
193
+ },
194
+ "user_id": {
195
+ "name": "user_id",
196
+ "type": "text",
197
+ "primaryKey": false,
198
+ "notNull": true,
199
+ "autoincrement": false
200
+ },
201
+ "house": {
202
+ "name": "house",
203
+ "type": "integer",
204
+ "primaryKey": false,
205
+ "notNull": true,
206
+ "autoincrement": false
207
+ },
208
+ "sign": {
209
+ "name": "sign",
210
+ "type": "text",
211
+ "primaryKey": false,
212
+ "notNull": true,
213
+ "autoincrement": false
214
+ },
215
+ "degree": {
216
+ "name": "degree",
217
+ "type": "real",
218
+ "primaryKey": false,
219
+ "notNull": true,
220
+ "autoincrement": false
221
+ },
222
+ "sign_report": {
223
+ "name": "sign_report",
224
+ "type": "text",
225
+ "primaryKey": false,
226
+ "notNull": false,
227
+ "autoincrement": false
228
+ }
229
+ },
230
+ "indexes": {
231
+ "astro_houses_user_id_idx": {
232
+ "name": "astro_houses_user_id_idx",
233
+ "columns": [
234
+ "user_id"
235
+ ],
236
+ "isUnique": false
237
+ }
238
+ },
239
+ "foreignKeys": {
240
+ "astro_houses_user_id_users_id_fk": {
241
+ "name": "astro_houses_user_id_users_id_fk",
242
+ "tableFrom": "astro_houses",
243
+ "tableTo": "users",
244
+ "columnsFrom": [
245
+ "user_id"
246
+ ],
247
+ "columnsTo": [
248
+ "id"
249
+ ],
250
+ "onDelete": "cascade",
251
+ "onUpdate": "no action"
252
+ }
253
+ },
254
+ "compositePrimaryKeys": {},
255
+ "uniqueConstraints": {},
256
+ "checkConstraints": {}
257
+ },
258
+ "astro_planets": {
259
+ "name": "astro_planets",
260
+ "columns": {
261
+ "id": {
262
+ "name": "id",
263
+ "type": "text",
264
+ "primaryKey": true,
265
+ "notNull": true,
266
+ "autoincrement": false
267
+ },
268
+ "user_id": {
269
+ "name": "user_id",
270
+ "type": "text",
271
+ "primaryKey": false,
272
+ "notNull": true,
273
+ "autoincrement": false
274
+ },
275
+ "type": {
276
+ "name": "type",
277
+ "type": "text",
278
+ "primaryKey": false,
279
+ "notNull": true,
280
+ "autoincrement": false
281
+ },
282
+ "name": {
283
+ "name": "name",
284
+ "type": "text",
285
+ "primaryKey": false,
286
+ "notNull": true,
287
+ "autoincrement": false
288
+ },
289
+ "sign": {
290
+ "name": "sign",
291
+ "type": "text",
292
+ "primaryKey": false,
293
+ "notNull": true,
294
+ "autoincrement": false
295
+ },
296
+ "house": {
297
+ "name": "house",
298
+ "type": "integer",
299
+ "primaryKey": false,
300
+ "notNull": true,
301
+ "autoincrement": false
302
+ },
303
+ "full_degree": {
304
+ "name": "full_degree",
305
+ "type": "real",
306
+ "primaryKey": false,
307
+ "notNull": false,
308
+ "autoincrement": false
309
+ },
310
+ "norm_degree": {
311
+ "name": "norm_degree",
312
+ "type": "real",
313
+ "primaryKey": false,
314
+ "notNull": false,
315
+ "autoincrement": false
316
+ },
317
+ "speed": {
318
+ "name": "speed",
319
+ "type": "real",
320
+ "primaryKey": false,
321
+ "notNull": false,
322
+ "autoincrement": false
323
+ },
324
+ "is_retro": {
325
+ "name": "is_retro",
326
+ "type": "integer",
327
+ "primaryKey": false,
328
+ "notNull": false,
329
+ "autoincrement": false
330
+ },
331
+ "sign_report": {
332
+ "name": "sign_report",
333
+ "type": "text",
334
+ "primaryKey": false,
335
+ "notNull": false,
336
+ "autoincrement": false
337
+ },
338
+ "house_report": {
339
+ "name": "house_report",
340
+ "type": "text",
341
+ "primaryKey": false,
342
+ "notNull": false,
343
+ "autoincrement": false
344
+ }
345
+ },
346
+ "indexes": {
347
+ "astro_planets_user_id_idx": {
348
+ "name": "astro_planets_user_id_idx",
349
+ "columns": [
350
+ "user_id"
351
+ ],
352
+ "isUnique": false
353
+ }
354
+ },
355
+ "foreignKeys": {
356
+ "astro_planets_user_id_users_id_fk": {
357
+ "name": "astro_planets_user_id_users_id_fk",
358
+ "tableFrom": "astro_planets",
359
+ "tableTo": "users",
360
+ "columnsFrom": [
361
+ "user_id"
362
+ ],
363
+ "columnsTo": [
364
+ "id"
365
+ ],
366
+ "onDelete": "cascade",
367
+ "onUpdate": "no action"
368
+ }
369
+ },
370
+ "compositePrimaryKeys": {},
371
+ "uniqueConstraints": {},
372
+ "checkConstraints": {}
373
+ },
374
+ "concept_combinations": {
375
+ "name": "concept_combinations",
376
+ "columns": {
377
+ "id": {
378
+ "name": "id",
379
+ "type": "text",
380
+ "primaryKey": true,
381
+ "notNull": true,
382
+ "autoincrement": false
383
+ },
384
+ "concept_id": {
385
+ "name": "concept_id",
386
+ "type": "text",
387
+ "primaryKey": false,
388
+ "notNull": true,
389
+ "autoincrement": false
390
+ },
391
+ "planet1_sign": {
392
+ "name": "planet1_sign",
393
+ "type": "text",
394
+ "primaryKey": false,
395
+ "notNull": true,
396
+ "autoincrement": false
397
+ },
398
+ "planet2_sign": {
399
+ "name": "planet2_sign",
400
+ "type": "text",
401
+ "primaryKey": false,
402
+ "notNull": true,
403
+ "autoincrement": false
404
+ },
405
+ "planet3_sign": {
406
+ "name": "planet3_sign",
407
+ "type": "text",
408
+ "primaryKey": false,
409
+ "notNull": true,
410
+ "autoincrement": false
411
+ },
412
+ "combination_string": {
413
+ "name": "combination_string",
414
+ "type": "text",
415
+ "primaryKey": false,
416
+ "notNull": true,
417
+ "autoincrement": false
418
+ }
419
+ },
420
+ "indexes": {
421
+ "concept_combinations_unique_combination_idx": {
422
+ "name": "concept_combinations_unique_combination_idx",
423
+ "columns": [
424
+ "concept_id",
425
+ "combination_string"
426
+ ],
427
+ "isUnique": false
428
+ }
429
+ },
430
+ "foreignKeys": {
431
+ "concept_combinations_concept_id_concepts_id_fk": {
432
+ "name": "concept_combinations_concept_id_concepts_id_fk",
433
+ "tableFrom": "concept_combinations",
434
+ "tableTo": "concepts",
435
+ "columnsFrom": [
436
+ "concept_id"
437
+ ],
438
+ "columnsTo": [
439
+ "id"
440
+ ],
441
+ "onDelete": "cascade",
442
+ "onUpdate": "no action"
443
+ }
444
+ },
445
+ "compositePrimaryKeys": {},
446
+ "uniqueConstraints": {},
447
+ "checkConstraints": {}
448
+ },
449
+ "concepts": {
450
+ "name": "concepts",
451
+ "columns": {
452
+ "id": {
453
+ "name": "id",
454
+ "type": "text",
455
+ "primaryKey": true,
456
+ "notNull": true,
457
+ "autoincrement": false
458
+ },
459
+ "name": {
460
+ "name": "name",
461
+ "type": "text",
462
+ "primaryKey": false,
463
+ "notNull": true,
464
+ "autoincrement": false
465
+ },
466
+ "slug": {
467
+ "name": "slug",
468
+ "type": "text",
469
+ "primaryKey": false,
470
+ "notNull": true,
471
+ "autoincrement": false
472
+ },
473
+ "planet1": {
474
+ "name": "planet1",
475
+ "type": "text",
476
+ "primaryKey": false,
477
+ "notNull": true,
478
+ "autoincrement": false
479
+ },
480
+ "planet2": {
481
+ "name": "planet2",
482
+ "type": "text",
483
+ "primaryKey": false,
484
+ "notNull": true,
485
+ "autoincrement": false
486
+ },
487
+ "planet3": {
488
+ "name": "planet3",
489
+ "type": "text",
490
+ "primaryKey": false,
491
+ "notNull": false,
492
+ "autoincrement": false
493
+ }
494
+ },
495
+ "indexes": {
496
+ "concepts_name_idx": {
497
+ "name": "concepts_name_idx",
498
+ "columns": [
499
+ "name"
500
+ ],
501
+ "isUnique": false
502
+ }
503
+ },
504
+ "foreignKeys": {},
505
+ "compositePrimaryKeys": {},
506
+ "uniqueConstraints": {},
507
+ "checkConstraints": {}
508
+ },
509
+ "credits_transactions": {
510
+ "name": "credits_transactions",
511
+ "columns": {
512
+ "id": {
513
+ "name": "id",
514
+ "type": "text",
515
+ "primaryKey": true,
516
+ "notNull": true,
517
+ "autoincrement": false
518
+ },
519
+ "user_id": {
520
+ "name": "user_id",
521
+ "type": "text",
522
+ "primaryKey": false,
523
+ "notNull": true,
524
+ "autoincrement": false
525
+ },
526
+ "type": {
527
+ "name": "type",
528
+ "type": "text",
529
+ "primaryKey": false,
530
+ "notNull": true,
531
+ "autoincrement": false
532
+ },
533
+ "amount": {
534
+ "name": "amount",
535
+ "type": "integer",
536
+ "primaryKey": false,
537
+ "notNull": true,
538
+ "autoincrement": false
539
+ },
540
+ "description": {
541
+ "name": "description",
542
+ "type": "text",
543
+ "primaryKey": false,
544
+ "notNull": false,
545
+ "autoincrement": false
546
+ },
547
+ "product_type": {
548
+ "name": "product_type",
549
+ "type": "text",
550
+ "primaryKey": false,
551
+ "notNull": false,
552
+ "autoincrement": false
553
+ },
554
+ "product_id": {
555
+ "name": "product_id",
556
+ "type": "text",
557
+ "primaryKey": false,
558
+ "notNull": false,
559
+ "autoincrement": false
560
+ },
561
+ "payment_id": {
562
+ "name": "payment_id",
563
+ "type": "text",
564
+ "primaryKey": false,
565
+ "notNull": false,
566
+ "autoincrement": false
567
+ },
568
+ "created_at": {
569
+ "name": "created_at",
570
+ "type": "integer",
571
+ "primaryKey": false,
572
+ "notNull": false,
573
+ "autoincrement": false,
574
+ "default": "CURRENT_TIMESTAMP"
575
+ }
576
+ },
577
+ "indexes": {
578
+ "credits_transactions_user_id_idx": {
579
+ "name": "credits_transactions_user_id_idx",
580
+ "columns": [
581
+ "user_id"
582
+ ],
583
+ "isUnique": false
584
+ }
585
+ },
586
+ "foreignKeys": {
587
+ "credits_transactions_user_id_users_id_fk": {
588
+ "name": "credits_transactions_user_id_users_id_fk",
589
+ "tableFrom": "credits_transactions",
590
+ "tableTo": "users",
591
+ "columnsFrom": [
592
+ "user_id"
593
+ ],
594
+ "columnsTo": [
595
+ "id"
596
+ ],
597
+ "onDelete": "cascade",
598
+ "onUpdate": "no action"
599
+ }
600
+ },
601
+ "compositePrimaryKeys": {},
602
+ "uniqueConstraints": {},
603
+ "checkConstraints": {}
604
+ },
605
+ "generations": {
606
+ "name": "generations",
607
+ "columns": {
608
+ "id": {
609
+ "name": "id",
610
+ "type": "text",
611
+ "primaryKey": true,
612
+ "notNull": true,
613
+ "autoincrement": false
614
+ },
615
+ "user_id": {
616
+ "name": "user_id",
617
+ "type": "text",
618
+ "primaryKey": false,
619
+ "notNull": true,
620
+ "autoincrement": false
621
+ },
622
+ "artifact_id": {
623
+ "name": "artifact_id",
624
+ "type": "text",
625
+ "primaryKey": false,
626
+ "notNull": false,
627
+ "autoincrement": false
628
+ },
629
+ "user_artifact_id": {
630
+ "name": "user_artifact_id",
631
+ "type": "text",
632
+ "primaryKey": false,
633
+ "notNull": false,
634
+ "autoincrement": false
635
+ },
636
+ "concept_combination_id": {
637
+ "name": "concept_combination_id",
638
+ "type": "text",
639
+ "primaryKey": false,
640
+ "notNull": false,
641
+ "autoincrement": false
642
+ },
643
+ "type": {
644
+ "name": "type",
645
+ "type": "text",
646
+ "primaryKey": false,
647
+ "notNull": true,
648
+ "autoincrement": false
649
+ },
650
+ "status": {
651
+ "name": "status",
652
+ "type": "text",
653
+ "primaryKey": false,
654
+ "notNull": true,
655
+ "autoincrement": false,
656
+ "default": "'pending'"
657
+ },
658
+ "url": {
659
+ "name": "url",
660
+ "type": "text",
661
+ "primaryKey": false,
662
+ "notNull": false,
663
+ "autoincrement": false
664
+ },
665
+ "created_at": {
666
+ "name": "created_at",
667
+ "type": "integer",
668
+ "primaryKey": false,
669
+ "notNull": false,
670
+ "autoincrement": false,
671
+ "default": "CURRENT_TIMESTAMP"
672
+ },
673
+ "updated_at": {
674
+ "name": "updated_at",
675
+ "type": "integer",
676
+ "primaryKey": false,
677
+ "notNull": false,
678
+ "autoincrement": false,
679
+ "default": "CURRENT_TIMESTAMP"
680
+ }
681
+ },
682
+ "indexes": {
683
+ "generations_user_id_idx": {
684
+ "name": "generations_user_id_idx",
685
+ "columns": [
686
+ "user_id"
687
+ ],
688
+ "isUnique": false
689
+ },
690
+ "generations_concept_combination_id_idx": {
691
+ "name": "generations_concept_combination_id_idx",
692
+ "columns": [
693
+ "concept_combination_id"
694
+ ],
695
+ "isUnique": false
696
+ }
697
+ },
698
+ "foreignKeys": {
699
+ "generations_user_id_users_id_fk": {
700
+ "name": "generations_user_id_users_id_fk",
701
+ "tableFrom": "generations",
702
+ "tableTo": "users",
703
+ "columnsFrom": [
704
+ "user_id"
705
+ ],
706
+ "columnsTo": [
707
+ "id"
708
+ ],
709
+ "onDelete": "cascade",
710
+ "onUpdate": "no action"
711
+ },
712
+ "generations_artifact_id_artifacts_id_fk": {
713
+ "name": "generations_artifact_id_artifacts_id_fk",
714
+ "tableFrom": "generations",
715
+ "tableTo": "artifacts",
716
+ "columnsFrom": [
717
+ "artifact_id"
718
+ ],
719
+ "columnsTo": [
720
+ "id"
721
+ ],
722
+ "onDelete": "cascade",
723
+ "onUpdate": "no action"
724
+ },
725
+ "generations_user_artifact_id_user_artifacts_id_fk": {
726
+ "name": "generations_user_artifact_id_user_artifacts_id_fk",
727
+ "tableFrom": "generations",
728
+ "tableTo": "user_artifacts",
729
+ "columnsFrom": [
730
+ "user_artifact_id"
731
+ ],
732
+ "columnsTo": [
733
+ "id"
734
+ ],
735
+ "onDelete": "cascade",
736
+ "onUpdate": "no action"
737
+ },
738
+ "generations_concept_combination_id_concept_combinations_id_fk": {
739
+ "name": "generations_concept_combination_id_concept_combinations_id_fk",
740
+ "tableFrom": "generations",
741
+ "tableTo": "concept_combinations",
742
+ "columnsFrom": [
743
+ "concept_combination_id"
744
+ ],
745
+ "columnsTo": [
746
+ "id"
747
+ ],
748
+ "onDelete": "cascade",
749
+ "onUpdate": "no action"
750
+ }
751
+ },
752
+ "compositePrimaryKeys": {},
753
+ "uniqueConstraints": {},
754
+ "checkConstraints": {}
755
+ },
7
756
  "tokens": {
8
757
  "name": "tokens",
9
758
  "columns": {
@@ -28,23 +777,205 @@
28
777
  "notNull": true,
29
778
  "autoincrement": false
30
779
  },
780
+ "expires_at": {
781
+ "name": "expires_at",
782
+ "type": "text",
783
+ "primaryKey": false,
784
+ "notNull": true,
785
+ "autoincrement": false
786
+ },
31
787
  "created_at": {
32
788
  "name": "created_at",
33
789
  "type": "text",
34
790
  "primaryKey": false,
791
+ "notNull": true,
792
+ "autoincrement": false,
793
+ "default": "CURRENT_TIMESTAMP"
794
+ }
795
+ },
796
+ "indexes": {
797
+ "tokens_refresh_token_unique": {
798
+ "name": "tokens_refresh_token_unique",
799
+ "columns": [
800
+ "refresh_token"
801
+ ],
802
+ "isUnique": true
803
+ },
804
+ "tokens_user_id_idx": {
805
+ "name": "tokens_user_id_idx",
806
+ "columns": [
807
+ "user_id"
808
+ ],
809
+ "isUnique": false
810
+ }
811
+ },
812
+ "foreignKeys": {
813
+ "tokens_user_id_users_id_fk": {
814
+ "name": "tokens_user_id_users_id_fk",
815
+ "tableFrom": "tokens",
816
+ "tableTo": "users",
817
+ "columnsFrom": [
818
+ "user_id"
819
+ ],
820
+ "columnsTo": [
821
+ "id"
822
+ ],
823
+ "onDelete": "cascade",
824
+ "onUpdate": "no action"
825
+ }
826
+ },
827
+ "compositePrimaryKeys": {},
828
+ "uniqueConstraints": {},
829
+ "checkConstraints": {}
830
+ },
831
+ "user_artifacts": {
832
+ "name": "user_artifacts",
833
+ "columns": {
834
+ "id": {
835
+ "name": "id",
836
+ "type": "text",
837
+ "primaryKey": true,
838
+ "notNull": true,
839
+ "autoincrement": false
840
+ },
841
+ "user_id": {
842
+ "name": "user_id",
843
+ "type": "text",
844
+ "primaryKey": false,
845
+ "notNull": true,
846
+ "autoincrement": false
847
+ },
848
+ "artifact_id": {
849
+ "name": "artifact_id",
850
+ "type": "text",
851
+ "primaryKey": false,
852
+ "notNull": true,
853
+ "autoincrement": false
854
+ },
855
+ "gender": {
856
+ "name": "gender",
857
+ "type": "text",
858
+ "primaryKey": false,
859
+ "notNull": true,
860
+ "autoincrement": false
861
+ },
862
+ "archetype_id": {
863
+ "name": "archetype_id",
864
+ "type": "text",
865
+ "primaryKey": false,
866
+ "notNull": true,
867
+ "autoincrement": false
868
+ },
869
+ "post_image_url": {
870
+ "name": "post_image_url",
871
+ "type": "text",
872
+ "primaryKey": false,
873
+ "notNull": false,
874
+ "autoincrement": false
875
+ },
876
+ "reel_image_url": {
877
+ "name": "reel_image_url",
878
+ "type": "text",
879
+ "primaryKey": false,
880
+ "notNull": false,
881
+ "autoincrement": false
882
+ },
883
+ "post_generation_id": {
884
+ "name": "post_generation_id",
885
+ "type": "text",
886
+ "primaryKey": false,
887
+ "notNull": false,
888
+ "autoincrement": false
889
+ },
890
+ "reel_generation_id": {
891
+ "name": "reel_generation_id",
892
+ "type": "text",
893
+ "primaryKey": false,
894
+ "notNull": false,
895
+ "autoincrement": false
896
+ },
897
+ "status": {
898
+ "name": "status",
899
+ "type": "text",
900
+ "primaryKey": false,
901
+ "notNull": true,
902
+ "autoincrement": false,
903
+ "default": "'pending'"
904
+ },
905
+ "created_at": {
906
+ "name": "created_at",
907
+ "type": "integer",
908
+ "primaryKey": false,
909
+ "notNull": false,
910
+ "autoincrement": false,
911
+ "default": "CURRENT_TIMESTAMP"
912
+ },
913
+ "updated_at": {
914
+ "name": "updated_at",
915
+ "type": "integer",
916
+ "primaryKey": false,
35
917
  "notNull": false,
36
918
  "autoincrement": false,
37
- "default": "'CURRENT_TIMESTAMP'"
919
+ "default": "CURRENT_TIMESTAMP"
920
+ }
921
+ },
922
+ "indexes": {
923
+ "user_artifacts_user_id_idx": {
924
+ "name": "user_artifacts_user_id_idx",
925
+ "columns": [
926
+ "user_id"
927
+ ],
928
+ "isUnique": false
929
+ },
930
+ "user_artifacts_artifact_id_idx": {
931
+ "name": "user_artifacts_artifact_id_idx",
932
+ "columns": [
933
+ "artifact_id"
934
+ ],
935
+ "isUnique": false
936
+ },
937
+ "user_artifacts_status_idx": {
938
+ "name": "user_artifacts_status_idx",
939
+ "columns": [
940
+ "status"
941
+ ],
942
+ "isUnique": false
943
+ }
944
+ },
945
+ "foreignKeys": {
946
+ "user_artifacts_user_id_users_id_fk": {
947
+ "name": "user_artifacts_user_id_users_id_fk",
948
+ "tableFrom": "user_artifacts",
949
+ "tableTo": "users",
950
+ "columnsFrom": [
951
+ "user_id"
952
+ ],
953
+ "columnsTo": [
954
+ "id"
955
+ ],
956
+ "onDelete": "cascade",
957
+ "onUpdate": "no action"
958
+ },
959
+ "user_artifacts_artifact_id_artifacts_id_fk": {
960
+ "name": "user_artifacts_artifact_id_artifacts_id_fk",
961
+ "tableFrom": "user_artifacts",
962
+ "tableTo": "artifacts",
963
+ "columnsFrom": [
964
+ "artifact_id"
965
+ ],
966
+ "columnsTo": [
967
+ "id"
968
+ ],
969
+ "onDelete": "cascade",
970
+ "onUpdate": "no action"
38
971
  }
39
972
  },
40
- "indexes": {},
41
- "foreignKeys": {},
42
973
  "compositePrimaryKeys": {},
43
974
  "uniqueConstraints": {},
44
975
  "checkConstraints": {}
45
976
  },
46
- "users_table": {
47
- "name": "users_table",
977
+ "user_concepts": {
978
+ "name": "user_concepts",
48
979
  "columns": {
49
980
  "id": {
50
981
  "name": "id",
@@ -53,17 +984,112 @@
53
984
  "notNull": true,
54
985
  "autoincrement": false
55
986
  },
56
- "name": {
57
- "name": "name",
987
+ "user_id": {
988
+ "name": "user_id",
989
+ "type": "text",
990
+ "primaryKey": false,
991
+ "notNull": true,
992
+ "autoincrement": false
993
+ },
994
+ "concept_id": {
995
+ "name": "concept_id",
58
996
  "type": "text",
59
997
  "primaryKey": false,
60
998
  "notNull": true,
61
999
  "autoincrement": false
62
1000
  },
63
- "age": {
64
- "name": "age",
1001
+ "concept_combination_id": {
1002
+ "name": "concept_combination_id",
1003
+ "type": "text",
1004
+ "primaryKey": false,
1005
+ "notNull": true,
1006
+ "autoincrement": false
1007
+ },
1008
+ "created_at": {
1009
+ "name": "created_at",
1010
+ "type": "integer",
1011
+ "primaryKey": false,
1012
+ "notNull": false,
1013
+ "autoincrement": false,
1014
+ "default": "CURRENT_TIMESTAMP"
1015
+ },
1016
+ "updated_at": {
1017
+ "name": "updated_at",
65
1018
  "type": "integer",
66
1019
  "primaryKey": false,
1020
+ "notNull": false,
1021
+ "autoincrement": false,
1022
+ "default": "CURRENT_TIMESTAMP"
1023
+ }
1024
+ },
1025
+ "indexes": {
1026
+ "user_concepts_user_id_idx": {
1027
+ "name": "user_concepts_user_id_idx",
1028
+ "columns": [
1029
+ "user_id"
1030
+ ],
1031
+ "isUnique": false
1032
+ },
1033
+ "user_concepts_concept_id_idx": {
1034
+ "name": "user_concepts_concept_id_idx",
1035
+ "columns": [
1036
+ "concept_id"
1037
+ ],
1038
+ "isUnique": false
1039
+ }
1040
+ },
1041
+ "foreignKeys": {
1042
+ "user_concepts_user_id_users_id_fk": {
1043
+ "name": "user_concepts_user_id_users_id_fk",
1044
+ "tableFrom": "user_concepts",
1045
+ "tableTo": "users",
1046
+ "columnsFrom": [
1047
+ "user_id"
1048
+ ],
1049
+ "columnsTo": [
1050
+ "id"
1051
+ ],
1052
+ "onDelete": "cascade",
1053
+ "onUpdate": "no action"
1054
+ },
1055
+ "user_concepts_concept_id_concepts_id_fk": {
1056
+ "name": "user_concepts_concept_id_concepts_id_fk",
1057
+ "tableFrom": "user_concepts",
1058
+ "tableTo": "concepts",
1059
+ "columnsFrom": [
1060
+ "concept_id"
1061
+ ],
1062
+ "columnsTo": [
1063
+ "id"
1064
+ ],
1065
+ "onDelete": "cascade",
1066
+ "onUpdate": "no action"
1067
+ },
1068
+ "user_concepts_concept_combination_id_concept_combinations_id_fk": {
1069
+ "name": "user_concepts_concept_combination_id_concept_combinations_id_fk",
1070
+ "tableFrom": "user_concepts",
1071
+ "tableTo": "concept_combinations",
1072
+ "columnsFrom": [
1073
+ "concept_combination_id"
1074
+ ],
1075
+ "columnsTo": [
1076
+ "id"
1077
+ ],
1078
+ "onDelete": "cascade",
1079
+ "onUpdate": "no action"
1080
+ }
1081
+ },
1082
+ "compositePrimaryKeys": {},
1083
+ "uniqueConstraints": {},
1084
+ "checkConstraints": {}
1085
+ },
1086
+ "users": {
1087
+ "name": "users",
1088
+ "columns": {
1089
+ "id": {
1090
+ "name": "id",
1091
+ "type": "text",
1092
+ "primaryKey": true,
67
1093
  "notNull": true,
68
1094
  "autoincrement": false
69
1095
  },
@@ -74,51 +1100,149 @@
74
1100
  "notNull": true,
75
1101
  "autoincrement": false
76
1102
  },
77
- "birthday": {
78
- "name": "birthday",
1103
+ "name": {
1104
+ "name": "name",
1105
+ "type": "text",
1106
+ "primaryKey": false,
1107
+ "notNull": true,
1108
+ "autoincrement": false
1109
+ },
1110
+ "profile_image": {
1111
+ "name": "profile_image",
79
1112
  "type": "text",
80
1113
  "primaryKey": false,
81
1114
  "notNull": false,
82
1115
  "autoincrement": false
83
1116
  },
84
- "birth_time": {
85
- "name": "birth_time",
1117
+ "user_photo_id": {
1118
+ "name": "user_photo_id",
86
1119
  "type": "text",
87
1120
  "primaryKey": false,
88
1121
  "notNull": false,
89
1122
  "autoincrement": false
90
1123
  },
91
- "crown": {
92
- "name": "crown",
1124
+ "user_photo_url": {
1125
+ "name": "user_photo_url",
93
1126
  "type": "text",
94
1127
  "primaryKey": false,
95
1128
  "notNull": false,
96
1129
  "autoincrement": false
97
1130
  },
98
- "createdAt": {
99
- "name": "createdAt",
1131
+ "gender": {
1132
+ "name": "gender",
100
1133
  "type": "text",
101
1134
  "primaryKey": false,
102
- "notNull": true,
103
- "autoincrement": false,
104
- "default": "CURRENT_TIMESTAMP"
1135
+ "notNull": false,
1136
+ "autoincrement": false
1137
+ },
1138
+ "day": {
1139
+ "name": "day",
1140
+ "type": "integer",
1141
+ "primaryKey": false,
1142
+ "notNull": false,
1143
+ "autoincrement": false
1144
+ },
1145
+ "month": {
1146
+ "name": "month",
1147
+ "type": "integer",
1148
+ "primaryKey": false,
1149
+ "notNull": false,
1150
+ "autoincrement": false
1151
+ },
1152
+ "year": {
1153
+ "name": "year",
1154
+ "type": "integer",
1155
+ "primaryKey": false,
1156
+ "notNull": false,
1157
+ "autoincrement": false
1158
+ },
1159
+ "hour": {
1160
+ "name": "hour",
1161
+ "type": "integer",
1162
+ "primaryKey": false,
1163
+ "notNull": false,
1164
+ "autoincrement": false
1165
+ },
1166
+ "min": {
1167
+ "name": "min",
1168
+ "type": "integer",
1169
+ "primaryKey": false,
1170
+ "notNull": false,
1171
+ "autoincrement": false
1172
+ },
1173
+ "latitude": {
1174
+ "name": "latitude",
1175
+ "type": "real",
1176
+ "primaryKey": false,
1177
+ "notNull": false,
1178
+ "autoincrement": false
1179
+ },
1180
+ "longitude": {
1181
+ "name": "longitude",
1182
+ "type": "real",
1183
+ "primaryKey": false,
1184
+ "notNull": false,
1185
+ "autoincrement": false
1186
+ },
1187
+ "tzone": {
1188
+ "name": "tzone",
1189
+ "type": "real",
1190
+ "primaryKey": false,
1191
+ "notNull": false,
1192
+ "autoincrement": false
105
1193
  },
106
- "updatedAt": {
107
- "name": "updatedAt",
1194
+ "instagram_username": {
1195
+ "name": "instagram_username",
108
1196
  "type": "text",
109
1197
  "primaryKey": false,
110
1198
  "notNull": false,
1199
+ "autoincrement": false
1200
+ },
1201
+ "credits_balance": {
1202
+ "name": "credits_balance",
1203
+ "type": "integer",
1204
+ "primaryKey": false,
1205
+ "notNull": false,
1206
+ "autoincrement": false
1207
+ },
1208
+ "total_credits_earned": {
1209
+ "name": "total_credits_earned",
1210
+ "type": "integer",
1211
+ "primaryKey": false,
1212
+ "notNull": false,
1213
+ "autoincrement": false,
1214
+ "default": 0
1215
+ },
1216
+ "last_transaction_at": {
1217
+ "name": "last_transaction_at",
1218
+ "type": "integer",
1219
+ "primaryKey": false,
1220
+ "notNull": false,
1221
+ "autoincrement": false
1222
+ },
1223
+ "created_at": {
1224
+ "name": "created_at",
1225
+ "type": "text",
1226
+ "primaryKey": false,
1227
+ "notNull": true,
111
1228
  "autoincrement": false,
112
1229
  "default": "CURRENT_TIMESTAMP"
113
1230
  }
114
1231
  },
115
1232
  "indexes": {
116
- "users_table_email_unique": {
117
- "name": "users_table_email_unique",
1233
+ "users_email_unique": {
1234
+ "name": "users_email_unique",
118
1235
  "columns": [
119
1236
  "email"
120
1237
  ],
121
1238
  "isUnique": true
1239
+ },
1240
+ "users_email_idx": {
1241
+ "name": "users_email_idx",
1242
+ "columns": [
1243
+ "email"
1244
+ ],
1245
+ "isUnique": false
122
1246
  }
123
1247
  },
124
1248
  "foreignKeys": {},