@zodic/shared 0.0.401 → 0.0.402

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.
Files changed (61) hide show
  1. package/app/api/index.ts +0 -99
  2. package/app/base/AppContext.ts +0 -41
  3. package/app/services/ConceptService.ts +172 -244
  4. package/app/services/PaymentService.ts +61 -2
  5. package/db/migrations/{0000_little_sleeper.sql → 0000_workable_the_hand.sql} +197 -24
  6. package/db/migrations/meta/0000_snapshot.json +1663 -451
  7. package/db/migrations/meta/_journal.json +2 -156
  8. package/db/schema.ts +0 -31
  9. package/drizzle.config.ts +2 -2
  10. package/package.json +10 -5
  11. package/types/scopes/cloudflare.ts +2 -118
  12. package/types/scopes/generic.ts +0 -1
  13. package/utils/buildMessages.ts +1 -32
  14. package/wrangler.toml +24 -3
  15. package/app/durable/ConceptNameDO.ts +0 -199
  16. package/app/durable/index.ts +0 -1
  17. package/app/workflow/old/ArchetypeWorkflow.ts +0 -156
  18. package/db/migrations/0001_mysterious_mystique.sql +0 -47
  19. package/db/migrations/0002_reflective_firelord.sql +0 -13
  20. package/db/migrations/0003_thin_valeria_richards.sql +0 -28
  21. package/db/migrations/0004_loose_iron_monger.sql +0 -15
  22. package/db/migrations/0005_famous_cammi.sql +0 -26
  23. package/db/migrations/0006_fine_manta.sql +0 -1
  24. package/db/migrations/0007_typical_grim_reaper.sql +0 -1
  25. package/db/migrations/0008_fine_betty_brant.sql +0 -1
  26. package/db/migrations/0009_spooky_doctor_spectrum.sql +0 -20
  27. package/db/migrations/0010_tricky_lord_hawal.sql +0 -23
  28. package/db/migrations/0011_hard_king_bedlam.sql +0 -1
  29. package/db/migrations/0012_sudden_doctor_spectrum.sql +0 -27
  30. package/db/migrations/0013_lean_frightful_four.sql +0 -7
  31. package/db/migrations/0014_green_marvel_apes.sql +0 -10
  32. package/db/migrations/0015_zippy_sersi.sql +0 -10
  33. package/db/migrations/0016_awesome_squadron_sinister.sql +0 -1
  34. package/db/migrations/0017_vengeful_electro.sql +0 -1
  35. package/db/migrations/0018_wooden_sersi.sql +0 -16
  36. package/db/migrations/0019_abandoned_orphan.sql +0 -59
  37. package/db/migrations/0020_smiling_blob.sql +0 -1
  38. package/db/migrations/0021_flawless_wallflower.sql +0 -1
  39. package/db/migrations/0022_pale_marvex.sql +0 -1
  40. package/db/migrations/meta/0001_snapshot.json +0 -2200
  41. package/db/migrations/meta/0002_snapshot.json +0 -2284
  42. package/db/migrations/meta/0003_snapshot.json +0 -2417
  43. package/db/migrations/meta/0004_snapshot.json +0 -2417
  44. package/db/migrations/meta/0005_snapshot.json +0 -2417
  45. package/db/migrations/meta/0006_snapshot.json +0 -2425
  46. package/db/migrations/meta/0007_snapshot.json +0 -2433
  47. package/db/migrations/meta/0008_snapshot.json +0 -2425
  48. package/db/migrations/meta/0009_snapshot.json +0 -2425
  49. package/db/migrations/meta/0010_snapshot.json +0 -2594
  50. package/db/migrations/meta/0011_snapshot.json +0 -2602
  51. package/db/migrations/meta/0012_snapshot.json +0 -2602
  52. package/db/migrations/meta/0013_snapshot.json +0 -2649
  53. package/db/migrations/meta/0014_snapshot.json +0 -2723
  54. package/db/migrations/meta/0015_snapshot.json +0 -2711
  55. package/db/migrations/meta/0016_snapshot.json +0 -2715
  56. package/db/migrations/meta/0017_snapshot.json +0 -2723
  57. package/db/migrations/meta/0018_snapshot.json +0 -2834
  58. package/db/migrations/meta/0019_snapshot.json +0 -3244
  59. package/db/migrations/meta/0020_snapshot.json +0 -3252
  60. package/db/migrations/meta/0021_snapshot.json +0 -3254
  61. package/db/migrations/meta/0022_snapshot.json +0 -3260
@@ -1,9 +1,159 @@
1
1
  {
2
2
  "version": "6",
3
3
  "dialect": "sqlite",
4
- "id": "fe42ec0c-db02-4aad-a22b-3600cad51ac8",
4
+ "id": "bd5274fc-aedd-4c56-a739-f202a30fd062",
5
5
  "prevId": "00000000-0000-0000-0000-000000000000",
6
6
  "tables": {
7
+ "archetypes_data": {
8
+ "name": "archetypes_data",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "language": {
18
+ "name": "language",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "gender": {
25
+ "name": "gender",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": false,
29
+ "autoincrement": false
30
+ },
31
+ "combination": {
32
+ "name": "combination",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "archetype_index": {
39
+ "name": "archetype_index",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false
44
+ },
45
+ "name": {
46
+ "name": "name",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": true,
50
+ "autoincrement": false
51
+ },
52
+ "essence_line": {
53
+ "name": "essence_line",
54
+ "type": "text",
55
+ "primaryKey": false,
56
+ "notNull": true,
57
+ "autoincrement": false
58
+ },
59
+ "description": {
60
+ "name": "description",
61
+ "type": "text",
62
+ "primaryKey": false,
63
+ "notNull": false,
64
+ "autoincrement": false
65
+ },
66
+ "content": {
67
+ "name": "content",
68
+ "type": "text",
69
+ "primaryKey": false,
70
+ "notNull": true,
71
+ "autoincrement": false,
72
+ "default": "'[]'"
73
+ },
74
+ "virtues": {
75
+ "name": "virtues",
76
+ "type": "text",
77
+ "primaryKey": false,
78
+ "notNull": true,
79
+ "autoincrement": false,
80
+ "default": "'[]'"
81
+ },
82
+ "leonardo_prompt": {
83
+ "name": "leonardo_prompt",
84
+ "type": "text",
85
+ "primaryKey": false,
86
+ "notNull": false,
87
+ "autoincrement": false
88
+ },
89
+ "status": {
90
+ "name": "status",
91
+ "type": "text",
92
+ "primaryKey": false,
93
+ "notNull": false,
94
+ "autoincrement": false,
95
+ "default": "'idle'"
96
+ },
97
+ "created_at": {
98
+ "name": "created_at",
99
+ "type": "integer",
100
+ "primaryKey": false,
101
+ "notNull": false,
102
+ "autoincrement": false,
103
+ "default": "CURRENT_TIMESTAMP"
104
+ },
105
+ "images": {
106
+ "name": "images",
107
+ "type": "text",
108
+ "primaryKey": false,
109
+ "notNull": true,
110
+ "autoincrement": false,
111
+ "default": "'[]'"
112
+ },
113
+ "updated_at": {
114
+ "name": "updated_at",
115
+ "type": "integer",
116
+ "primaryKey": false,
117
+ "notNull": false,
118
+ "autoincrement": false,
119
+ "default": "CURRENT_TIMESTAMP"
120
+ }
121
+ },
122
+ "indexes": {
123
+ "archetypes_data_language_idx": {
124
+ "name": "archetypes_data_language_idx",
125
+ "columns": [
126
+ "language"
127
+ ],
128
+ "isUnique": false
129
+ },
130
+ "archetypes_data_combination_idx": {
131
+ "name": "archetypes_data_combination_idx",
132
+ "columns": [
133
+ "combination"
134
+ ],
135
+ "isUnique": false
136
+ },
137
+ "archetypes_data_archetype_index_idx": {
138
+ "name": "archetypes_data_archetype_index_idx",
139
+ "columns": [
140
+ "archetype_index"
141
+ ],
142
+ "isUnique": false
143
+ },
144
+ "archetypes_data_gender_idx": {
145
+ "name": "archetypes_data_gender_idx",
146
+ "columns": [
147
+ "gender"
148
+ ],
149
+ "isUnique": false
150
+ }
151
+ },
152
+ "foreignKeys": {},
153
+ "compositePrimaryKeys": {},
154
+ "uniqueConstraints": {},
155
+ "checkConstraints": {}
156
+ },
7
157
  "artifact_faceswap": {
8
158
  "name": "artifact_faceswap",
9
159
  "columns": {
@@ -260,8 +410,8 @@
260
410
  "uniqueConstraints": {},
261
411
  "checkConstraints": {}
262
412
  },
263
- "astro_aspects": {
264
- "name": "astro_aspects",
413
+ "asaas_events": {
414
+ "name": "asaas_events",
265
415
  "columns": {
266
416
  "id": {
267
417
  "name": "id",
@@ -270,93 +420,68 @@
270
420
  "notNull": true,
271
421
  "autoincrement": false
272
422
  },
273
- "user_id": {
274
- "name": "user_id",
423
+ "asaas_event_id": {
424
+ "name": "asaas_event_id",
275
425
  "type": "text",
276
426
  "primaryKey": false,
277
427
  "notNull": true,
278
428
  "autoincrement": false
279
429
  },
280
- "aspecting_planet": {
281
- "name": "aspecting_planet",
430
+ "payload": {
431
+ "name": "payload",
282
432
  "type": "text",
283
433
  "primaryKey": false,
284
434
  "notNull": true,
285
435
  "autoincrement": false
286
436
  },
287
- "aspected_planet": {
288
- "name": "aspected_planet",
437
+ "status": {
438
+ "name": "status",
289
439
  "type": "text",
290
440
  "primaryKey": false,
291
441
  "notNull": true,
292
- "autoincrement": false
442
+ "autoincrement": false,
443
+ "default": "'pending'"
293
444
  },
294
- "aspecting_planet_id": {
295
- "name": "aspecting_planet_id",
445
+ "created_at": {
446
+ "name": "created_at",
296
447
  "type": "integer",
297
448
  "primaryKey": false,
298
449
  "notNull": true,
299
- "autoincrement": false
450
+ "autoincrement": false,
451
+ "default": "CURRENT_TIMESTAMP"
300
452
  },
301
- "aspected_planet_id": {
302
- "name": "aspected_planet_id",
453
+ "updated_at": {
454
+ "name": "updated_at",
303
455
  "type": "integer",
304
456
  "primaryKey": false,
305
457
  "notNull": true,
306
- "autoincrement": false
307
- },
308
- "type": {
309
- "name": "type",
310
- "type": "text",
311
- "primaryKey": false,
312
- "notNull": true,
313
- "autoincrement": false
314
- },
315
- "orb": {
316
- "name": "orb",
317
- "type": "real",
318
- "primaryKey": false,
319
- "notNull": true,
320
- "autoincrement": false
321
- },
322
- "diff": {
323
- "name": "diff",
324
- "type": "real",
325
- "primaryKey": false,
326
- "notNull": true,
327
- "autoincrement": false
458
+ "autoincrement": false,
459
+ "default": "CURRENT_TIMESTAMP"
328
460
  }
329
461
  },
330
462
  "indexes": {
331
- "astro_aspects_user_id_idx": {
332
- "name": "astro_aspects_user_id_idx",
463
+ "asaas_events_asaas_event_id_unique": {
464
+ "name": "asaas_events_asaas_event_id_unique",
333
465
  "columns": [
334
- "user_id"
335
- ],
336
- "isUnique": false
337
- }
338
- },
339
- "foreignKeys": {
340
- "astro_aspects_user_id_users_id_fk": {
341
- "name": "astro_aspects_user_id_users_id_fk",
342
- "tableFrom": "astro_aspects",
343
- "tableTo": "users",
344
- "columnsFrom": [
345
- "user_id"
466
+ "asaas_event_id"
346
467
  ],
347
- "columnsTo": [
348
- "id"
468
+ "isUnique": true
469
+ },
470
+ "asaas_events_asaas_event_id_idx": {
471
+ "name": "asaas_events_asaas_event_id_idx",
472
+ "columns": [
473
+ "asaas_event_id"
349
474
  ],
350
- "onDelete": "cascade",
351
- "onUpdate": "no action"
475
+ "isUnique": false
352
476
  }
353
477
  },
478
+ "foreignKeys": {},
354
479
  "compositePrimaryKeys": {},
355
480
  "uniqueConstraints": {},
356
481
  "checkConstraints": {}
357
482
  },
358
- "astro_features": {
359
- "name": "astro_features",
483
+ "aspect_reports": {
484
+ "name": "aspect_reports",
360
485
  "columns": {
361
486
  "id": {
362
487
  "name": "id",
@@ -365,144 +490,116 @@
365
490
  "notNull": true,
366
491
  "autoincrement": false
367
492
  },
368
- "user_id": {
369
- "name": "user_id",
493
+ "aspecting_planet": {
494
+ "name": "aspecting_planet",
370
495
  "type": "text",
371
496
  "primaryKey": false,
372
497
  "notNull": true,
373
498
  "autoincrement": false
374
499
  },
375
- "feature_type": {
376
- "name": "feature_type",
500
+ "aspected_planet": {
501
+ "name": "aspected_planet",
377
502
  "type": "text",
378
503
  "primaryKey": false,
379
504
  "notNull": true,
380
505
  "autoincrement": false
381
506
  },
382
- "name": {
383
- "name": "name",
507
+ "aspect": {
508
+ "name": "aspect",
384
509
  "type": "text",
385
510
  "primaryKey": false,
386
511
  "notNull": true,
387
512
  "autoincrement": false
388
513
  },
389
- "description": {
390
- "name": "description",
514
+ "description_template_id": {
515
+ "name": "description_template_id",
391
516
  "type": "text",
392
517
  "primaryKey": false,
393
518
  "notNull": false,
394
519
  "autoincrement": false
395
520
  },
396
- "percentage": {
397
- "name": "percentage",
398
- "type": "real",
521
+ "en_report": {
522
+ "name": "en_report",
523
+ "type": "text",
399
524
  "primaryKey": false,
400
525
  "notNull": false,
401
526
  "autoincrement": false
402
527
  },
403
- "order": {
404
- "name": "order",
405
- "type": "integer",
528
+ "pt_report": {
529
+ "name": "pt_report",
530
+ "type": "text",
406
531
  "primaryKey": false,
407
532
  "notNull": false,
408
533
  "autoincrement": false
409
534
  },
410
- "prominent_id": {
411
- "name": "prominent_id",
535
+ "created_at": {
536
+ "name": "created_at",
412
537
  "type": "integer",
413
538
  "primaryKey": false,
414
539
  "notNull": false,
415
- "autoincrement": false
540
+ "autoincrement": false,
541
+ "default": "CURRENT_TIMESTAMP"
542
+ },
543
+ "updated_at": {
544
+ "name": "updated_at",
545
+ "type": "integer",
546
+ "primaryKey": false,
547
+ "notNull": false,
548
+ "autoincrement": false,
549
+ "default": "CURRENT_TIMESTAMP"
416
550
  }
417
551
  },
418
552
  "indexes": {
419
- "astro_features_user_id_idx": {
420
- "name": "astro_features_user_id_idx",
553
+ "aspect_reports_aspecting_idx": {
554
+ "name": "aspect_reports_aspecting_idx",
421
555
  "columns": [
422
- "user_id"
556
+ "aspecting_planet"
423
557
  ],
424
558
  "isUnique": false
425
- }
426
- },
427
- "foreignKeys": {
428
- "astro_features_user_id_users_id_fk": {
429
- "name": "astro_features_user_id_users_id_fk",
430
- "tableFrom": "astro_features",
431
- "tableTo": "users",
432
- "columnsFrom": [
433
- "user_id"
434
- ],
435
- "columnsTo": [
436
- "id"
559
+ },
560
+ "aspect_reports_aspected_idx": {
561
+ "name": "aspect_reports_aspected_idx",
562
+ "columns": [
563
+ "aspected_planet"
437
564
  ],
438
- "onDelete": "cascade",
439
- "onUpdate": "no action"
440
- }
441
- },
442
- "compositePrimaryKeys": {},
443
- "uniqueConstraints": {},
444
- "checkConstraints": {}
445
- },
446
- "astro_houses": {
447
- "name": "astro_houses",
448
- "columns": {
449
- "id": {
450
- "name": "id",
451
- "type": "text",
452
- "primaryKey": true,
453
- "notNull": true,
454
- "autoincrement": false
455
- },
456
- "user_id": {
457
- "name": "user_id",
458
- "type": "text",
459
- "primaryKey": false,
460
- "notNull": true,
461
- "autoincrement": false
565
+ "isUnique": false
462
566
  },
463
- "house": {
464
- "name": "house",
465
- "type": "integer",
466
- "primaryKey": false,
467
- "notNull": true,
468
- "autoincrement": false
567
+ "aspect_reports_aspect_idx": {
568
+ "name": "aspect_reports_aspect_idx",
569
+ "columns": [
570
+ "aspect"
571
+ ],
572
+ "isUnique": false
469
573
  },
470
- "sign": {
471
- "name": "sign",
472
- "type": "text",
473
- "primaryKey": false,
474
- "notNull": true,
475
- "autoincrement": false
574
+ "aspect_reports_combined_idx": {
575
+ "name": "aspect_reports_combined_idx",
576
+ "columns": [
577
+ "aspecting_planet",
578
+ "aspected_planet",
579
+ "aspect"
580
+ ],
581
+ "isUnique": false
476
582
  },
477
- "degree": {
478
- "name": "degree",
479
- "type": "real",
480
- "primaryKey": false,
481
- "notNull": true,
482
- "autoincrement": false
483
- }
484
- },
485
- "indexes": {
486
- "astro_houses_user_id_idx": {
487
- "name": "astro_houses_user_id_idx",
583
+ "aspect_reports_description_template_idx": {
584
+ "name": "aspect_reports_description_template_idx",
488
585
  "columns": [
489
- "user_id"
586
+ "description_template_id"
490
587
  ],
491
588
  "isUnique": false
492
589
  }
493
590
  },
494
591
  "foreignKeys": {
495
- "astro_houses_user_id_users_id_fk": {
496
- "name": "astro_houses_user_id_users_id_fk",
497
- "tableFrom": "astro_houses",
498
- "tableTo": "users",
592
+ "aspect_reports_description_template_id_astro_description_templates_id_fk": {
593
+ "name": "aspect_reports_description_template_id_astro_description_templates_id_fk",
594
+ "tableFrom": "aspect_reports",
595
+ "tableTo": "astro_description_templates",
499
596
  "columnsFrom": [
500
- "user_id"
597
+ "description_template_id"
501
598
  ],
502
599
  "columnsTo": [
503
600
  "id"
504
601
  ],
505
- "onDelete": "cascade",
602
+ "onDelete": "set null",
506
603
  "onUpdate": "no action"
507
604
  }
508
605
  },
@@ -510,8 +607,8 @@
510
607
  "uniqueConstraints": {},
511
608
  "checkConstraints": {}
512
609
  },
513
- "astro_planets": {
514
- "name": "astro_planets",
610
+ "astro_aspects": {
611
+ "name": "astro_aspects",
515
612
  "columns": {
516
613
  "id": {
517
614
  "name": "id",
@@ -527,66 +624,59 @@
527
624
  "notNull": true,
528
625
  "autoincrement": false
529
626
  },
530
- "type": {
531
- "name": "type",
627
+ "aspecting_planet": {
628
+ "name": "aspecting_planet",
532
629
  "type": "text",
533
630
  "primaryKey": false,
534
631
  "notNull": true,
535
632
  "autoincrement": false
536
633
  },
537
- "name": {
538
- "name": "name",
634
+ "aspected_planet": {
635
+ "name": "aspected_planet",
539
636
  "type": "text",
540
637
  "primaryKey": false,
541
638
  "notNull": true,
542
639
  "autoincrement": false
543
640
  },
544
- "sign": {
545
- "name": "sign",
546
- "type": "text",
641
+ "aspecting_planet_id": {
642
+ "name": "aspecting_planet_id",
643
+ "type": "integer",
547
644
  "primaryKey": false,
548
645
  "notNull": true,
549
646
  "autoincrement": false
550
647
  },
551
- "house": {
552
- "name": "house",
648
+ "aspected_planet_id": {
649
+ "name": "aspected_planet_id",
553
650
  "type": "integer",
554
651
  "primaryKey": false,
555
- "notNull": false,
652
+ "notNull": true,
556
653
  "autoincrement": false
557
654
  },
558
- "full_degree": {
559
- "name": "full_degree",
560
- "type": "real",
655
+ "type": {
656
+ "name": "type",
657
+ "type": "text",
561
658
  "primaryKey": false,
562
- "notNull": false,
659
+ "notNull": true,
563
660
  "autoincrement": false
564
661
  },
565
- "norm_degree": {
566
- "name": "norm_degree",
662
+ "orb": {
663
+ "name": "orb",
567
664
  "type": "real",
568
665
  "primaryKey": false,
569
- "notNull": false,
666
+ "notNull": true,
570
667
  "autoincrement": false
571
668
  },
572
- "speed": {
573
- "name": "speed",
669
+ "diff": {
670
+ "name": "diff",
574
671
  "type": "real",
575
672
  "primaryKey": false,
576
- "notNull": false,
577
- "autoincrement": false
578
- },
579
- "is_retro": {
580
- "name": "is_retro",
581
- "type": "integer",
582
- "primaryKey": false,
583
- "notNull": false,
673
+ "notNull": true,
584
674
  "autoincrement": false
585
675
  }
586
676
  },
587
677
  "indexes": {
588
- "astro_planets_user_id_idx": {
589
- "name": "astro_planets_user_id_idx",
678
+ "astro_aspects_user_id_idx": {
679
+ "name": "astro_aspects_user_id_idx",
590
680
  "columns": [
591
681
  "user_id"
592
682
  ],
@@ -594,9 +684,9 @@
594
684
  }
595
685
  },
596
686
  "foreignKeys": {
597
- "astro_planets_user_id_users_id_fk": {
598
- "name": "astro_planets_user_id_users_id_fk",
599
- "tableFrom": "astro_planets",
687
+ "astro_aspects_user_id_users_id_fk": {
688
+ "name": "astro_aspects_user_id_users_id_fk",
689
+ "tableFrom": "astro_aspects",
600
690
  "tableTo": "users",
601
691
  "columnsFrom": [
602
692
  "user_id"
@@ -612,8 +702,8 @@
612
702
  "uniqueConstraints": {},
613
703
  "checkConstraints": {}
614
704
  },
615
- "concept_combinations": {
616
- "name": "concept_combinations",
705
+ "astro_description_templates": {
706
+ "name": "astro_description_templates",
617
707
  "columns": {
618
708
  "id": {
619
709
  "name": "id",
@@ -622,73 +712,82 @@
622
712
  "notNull": true,
623
713
  "autoincrement": false
624
714
  },
625
- "concept_id": {
626
- "name": "concept_id",
715
+ "entity_type": {
716
+ "name": "entity_type",
627
717
  "type": "text",
628
718
  "primaryKey": false,
629
719
  "notNull": true,
630
720
  "autoincrement": false
631
721
  },
632
- "planet1_sign": {
633
- "name": "planet1_sign",
722
+ "name": {
723
+ "name": "name",
634
724
  "type": "text",
635
725
  "primaryKey": false,
636
726
  "notNull": true,
637
727
  "autoincrement": false
638
728
  },
639
- "planet2_sign": {
640
- "name": "planet2_sign",
729
+ "en_name": {
730
+ "name": "en_name",
641
731
  "type": "text",
642
732
  "primaryKey": false,
643
- "notNull": true,
733
+ "notNull": false,
644
734
  "autoincrement": false
645
735
  },
646
- "planet3_sign": {
647
- "name": "planet3_sign",
736
+ "pt_name": {
737
+ "name": "pt_name",
738
+ "type": "text",
739
+ "primaryKey": false,
740
+ "notNull": false,
741
+ "autoincrement": false
742
+ },
743
+ "en_description": {
744
+ "name": "en_description",
648
745
  "type": "text",
649
746
  "primaryKey": false,
650
747
  "notNull": true,
651
748
  "autoincrement": false
652
749
  },
653
- "combination_string": {
654
- "name": "combination_string",
750
+ "pt_description": {
751
+ "name": "pt_description",
655
752
  "type": "text",
656
753
  "primaryKey": false,
657
754
  "notNull": true,
658
755
  "autoincrement": false
756
+ },
757
+ "created_at": {
758
+ "name": "created_at",
759
+ "type": "integer",
760
+ "primaryKey": false,
761
+ "notNull": false,
762
+ "autoincrement": false,
763
+ "default": "CURRENT_TIMESTAMP"
764
+ },
765
+ "updated_at": {
766
+ "name": "updated_at",
767
+ "type": "integer",
768
+ "primaryKey": false,
769
+ "notNull": false,
770
+ "autoincrement": false,
771
+ "default": "CURRENT_TIMESTAMP"
659
772
  }
660
773
  },
661
774
  "indexes": {
662
- "concept_combinations_unique_combination_idx": {
663
- "name": "concept_combinations_unique_combination_idx",
775
+ "astro_description_templates_type_name_idx": {
776
+ "name": "astro_description_templates_type_name_idx",
664
777
  "columns": [
665
- "concept_id",
666
- "combination_string"
778
+ "entity_type",
779
+ "name"
667
780
  ],
668
781
  "isUnique": false
669
782
  }
670
783
  },
671
- "foreignKeys": {
672
- "concept_combinations_concept_id_concepts_id_fk": {
673
- "name": "concept_combinations_concept_id_concepts_id_fk",
674
- "tableFrom": "concept_combinations",
675
- "tableTo": "concepts",
676
- "columnsFrom": [
677
- "concept_id"
678
- ],
679
- "columnsTo": [
680
- "id"
681
- ],
682
- "onDelete": "cascade",
683
- "onUpdate": "no action"
684
- }
685
- },
784
+ "foreignKeys": {},
686
785
  "compositePrimaryKeys": {},
687
786
  "uniqueConstraints": {},
688
787
  "checkConstraints": {}
689
788
  },
690
- "concepts": {
691
- "name": "concepts",
789
+ "astro_feature_reports": {
790
+ "name": "astro_feature_reports",
692
791
  "columns": {
693
792
  "id": {
694
793
  "name": "id",
@@ -697,58 +796,96 @@
697
796
  "notNull": true,
698
797
  "autoincrement": false
699
798
  },
700
- "name": {
701
- "name": "name",
799
+ "feature_type": {
800
+ "name": "feature_type",
702
801
  "type": "text",
703
802
  "primaryKey": false,
704
803
  "notNull": true,
705
804
  "autoincrement": false
706
805
  },
707
- "slug": {
708
- "name": "slug",
806
+ "name": {
807
+ "name": "name",
709
808
  "type": "text",
710
809
  "primaryKey": false,
711
810
  "notNull": true,
712
811
  "autoincrement": false
713
812
  },
714
- "planet1": {
715
- "name": "planet1",
813
+ "description_template_id": {
814
+ "name": "description_template_id",
716
815
  "type": "text",
717
816
  "primaryKey": false,
718
- "notNull": true,
817
+ "notNull": false,
719
818
  "autoincrement": false
720
819
  },
721
- "planet2": {
722
- "name": "planet2",
820
+ "en_report": {
821
+ "name": "en_report",
723
822
  "type": "text",
724
823
  "primaryKey": false,
725
- "notNull": true,
824
+ "notNull": false,
726
825
  "autoincrement": false
727
826
  },
728
- "planet3": {
729
- "name": "planet3",
827
+ "pt_report": {
828
+ "name": "pt_report",
730
829
  "type": "text",
731
830
  "primaryKey": false,
732
831
  "notNull": false,
733
832
  "autoincrement": false
833
+ },
834
+ "created_at": {
835
+ "name": "created_at",
836
+ "type": "integer",
837
+ "primaryKey": false,
838
+ "notNull": false,
839
+ "autoincrement": false,
840
+ "default": "CURRENT_TIMESTAMP"
841
+ },
842
+ "updated_at": {
843
+ "name": "updated_at",
844
+ "type": "integer",
845
+ "primaryKey": false,
846
+ "notNull": false,
847
+ "autoincrement": false,
848
+ "default": "CURRENT_TIMESTAMP"
734
849
  }
735
850
  },
736
851
  "indexes": {
737
- "concepts_name_idx": {
738
- "name": "concepts_name_idx",
852
+ "astro_feature_reports_type_name_idx": {
853
+ "name": "astro_feature_reports_type_name_idx",
739
854
  "columns": [
855
+ "feature_type",
740
856
  "name"
741
857
  ],
742
858
  "isUnique": false
859
+ },
860
+ "astro_feature_reports_description_template_idx": {
861
+ "name": "astro_feature_reports_description_template_idx",
862
+ "columns": [
863
+ "description_template_id"
864
+ ],
865
+ "isUnique": false
866
+ }
867
+ },
868
+ "foreignKeys": {
869
+ "astro_feature_reports_description_template_id_astro_description_templates_id_fk": {
870
+ "name": "astro_feature_reports_description_template_id_astro_description_templates_id_fk",
871
+ "tableFrom": "astro_feature_reports",
872
+ "tableTo": "astro_description_templates",
873
+ "columnsFrom": [
874
+ "description_template_id"
875
+ ],
876
+ "columnsTo": [
877
+ "id"
878
+ ],
879
+ "onDelete": "set null",
880
+ "onUpdate": "no action"
743
881
  }
744
882
  },
745
- "foreignKeys": {},
746
883
  "compositePrimaryKeys": {},
747
884
  "uniqueConstraints": {},
748
885
  "checkConstraints": {}
749
886
  },
750
- "concepts_data": {
751
- "name": "concepts_data",
887
+ "astro_features": {
888
+ "name": "astro_features",
752
889
  "columns": {
753
890
  "id": {
754
891
  "name": "id",
@@ -757,22 +894,15 @@
757
894
  "notNull": true,
758
895
  "autoincrement": false
759
896
  },
760
- "language": {
761
- "name": "language",
762
- "type": "text",
763
- "primaryKey": false,
764
- "notNull": true,
765
- "autoincrement": false
766
- },
767
- "concept_slug": {
768
- "name": "concept_slug",
897
+ "user_id": {
898
+ "name": "user_id",
769
899
  "type": "text",
770
900
  "primaryKey": false,
771
901
  "notNull": true,
772
902
  "autoincrement": false
773
903
  },
774
- "combination": {
775
- "name": "combination",
904
+ "feature_type": {
905
+ "name": "feature_type",
776
906
  "type": "text",
777
907
  "primaryKey": false,
778
908
  "notNull": true,
@@ -789,55 +919,982 @@
789
919
  "name": "description",
790
920
  "type": "text",
791
921
  "primaryKey": false,
792
- "notNull": true,
922
+ "notNull": false,
793
923
  "autoincrement": false
794
924
  },
795
- "content": {
796
- "name": "content",
797
- "type": "text",
925
+ "percentage": {
926
+ "name": "percentage",
927
+ "type": "real",
928
+ "primaryKey": false,
929
+ "notNull": false,
930
+ "autoincrement": false
931
+ },
932
+ "prominent_id": {
933
+ "name": "prominent_id",
934
+ "type": "integer",
935
+ "primaryKey": false,
936
+ "notNull": false,
937
+ "autoincrement": false
938
+ }
939
+ },
940
+ "indexes": {
941
+ "astro_features_user_id_idx": {
942
+ "name": "astro_features_user_id_idx",
943
+ "columns": [
944
+ "user_id"
945
+ ],
946
+ "isUnique": false
947
+ }
948
+ },
949
+ "foreignKeys": {
950
+ "astro_features_user_id_users_id_fk": {
951
+ "name": "astro_features_user_id_users_id_fk",
952
+ "tableFrom": "astro_features",
953
+ "tableTo": "users",
954
+ "columnsFrom": [
955
+ "user_id"
956
+ ],
957
+ "columnsTo": [
958
+ "id"
959
+ ],
960
+ "onDelete": "cascade",
961
+ "onUpdate": "no action"
962
+ }
963
+ },
964
+ "compositePrimaryKeys": {},
965
+ "uniqueConstraints": {},
966
+ "checkConstraints": {}
967
+ },
968
+ "astro_houses": {
969
+ "name": "astro_houses",
970
+ "columns": {
971
+ "id": {
972
+ "name": "id",
973
+ "type": "text",
974
+ "primaryKey": true,
975
+ "notNull": true,
976
+ "autoincrement": false
977
+ },
978
+ "user_id": {
979
+ "name": "user_id",
980
+ "type": "text",
981
+ "primaryKey": false,
982
+ "notNull": true,
983
+ "autoincrement": false
984
+ },
985
+ "house": {
986
+ "name": "house",
987
+ "type": "integer",
988
+ "primaryKey": false,
989
+ "notNull": true,
990
+ "autoincrement": false
991
+ },
992
+ "sign": {
993
+ "name": "sign",
994
+ "type": "text",
995
+ "primaryKey": false,
996
+ "notNull": true,
997
+ "autoincrement": false
998
+ },
999
+ "degree": {
1000
+ "name": "degree",
1001
+ "type": "real",
1002
+ "primaryKey": false,
1003
+ "notNull": true,
1004
+ "autoincrement": false
1005
+ }
1006
+ },
1007
+ "indexes": {
1008
+ "astro_houses_user_id_idx": {
1009
+ "name": "astro_houses_user_id_idx",
1010
+ "columns": [
1011
+ "user_id"
1012
+ ],
1013
+ "isUnique": false
1014
+ }
1015
+ },
1016
+ "foreignKeys": {
1017
+ "astro_houses_user_id_users_id_fk": {
1018
+ "name": "astro_houses_user_id_users_id_fk",
1019
+ "tableFrom": "astro_houses",
1020
+ "tableTo": "users",
1021
+ "columnsFrom": [
1022
+ "user_id"
1023
+ ],
1024
+ "columnsTo": [
1025
+ "id"
1026
+ ],
1027
+ "onDelete": "cascade",
1028
+ "onUpdate": "no action"
1029
+ }
1030
+ },
1031
+ "compositePrimaryKeys": {},
1032
+ "uniqueConstraints": {},
1033
+ "checkConstraints": {}
1034
+ },
1035
+ "astro_planets": {
1036
+ "name": "astro_planets",
1037
+ "columns": {
1038
+ "id": {
1039
+ "name": "id",
1040
+ "type": "text",
1041
+ "primaryKey": true,
1042
+ "notNull": true,
1043
+ "autoincrement": false
1044
+ },
1045
+ "user_id": {
1046
+ "name": "user_id",
1047
+ "type": "text",
1048
+ "primaryKey": false,
1049
+ "notNull": true,
1050
+ "autoincrement": false
1051
+ },
1052
+ "type": {
1053
+ "name": "type",
1054
+ "type": "text",
1055
+ "primaryKey": false,
1056
+ "notNull": true,
1057
+ "autoincrement": false
1058
+ },
1059
+ "name": {
1060
+ "name": "name",
1061
+ "type": "text",
1062
+ "primaryKey": false,
1063
+ "notNull": true,
1064
+ "autoincrement": false
1065
+ },
1066
+ "sign": {
1067
+ "name": "sign",
1068
+ "type": "text",
1069
+ "primaryKey": false,
1070
+ "notNull": true,
1071
+ "autoincrement": false
1072
+ },
1073
+ "house": {
1074
+ "name": "house",
1075
+ "type": "integer",
1076
+ "primaryKey": false,
1077
+ "notNull": false,
1078
+ "autoincrement": false
1079
+ },
1080
+ "full_degree": {
1081
+ "name": "full_degree",
1082
+ "type": "real",
1083
+ "primaryKey": false,
1084
+ "notNull": false,
1085
+ "autoincrement": false
1086
+ },
1087
+ "norm_degree": {
1088
+ "name": "norm_degree",
1089
+ "type": "real",
1090
+ "primaryKey": false,
1091
+ "notNull": false,
1092
+ "autoincrement": false
1093
+ },
1094
+ "speed": {
1095
+ "name": "speed",
1096
+ "type": "real",
1097
+ "primaryKey": false,
1098
+ "notNull": false,
1099
+ "autoincrement": false
1100
+ },
1101
+ "is_retro": {
1102
+ "name": "is_retro",
1103
+ "type": "integer",
1104
+ "primaryKey": false,
1105
+ "notNull": false,
1106
+ "autoincrement": false
1107
+ }
1108
+ },
1109
+ "indexes": {
1110
+ "astro_planets_user_id_idx": {
1111
+ "name": "astro_planets_user_id_idx",
1112
+ "columns": [
1113
+ "user_id"
1114
+ ],
1115
+ "isUnique": false
1116
+ }
1117
+ },
1118
+ "foreignKeys": {
1119
+ "astro_planets_user_id_users_id_fk": {
1120
+ "name": "astro_planets_user_id_users_id_fk",
1121
+ "tableFrom": "astro_planets",
1122
+ "tableTo": "users",
1123
+ "columnsFrom": [
1124
+ "user_id"
1125
+ ],
1126
+ "columnsTo": [
1127
+ "id"
1128
+ ],
1129
+ "onDelete": "cascade",
1130
+ "onUpdate": "no action"
1131
+ }
1132
+ },
1133
+ "compositePrimaryKeys": {},
1134
+ "uniqueConstraints": {},
1135
+ "checkConstraints": {}
1136
+ },
1137
+ "astro_reports": {
1138
+ "name": "astro_reports",
1139
+ "columns": {
1140
+ "id": {
1141
+ "name": "id",
1142
+ "type": "text",
1143
+ "primaryKey": true,
1144
+ "notNull": true,
1145
+ "autoincrement": false
1146
+ },
1147
+ "type": {
1148
+ "name": "type",
1149
+ "type": "text",
1150
+ "primaryKey": false,
1151
+ "notNull": true,
1152
+ "autoincrement": false
1153
+ },
1154
+ "name": {
1155
+ "name": "name",
1156
+ "type": "text",
1157
+ "primaryKey": false,
1158
+ "notNull": true,
1159
+ "autoincrement": false
1160
+ },
1161
+ "sign": {
1162
+ "name": "sign",
1163
+ "type": "text",
1164
+ "primaryKey": false,
1165
+ "notNull": false,
1166
+ "autoincrement": false
1167
+ },
1168
+ "house": {
1169
+ "name": "house",
1170
+ "type": "integer",
1171
+ "primaryKey": false,
1172
+ "notNull": false,
1173
+ "autoincrement": false
1174
+ },
1175
+ "description_template_id": {
1176
+ "name": "description_template_id",
1177
+ "type": "text",
1178
+ "primaryKey": false,
1179
+ "notNull": false,
1180
+ "autoincrement": false
1181
+ },
1182
+ "en_report": {
1183
+ "name": "en_report",
1184
+ "type": "text",
1185
+ "primaryKey": false,
1186
+ "notNull": false,
1187
+ "autoincrement": false
1188
+ },
1189
+ "pt_report": {
1190
+ "name": "pt_report",
1191
+ "type": "text",
1192
+ "primaryKey": false,
1193
+ "notNull": false,
1194
+ "autoincrement": false
1195
+ },
1196
+ "created_at": {
1197
+ "name": "created_at",
1198
+ "type": "integer",
1199
+ "primaryKey": false,
1200
+ "notNull": false,
1201
+ "autoincrement": false,
1202
+ "default": "CURRENT_TIMESTAMP"
1203
+ },
1204
+ "updated_at": {
1205
+ "name": "updated_at",
1206
+ "type": "integer",
1207
+ "primaryKey": false,
1208
+ "notNull": false,
1209
+ "autoincrement": false,
1210
+ "default": "CURRENT_TIMESTAMP"
1211
+ }
1212
+ },
1213
+ "indexes": {
1214
+ "astro_reports_type_idx": {
1215
+ "name": "astro_reports_type_idx",
1216
+ "columns": [
1217
+ "type"
1218
+ ],
1219
+ "isUnique": false
1220
+ },
1221
+ "astro_reports_name_sign_idx": {
1222
+ "name": "astro_reports_name_sign_idx",
1223
+ "columns": [
1224
+ "name",
1225
+ "sign"
1226
+ ],
1227
+ "isUnique": false
1228
+ },
1229
+ "astro_reports_name_house_idx": {
1230
+ "name": "astro_reports_name_house_idx",
1231
+ "columns": [
1232
+ "name",
1233
+ "house"
1234
+ ],
1235
+ "isUnique": false
1236
+ }
1237
+ },
1238
+ "foreignKeys": {
1239
+ "astro_reports_description_template_id_astro_description_templates_id_fk": {
1240
+ "name": "astro_reports_description_template_id_astro_description_templates_id_fk",
1241
+ "tableFrom": "astro_reports",
1242
+ "tableTo": "astro_description_templates",
1243
+ "columnsFrom": [
1244
+ "description_template_id"
1245
+ ],
1246
+ "columnsTo": [
1247
+ "id"
1248
+ ],
1249
+ "onDelete": "set null",
1250
+ "onUpdate": "no action"
1251
+ }
1252
+ },
1253
+ "compositePrimaryKeys": {},
1254
+ "uniqueConstraints": {},
1255
+ "checkConstraints": {}
1256
+ },
1257
+ "concept_combinations": {
1258
+ "name": "concept_combinations",
1259
+ "columns": {
1260
+ "id": {
1261
+ "name": "id",
1262
+ "type": "text",
1263
+ "primaryKey": true,
1264
+ "notNull": true,
1265
+ "autoincrement": false
1266
+ },
1267
+ "concept_id": {
1268
+ "name": "concept_id",
1269
+ "type": "text",
1270
+ "primaryKey": false,
1271
+ "notNull": true,
1272
+ "autoincrement": false
1273
+ },
1274
+ "planet1_sign": {
1275
+ "name": "planet1_sign",
1276
+ "type": "text",
1277
+ "primaryKey": false,
1278
+ "notNull": true,
1279
+ "autoincrement": false
1280
+ },
1281
+ "planet2_sign": {
1282
+ "name": "planet2_sign",
1283
+ "type": "text",
1284
+ "primaryKey": false,
1285
+ "notNull": true,
1286
+ "autoincrement": false
1287
+ },
1288
+ "planet3_sign": {
1289
+ "name": "planet3_sign",
1290
+ "type": "text",
1291
+ "primaryKey": false,
1292
+ "notNull": true,
1293
+ "autoincrement": false
1294
+ },
1295
+ "combination_string": {
1296
+ "name": "combination_string",
1297
+ "type": "text",
1298
+ "primaryKey": false,
1299
+ "notNull": true,
1300
+ "autoincrement": false
1301
+ }
1302
+ },
1303
+ "indexes": {
1304
+ "concept_combinations_unique_combination_idx": {
1305
+ "name": "concept_combinations_unique_combination_idx",
1306
+ "columns": [
1307
+ "concept_id",
1308
+ "combination_string"
1309
+ ],
1310
+ "isUnique": false
1311
+ }
1312
+ },
1313
+ "foreignKeys": {
1314
+ "concept_combinations_concept_id_concepts_id_fk": {
1315
+ "name": "concept_combinations_concept_id_concepts_id_fk",
1316
+ "tableFrom": "concept_combinations",
1317
+ "tableTo": "concepts",
1318
+ "columnsFrom": [
1319
+ "concept_id"
1320
+ ],
1321
+ "columnsTo": [
1322
+ "id"
1323
+ ],
1324
+ "onDelete": "cascade",
1325
+ "onUpdate": "no action"
1326
+ }
1327
+ },
1328
+ "compositePrimaryKeys": {},
1329
+ "uniqueConstraints": {},
1330
+ "checkConstraints": {}
1331
+ },
1332
+ "concepts": {
1333
+ "name": "concepts",
1334
+ "columns": {
1335
+ "id": {
1336
+ "name": "id",
1337
+ "type": "text",
1338
+ "primaryKey": true,
1339
+ "notNull": true,
1340
+ "autoincrement": false
1341
+ },
1342
+ "name": {
1343
+ "name": "name",
1344
+ "type": "text",
1345
+ "primaryKey": false,
1346
+ "notNull": true,
1347
+ "autoincrement": false
1348
+ },
1349
+ "slug": {
1350
+ "name": "slug",
1351
+ "type": "text",
1352
+ "primaryKey": false,
1353
+ "notNull": true,
1354
+ "autoincrement": false
1355
+ },
1356
+ "planet1": {
1357
+ "name": "planet1",
1358
+ "type": "text",
1359
+ "primaryKey": false,
1360
+ "notNull": true,
1361
+ "autoincrement": false
1362
+ },
1363
+ "planet2": {
1364
+ "name": "planet2",
1365
+ "type": "text",
1366
+ "primaryKey": false,
1367
+ "notNull": true,
1368
+ "autoincrement": false
1369
+ },
1370
+ "planet3": {
1371
+ "name": "planet3",
1372
+ "type": "text",
1373
+ "primaryKey": false,
1374
+ "notNull": true,
1375
+ "autoincrement": false
1376
+ }
1377
+ },
1378
+ "indexes": {
1379
+ "concepts_name_idx": {
1380
+ "name": "concepts_name_idx",
1381
+ "columns": [
1382
+ "name"
1383
+ ],
1384
+ "isUnique": false
1385
+ }
1386
+ },
1387
+ "foreignKeys": {},
1388
+ "compositePrimaryKeys": {},
1389
+ "uniqueConstraints": {},
1390
+ "checkConstraints": {}
1391
+ },
1392
+ "concepts_data": {
1393
+ "name": "concepts_data",
1394
+ "columns": {
1395
+ "id": {
1396
+ "name": "id",
1397
+ "type": "text",
1398
+ "primaryKey": true,
1399
+ "notNull": true,
1400
+ "autoincrement": false
1401
+ },
1402
+ "language": {
1403
+ "name": "language",
1404
+ "type": "text",
1405
+ "primaryKey": false,
1406
+ "notNull": true,
1407
+ "autoincrement": false
1408
+ },
1409
+ "concept_slug": {
1410
+ "name": "concept_slug",
1411
+ "type": "text",
1412
+ "primaryKey": false,
1413
+ "notNull": true,
1414
+ "autoincrement": false
1415
+ },
1416
+ "combination": {
1417
+ "name": "combination",
1418
+ "type": "text",
1419
+ "primaryKey": false,
1420
+ "notNull": true,
1421
+ "autoincrement": false
1422
+ },
1423
+ "name": {
1424
+ "name": "name",
1425
+ "type": "text",
1426
+ "primaryKey": false,
1427
+ "notNull": true,
1428
+ "autoincrement": false
1429
+ },
1430
+ "description": {
1431
+ "name": "description",
1432
+ "type": "text",
1433
+ "primaryKey": false,
1434
+ "notNull": true,
1435
+ "autoincrement": false
1436
+ },
1437
+ "content": {
1438
+ "name": "content",
1439
+ "type": "text",
1440
+ "primaryKey": false,
1441
+ "notNull": true,
1442
+ "autoincrement": false,
1443
+ "default": "'[]'"
1444
+ },
1445
+ "poem": {
1446
+ "name": "poem",
1447
+ "type": "text",
1448
+ "primaryKey": false,
1449
+ "notNull": true,
1450
+ "autoincrement": false,
1451
+ "default": "'[]'"
1452
+ },
1453
+ "leonardo_prompt": {
1454
+ "name": "leonardo_prompt",
1455
+ "type": "text",
1456
+ "primaryKey": false,
1457
+ "notNull": false,
1458
+ "autoincrement": false
1459
+ },
1460
+ "post_images": {
1461
+ "name": "post_images",
1462
+ "type": "text",
1463
+ "primaryKey": false,
1464
+ "notNull": false,
1465
+ "autoincrement": false,
1466
+ "default": "'[]'"
1467
+ },
1468
+ "framed_images": {
1469
+ "name": "framed_images",
1470
+ "type": "text",
1471
+ "primaryKey": false,
1472
+ "notNull": false,
1473
+ "autoincrement": false,
1474
+ "default": "'[]'"
1475
+ },
1476
+ "reel_images": {
1477
+ "name": "reel_images",
1478
+ "type": "text",
1479
+ "primaryKey": false,
1480
+ "notNull": false,
1481
+ "autoincrement": false,
1482
+ "default": "'[]'"
1483
+ },
1484
+ "status": {
1485
+ "name": "status",
1486
+ "type": "text",
1487
+ "primaryKey": false,
1488
+ "notNull": false,
1489
+ "autoincrement": false,
1490
+ "default": "'idle'"
1491
+ },
1492
+ "created_at": {
1493
+ "name": "created_at",
1494
+ "type": "integer",
798
1495
  "primaryKey": false,
799
1496
  "notNull": false,
800
1497
  "autoincrement": false,
801
- "default": "'[]'"
1498
+ "default": "CURRENT_TIMESTAMP"
1499
+ },
1500
+ "updated_at": {
1501
+ "name": "updated_at",
1502
+ "type": "integer",
1503
+ "primaryKey": false,
1504
+ "notNull": false,
1505
+ "autoincrement": false,
1506
+ "default": "CURRENT_TIMESTAMP"
1507
+ }
1508
+ },
1509
+ "indexes": {
1510
+ "concepts_data_language_idx": {
1511
+ "name": "concepts_data_language_idx",
1512
+ "columns": [
1513
+ "language"
1514
+ ],
1515
+ "isUnique": false
1516
+ },
1517
+ "concepts_data_concept_slug_idx": {
1518
+ "name": "concepts_data_concept_slug_idx",
1519
+ "columns": [
1520
+ "concept_slug"
1521
+ ],
1522
+ "isUnique": false
1523
+ },
1524
+ "concepts_data_combination_idx": {
1525
+ "name": "concepts_data_combination_idx",
1526
+ "columns": [
1527
+ "combination"
1528
+ ],
1529
+ "isUnique": false
1530
+ },
1531
+ "concepts_data_name_idx": {
1532
+ "name": "concepts_data_name_idx",
1533
+ "columns": [
1534
+ "name"
1535
+ ],
1536
+ "isUnique": false
1537
+ }
1538
+ },
1539
+ "foreignKeys": {},
1540
+ "compositePrimaryKeys": {},
1541
+ "uniqueConstraints": {},
1542
+ "checkConstraints": {}
1543
+ },
1544
+ "cosmic_mirror_images": {
1545
+ "name": "cosmic_mirror_images",
1546
+ "columns": {
1547
+ "id": {
1548
+ "name": "id",
1549
+ "type": "text",
1550
+ "primaryKey": true,
1551
+ "notNull": true,
1552
+ "autoincrement": false
1553
+ },
1554
+ "user_artifact_id": {
1555
+ "name": "user_artifact_id",
1556
+ "type": "text",
1557
+ "primaryKey": false,
1558
+ "notNull": true,
1559
+ "autoincrement": false
1560
+ },
1561
+ "leonardo_id": {
1562
+ "name": "leonardo_id",
1563
+ "type": "text",
1564
+ "primaryKey": false,
1565
+ "notNull": true,
1566
+ "autoincrement": false
1567
+ },
1568
+ "url": {
1569
+ "name": "url",
1570
+ "type": "text",
1571
+ "primaryKey": false,
1572
+ "notNull": true,
1573
+ "autoincrement": false
1574
+ },
1575
+ "width": {
1576
+ "name": "width",
1577
+ "type": "integer",
1578
+ "primaryKey": false,
1579
+ "notNull": true,
1580
+ "autoincrement": false
1581
+ },
1582
+ "height": {
1583
+ "name": "height",
1584
+ "type": "integer",
1585
+ "primaryKey": false,
1586
+ "notNull": true,
1587
+ "autoincrement": false
1588
+ },
1589
+ "generation_type": {
1590
+ "name": "generation_type",
1591
+ "type": "text",
1592
+ "primaryKey": false,
1593
+ "notNull": true,
1594
+ "autoincrement": false
1595
+ },
1596
+ "timestamp": {
1597
+ "name": "timestamp",
1598
+ "type": "integer",
1599
+ "primaryKey": false,
1600
+ "notNull": true,
1601
+ "autoincrement": false
1602
+ },
1603
+ "created_at": {
1604
+ "name": "created_at",
1605
+ "type": "integer",
1606
+ "primaryKey": false,
1607
+ "notNull": true,
1608
+ "autoincrement": false,
1609
+ "default": "CURRENT_TIMESTAMP"
1610
+ },
1611
+ "updated_at": {
1612
+ "name": "updated_at",
1613
+ "type": "integer",
1614
+ "primaryKey": false,
1615
+ "notNull": true,
1616
+ "autoincrement": false,
1617
+ "default": "CURRENT_TIMESTAMP"
1618
+ }
1619
+ },
1620
+ "indexes": {
1621
+ "cosmic_mirror_images_user_artifact_idx": {
1622
+ "name": "cosmic_mirror_images_user_artifact_idx",
1623
+ "columns": [
1624
+ "user_artifact_id"
1625
+ ],
1626
+ "isUnique": false
1627
+ },
1628
+ "cosmic_mirror_images_type_idx": {
1629
+ "name": "cosmic_mirror_images_type_idx",
1630
+ "columns": [
1631
+ "generation_type"
1632
+ ],
1633
+ "isUnique": false
1634
+ }
1635
+ },
1636
+ "foreignKeys": {
1637
+ "cosmic_mirror_images_user_artifact_id_user_artifacts_id_fk": {
1638
+ "name": "cosmic_mirror_images_user_artifact_id_user_artifacts_id_fk",
1639
+ "tableFrom": "cosmic_mirror_images",
1640
+ "tableTo": "user_artifacts",
1641
+ "columnsFrom": [
1642
+ "user_artifact_id"
1643
+ ],
1644
+ "columnsTo": [
1645
+ "id"
1646
+ ],
1647
+ "onDelete": "cascade",
1648
+ "onUpdate": "no action"
1649
+ }
1650
+ },
1651
+ "compositePrimaryKeys": {},
1652
+ "uniqueConstraints": {},
1653
+ "checkConstraints": {}
1654
+ },
1655
+ "generations": {
1656
+ "name": "generations",
1657
+ "columns": {
1658
+ "id": {
1659
+ "name": "id",
1660
+ "type": "text",
1661
+ "primaryKey": true,
1662
+ "notNull": true,
1663
+ "autoincrement": false
1664
+ },
1665
+ "user_id": {
1666
+ "name": "user_id",
1667
+ "type": "text",
1668
+ "primaryKey": false,
1669
+ "notNull": false,
1670
+ "autoincrement": false
1671
+ },
1672
+ "artifact_id": {
1673
+ "name": "artifact_id",
1674
+ "type": "text",
1675
+ "primaryKey": false,
1676
+ "notNull": false,
1677
+ "autoincrement": false
1678
+ },
1679
+ "archetype_index": {
1680
+ "name": "archetype_index",
1681
+ "type": "integer",
1682
+ "primaryKey": false,
1683
+ "notNull": false,
1684
+ "autoincrement": false
1685
+ },
1686
+ "user_artifact_id": {
1687
+ "name": "user_artifact_id",
1688
+ "type": "text",
1689
+ "primaryKey": false,
1690
+ "notNull": false,
1691
+ "autoincrement": false
1692
+ },
1693
+ "gender": {
1694
+ "name": "gender",
1695
+ "type": "text",
1696
+ "primaryKey": false,
1697
+ "notNull": false,
1698
+ "autoincrement": false
1699
+ },
1700
+ "concept_combination_id": {
1701
+ "name": "concept_combination_id",
1702
+ "type": "text",
1703
+ "primaryKey": false,
1704
+ "notNull": false,
1705
+ "autoincrement": false
1706
+ },
1707
+ "archetype_data_id": {
1708
+ "name": "archetype_data_id",
1709
+ "type": "text",
1710
+ "primaryKey": false,
1711
+ "notNull": false,
1712
+ "autoincrement": false
1713
+ },
1714
+ "type": {
1715
+ "name": "type",
1716
+ "type": "text",
1717
+ "primaryKey": false,
1718
+ "notNull": true,
1719
+ "autoincrement": false
1720
+ },
1721
+ "status": {
1722
+ "name": "status",
1723
+ "type": "text",
1724
+ "primaryKey": false,
1725
+ "notNull": true,
1726
+ "autoincrement": false,
1727
+ "default": "'pending'"
1728
+ },
1729
+ "url": {
1730
+ "name": "url",
1731
+ "type": "text",
1732
+ "primaryKey": false,
1733
+ "notNull": false,
1734
+ "autoincrement": false
1735
+ },
1736
+ "created_at": {
1737
+ "name": "created_at",
1738
+ "type": "integer",
1739
+ "primaryKey": false,
1740
+ "notNull": true,
1741
+ "autoincrement": false,
1742
+ "default": "CURRENT_TIMESTAMP"
1743
+ },
1744
+ "updated_at": {
1745
+ "name": "updated_at",
1746
+ "type": "integer",
1747
+ "primaryKey": false,
1748
+ "notNull": true,
1749
+ "autoincrement": false,
1750
+ "default": "CURRENT_TIMESTAMP"
1751
+ }
1752
+ },
1753
+ "indexes": {
1754
+ "generations_user_id_idx": {
1755
+ "name": "generations_user_id_idx",
1756
+ "columns": [
1757
+ "user_id"
1758
+ ],
1759
+ "isUnique": false
1760
+ },
1761
+ "generations_concept_combination_id_idx": {
1762
+ "name": "generations_concept_combination_id_idx",
1763
+ "columns": [
1764
+ "concept_combination_id"
1765
+ ],
1766
+ "isUnique": false
1767
+ },
1768
+ "generations_archetype_index_idx": {
1769
+ "name": "generations_archetype_index_idx",
1770
+ "columns": [
1771
+ "archetype_index"
1772
+ ],
1773
+ "isUnique": false
802
1774
  },
803
- "poem": {
804
- "name": "poem",
1775
+ "generations_archetype_data_id_idx": {
1776
+ "name": "generations_archetype_data_id_idx",
1777
+ "columns": [
1778
+ "archetype_data_id"
1779
+ ],
1780
+ "isUnique": false
1781
+ }
1782
+ },
1783
+ "foreignKeys": {
1784
+ "generations_user_id_users_id_fk": {
1785
+ "name": "generations_user_id_users_id_fk",
1786
+ "tableFrom": "generations",
1787
+ "tableTo": "users",
1788
+ "columnsFrom": [
1789
+ "user_id"
1790
+ ],
1791
+ "columnsTo": [
1792
+ "id"
1793
+ ],
1794
+ "onDelete": "cascade",
1795
+ "onUpdate": "no action"
1796
+ },
1797
+ "generations_artifact_id_artifacts_id_fk": {
1798
+ "name": "generations_artifact_id_artifacts_id_fk",
1799
+ "tableFrom": "generations",
1800
+ "tableTo": "artifacts",
1801
+ "columnsFrom": [
1802
+ "artifact_id"
1803
+ ],
1804
+ "columnsTo": [
1805
+ "id"
1806
+ ],
1807
+ "onDelete": "cascade",
1808
+ "onUpdate": "no action"
1809
+ },
1810
+ "generations_user_artifact_id_user_artifacts_id_fk": {
1811
+ "name": "generations_user_artifact_id_user_artifacts_id_fk",
1812
+ "tableFrom": "generations",
1813
+ "tableTo": "user_artifacts",
1814
+ "columnsFrom": [
1815
+ "user_artifact_id"
1816
+ ],
1817
+ "columnsTo": [
1818
+ "id"
1819
+ ],
1820
+ "onDelete": "cascade",
1821
+ "onUpdate": "no action"
1822
+ },
1823
+ "generations_concept_combination_id_concept_combinations_id_fk": {
1824
+ "name": "generations_concept_combination_id_concept_combinations_id_fk",
1825
+ "tableFrom": "generations",
1826
+ "tableTo": "concept_combinations",
1827
+ "columnsFrom": [
1828
+ "concept_combination_id"
1829
+ ],
1830
+ "columnsTo": [
1831
+ "id"
1832
+ ],
1833
+ "onDelete": "cascade",
1834
+ "onUpdate": "no action"
1835
+ },
1836
+ "generations_archetype_data_id_archetypes_data_id_fk": {
1837
+ "name": "generations_archetype_data_id_archetypes_data_id_fk",
1838
+ "tableFrom": "generations",
1839
+ "tableTo": "archetypes_data",
1840
+ "columnsFrom": [
1841
+ "archetype_data_id"
1842
+ ],
1843
+ "columnsTo": [
1844
+ "id"
1845
+ ],
1846
+ "onDelete": "cascade",
1847
+ "onUpdate": "no action"
1848
+ }
1849
+ },
1850
+ "compositePrimaryKeys": {},
1851
+ "uniqueConstraints": {},
1852
+ "checkConstraints": {}
1853
+ },
1854
+ "house_reports": {
1855
+ "name": "house_reports",
1856
+ "columns": {
1857
+ "id": {
1858
+ "name": "id",
805
1859
  "type": "text",
806
- "primaryKey": false,
807
- "notNull": false,
808
- "autoincrement": false,
809
- "default": "'[]'"
1860
+ "primaryKey": true,
1861
+ "notNull": true,
1862
+ "autoincrement": false
810
1863
  },
811
- "leonardo_prompt": {
812
- "name": "leonardo_prompt",
1864
+ "sign": {
1865
+ "name": "sign",
813
1866
  "type": "text",
814
1867
  "primaryKey": false,
815
- "notNull": false,
1868
+ "notNull": true,
816
1869
  "autoincrement": false
817
1870
  },
818
- "post_images": {
819
- "name": "post_images",
1871
+ "house": {
1872
+ "name": "house",
1873
+ "type": "integer",
1874
+ "primaryKey": false,
1875
+ "notNull": true,
1876
+ "autoincrement": false
1877
+ },
1878
+ "description_template_id": {
1879
+ "name": "description_template_id",
820
1880
  "type": "text",
821
1881
  "primaryKey": false,
822
1882
  "notNull": false,
823
- "autoincrement": false,
824
- "default": "'[]'"
1883
+ "autoincrement": false
825
1884
  },
826
- "reel_images": {
827
- "name": "reel_images",
1885
+ "en_report": {
1886
+ "name": "en_report",
828
1887
  "type": "text",
829
1888
  "primaryKey": false,
830
1889
  "notNull": false,
831
- "autoincrement": false,
832
- "default": "'[]'"
1890
+ "autoincrement": false
833
1891
  },
834
- "status": {
835
- "name": "status",
1892
+ "pt_report": {
1893
+ "name": "pt_report",
836
1894
  "type": "text",
837
1895
  "primaryKey": false,
838
1896
  "notNull": false,
839
- "autoincrement": false,
840
- "default": "'idle'"
1897
+ "autoincrement": false
841
1898
  },
842
1899
  "created_at": {
843
1900
  "name": "created_at",
@@ -857,42 +1914,43 @@
857
1914
  }
858
1915
  },
859
1916
  "indexes": {
860
- "concepts_data_language_idx": {
861
- "name": "concepts_data_language_idx",
1917
+ "house_reports_sign_house_idx": {
1918
+ "name": "house_reports_sign_house_idx",
862
1919
  "columns": [
863
- "language"
1920
+ "sign",
1921
+ "house"
864
1922
  ],
865
1923
  "isUnique": false
866
1924
  },
867
- "concepts_data_concept_slug_idx": {
868
- "name": "concepts_data_concept_slug_idx",
1925
+ "house_reports_description_template_idx": {
1926
+ "name": "house_reports_description_template_idx",
869
1927
  "columns": [
870
- "concept_slug"
1928
+ "description_template_id"
871
1929
  ],
872
1930
  "isUnique": false
873
- },
874
- "concepts_data_combination_idx": {
875
- "name": "concepts_data_combination_idx",
876
- "columns": [
877
- "combination"
1931
+ }
1932
+ },
1933
+ "foreignKeys": {
1934
+ "house_reports_description_template_id_astro_description_templates_id_fk": {
1935
+ "name": "house_reports_description_template_id_astro_description_templates_id_fk",
1936
+ "tableFrom": "house_reports",
1937
+ "tableTo": "astro_description_templates",
1938
+ "columnsFrom": [
1939
+ "description_template_id"
878
1940
  ],
879
- "isUnique": false
880
- },
881
- "concepts_data_name_idx": {
882
- "name": "concepts_data_name_idx",
883
- "columns": [
884
- "name"
1941
+ "columnsTo": [
1942
+ "id"
885
1943
  ],
886
- "isUnique": false
1944
+ "onDelete": "set null",
1945
+ "onUpdate": "no action"
887
1946
  }
888
1947
  },
889
- "foreignKeys": {},
890
1948
  "compositePrimaryKeys": {},
891
1949
  "uniqueConstraints": {},
892
1950
  "checkConstraints": {}
893
1951
  },
894
- "credits_transactions": {
895
- "name": "credits_transactions",
1952
+ "logs": {
1953
+ "name": "logs",
896
1954
  "columns": {
897
1955
  "id": {
898
1956
  "name": "id",
@@ -901,54 +1959,81 @@
901
1959
  "notNull": true,
902
1960
  "autoincrement": false
903
1961
  },
904
- "user_id": {
905
- "name": "user_id",
1962
+ "level": {
1963
+ "name": "level",
906
1964
  "type": "text",
907
1965
  "primaryKey": false,
908
1966
  "notNull": true,
909
1967
  "autoincrement": false
910
1968
  },
911
- "type": {
912
- "name": "type",
1969
+ "message": {
1970
+ "name": "message",
913
1971
  "type": "text",
914
1972
  "primaryKey": false,
915
1973
  "notNull": true,
916
1974
  "autoincrement": false
917
1975
  },
918
- "amount": {
919
- "name": "amount",
1976
+ "context": {
1977
+ "name": "context",
1978
+ "type": "text",
1979
+ "primaryKey": false,
1980
+ "notNull": true,
1981
+ "autoincrement": false,
1982
+ "default": "'{}'"
1983
+ },
1984
+ "created_at": {
1985
+ "name": "created_at",
920
1986
  "type": "integer",
921
1987
  "primaryKey": false,
1988
+ "notNull": false,
1989
+ "autoincrement": false,
1990
+ "default": "CURRENT_TIMESTAMP"
1991
+ }
1992
+ },
1993
+ "indexes": {},
1994
+ "foreignKeys": {},
1995
+ "compositePrimaryKeys": {},
1996
+ "uniqueConstraints": {},
1997
+ "checkConstraints": {}
1998
+ },
1999
+ "payments": {
2000
+ "name": "payments",
2001
+ "columns": {
2002
+ "id": {
2003
+ "name": "id",
2004
+ "type": "text",
2005
+ "primaryKey": true,
922
2006
  "notNull": true,
923
2007
  "autoincrement": false
924
2008
  },
925
- "description": {
926
- "name": "description",
2009
+ "user_id": {
2010
+ "name": "user_id",
927
2011
  "type": "text",
928
2012
  "primaryKey": false,
929
- "notNull": false,
2013
+ "notNull": true,
930
2014
  "autoincrement": false
931
2015
  },
932
- "product_type": {
933
- "name": "product_type",
2016
+ "checkout_id": {
2017
+ "name": "checkout_id",
934
2018
  "type": "text",
935
2019
  "primaryKey": false,
936
- "notNull": false,
2020
+ "notNull": true,
937
2021
  "autoincrement": false
938
2022
  },
939
- "product_id": {
940
- "name": "product_id",
941
- "type": "text",
2023
+ "amount": {
2024
+ "name": "amount",
2025
+ "type": "real",
942
2026
  "primaryKey": false,
943
- "notNull": false,
2027
+ "notNull": true,
944
2028
  "autoincrement": false
945
2029
  },
946
- "payment_id": {
947
- "name": "payment_id",
2030
+ "status": {
2031
+ "name": "status",
948
2032
  "type": "text",
949
2033
  "primaryKey": false,
950
2034
  "notNull": true,
951
- "autoincrement": false
2035
+ "autoincrement": false,
2036
+ "default": "'pending'"
952
2037
  },
953
2038
  "created_at": {
954
2039
  "name": "created_at",
@@ -968,18 +2053,32 @@
968
2053
  }
969
2054
  },
970
2055
  "indexes": {
971
- "credits_transactions_user_id_idx": {
972
- "name": "credits_transactions_user_id_idx",
2056
+ "payments_checkout_id_unique": {
2057
+ "name": "payments_checkout_id_unique",
2058
+ "columns": [
2059
+ "checkout_id"
2060
+ ],
2061
+ "isUnique": true
2062
+ },
2063
+ "payments_user_id_idx": {
2064
+ "name": "payments_user_id_idx",
973
2065
  "columns": [
974
2066
  "user_id"
975
2067
  ],
976
2068
  "isUnique": false
2069
+ },
2070
+ "payments_checkout_id_idx": {
2071
+ "name": "payments_checkout_id_idx",
2072
+ "columns": [
2073
+ "checkout_id"
2074
+ ],
2075
+ "isUnique": false
977
2076
  }
978
2077
  },
979
2078
  "foreignKeys": {
980
- "credits_transactions_user_id_users_id_fk": {
981
- "name": "credits_transactions_user_id_users_id_fk",
982
- "tableFrom": "credits_transactions",
2079
+ "payments_user_id_users_id_fk": {
2080
+ "name": "payments_user_id_users_id_fk",
2081
+ "tableFrom": "payments",
983
2082
  "tableTo": "users",
984
2083
  "columnsFrom": [
985
2084
  "user_id"
@@ -995,8 +2094,8 @@
995
2094
  "uniqueConstraints": {},
996
2095
  "checkConstraints": {}
997
2096
  },
998
- "generations": {
999
- "name": "generations",
2097
+ "products": {
2098
+ "name": "products",
1000
2099
  "columns": {
1001
2100
  "id": {
1002
2101
  "name": "id",
@@ -1005,65 +2104,29 @@
1005
2104
  "notNull": true,
1006
2105
  "autoincrement": false
1007
2106
  },
1008
- "user_id": {
1009
- "name": "user_id",
1010
- "type": "text",
1011
- "primaryKey": false,
1012
- "notNull": false,
1013
- "autoincrement": false
1014
- },
1015
- "artifact_id": {
1016
- "name": "artifact_id",
1017
- "type": "text",
1018
- "primaryKey": false,
1019
- "notNull": false,
1020
- "autoincrement": false
1021
- },
1022
- "archetype_index": {
1023
- "name": "archetype_index",
1024
- "type": "integer",
1025
- "primaryKey": false,
1026
- "notNull": false,
1027
- "autoincrement": false
1028
- },
1029
- "user_artifact_id": {
1030
- "name": "user_artifact_id",
1031
- "type": "text",
1032
- "primaryKey": false,
1033
- "notNull": false,
1034
- "autoincrement": false
1035
- },
1036
- "gender": {
1037
- "name": "gender",
1038
- "type": "text",
1039
- "primaryKey": false,
1040
- "notNull": false,
1041
- "autoincrement": false
1042
- },
1043
- "concept_combination_id": {
1044
- "name": "concept_combination_id",
2107
+ "slug": {
2108
+ "name": "slug",
1045
2109
  "type": "text",
1046
2110
  "primaryKey": false,
1047
- "notNull": false,
2111
+ "notNull": true,
1048
2112
  "autoincrement": false
1049
2113
  },
1050
- "type": {
1051
- "name": "type",
1052
- "type": "text",
2114
+ "price": {
2115
+ "name": "price",
2116
+ "type": "real",
1053
2117
  "primaryKey": false,
1054
2118
  "notNull": true,
1055
2119
  "autoincrement": false
1056
2120
  },
1057
- "status": {
1058
- "name": "status",
2121
+ "image_url": {
2122
+ "name": "image_url",
1059
2123
  "type": "text",
1060
2124
  "primaryKey": false,
1061
- "notNull": true,
1062
- "autoincrement": false,
1063
- "default": "'pending'"
2125
+ "notNull": false,
2126
+ "autoincrement": false
1064
2127
  },
1065
- "url": {
1066
- "name": "url",
2128
+ "image_base64": {
2129
+ "name": "image_base64",
1067
2130
  "type": "text",
1068
2131
  "primaryKey": false,
1069
2132
  "notNull": false,
@@ -1087,82 +2150,22 @@
1087
2150
  }
1088
2151
  },
1089
2152
  "indexes": {
1090
- "generations_user_id_idx": {
1091
- "name": "generations_user_id_idx",
1092
- "columns": [
1093
- "user_id"
1094
- ],
1095
- "isUnique": false
1096
- },
1097
- "generations_concept_combination_id_idx": {
1098
- "name": "generations_concept_combination_id_idx",
2153
+ "products_slug_unique": {
2154
+ "name": "products_slug_unique",
1099
2155
  "columns": [
1100
- "concept_combination_id"
2156
+ "slug"
1101
2157
  ],
1102
- "isUnique": false
2158
+ "isUnique": true
1103
2159
  },
1104
- "generations_archetype_index_idx": {
1105
- "name": "generations_archetype_index_idx",
2160
+ "products_slug_idx": {
2161
+ "name": "products_slug_idx",
1106
2162
  "columns": [
1107
- "archetype_index"
2163
+ "slug"
1108
2164
  ],
1109
2165
  "isUnique": false
1110
2166
  }
1111
2167
  },
1112
- "foreignKeys": {
1113
- "generations_user_id_users_id_fk": {
1114
- "name": "generations_user_id_users_id_fk",
1115
- "tableFrom": "generations",
1116
- "tableTo": "users",
1117
- "columnsFrom": [
1118
- "user_id"
1119
- ],
1120
- "columnsTo": [
1121
- "id"
1122
- ],
1123
- "onDelete": "cascade",
1124
- "onUpdate": "no action"
1125
- },
1126
- "generations_artifact_id_artifacts_id_fk": {
1127
- "name": "generations_artifact_id_artifacts_id_fk",
1128
- "tableFrom": "generations",
1129
- "tableTo": "artifacts",
1130
- "columnsFrom": [
1131
- "artifact_id"
1132
- ],
1133
- "columnsTo": [
1134
- "id"
1135
- ],
1136
- "onDelete": "cascade",
1137
- "onUpdate": "no action"
1138
- },
1139
- "generations_user_artifact_id_user_artifacts_id_fk": {
1140
- "name": "generations_user_artifact_id_user_artifacts_id_fk",
1141
- "tableFrom": "generations",
1142
- "tableTo": "user_artifacts",
1143
- "columnsFrom": [
1144
- "user_artifact_id"
1145
- ],
1146
- "columnsTo": [
1147
- "id"
1148
- ],
1149
- "onDelete": "cascade",
1150
- "onUpdate": "no action"
1151
- },
1152
- "generations_concept_combination_id_concept_combinations_id_fk": {
1153
- "name": "generations_concept_combination_id_concept_combinations_id_fk",
1154
- "tableFrom": "generations",
1155
- "tableTo": "concept_combinations",
1156
- "columnsFrom": [
1157
- "concept_combination_id"
1158
- ],
1159
- "columnsTo": [
1160
- "id"
1161
- ],
1162
- "onDelete": "cascade",
1163
- "onUpdate": "no action"
1164
- }
1165
- },
2168
+ "foreignKeys": {},
1166
2169
  "compositePrimaryKeys": {},
1167
2170
  "uniqueConstraints": {},
1168
2171
  "checkConstraints": {}
@@ -1274,64 +2277,57 @@
1274
2277
  "notNull": true,
1275
2278
  "autoincrement": false
1276
2279
  },
1277
- "artifact_id": {
1278
- "name": "artifact_id",
1279
- "type": "text",
1280
- "primaryKey": false,
1281
- "notNull": true,
1282
- "autoincrement": false
1283
- },
1284
- "gender": {
1285
- "name": "gender",
2280
+ "concept_id": {
2281
+ "name": "concept_id",
1286
2282
  "type": "text",
1287
2283
  "primaryKey": false,
1288
2284
  "notNull": true,
1289
2285
  "autoincrement": false
1290
2286
  },
1291
- "archetype_index": {
1292
- "name": "archetype_index",
2287
+ "artifact_id": {
2288
+ "name": "artifact_id",
1293
2289
  "type": "text",
1294
2290
  "primaryKey": false,
1295
2291
  "notNull": true,
1296
2292
  "autoincrement": false
1297
2293
  },
1298
- "post_image_id": {
1299
- "name": "post_image_id",
2294
+ "archetype_data_id": {
2295
+ "name": "archetype_data_id",
1300
2296
  "type": "text",
1301
2297
  "primaryKey": false,
1302
2298
  "notNull": false,
1303
2299
  "autoincrement": false
1304
2300
  },
1305
- "reel_image_id": {
1306
- "name": "reel_image_id",
2301
+ "post_images": {
2302
+ "name": "post_images",
1307
2303
  "type": "text",
1308
2304
  "primaryKey": false,
1309
2305
  "notNull": false,
1310
2306
  "autoincrement": false
1311
2307
  },
1312
- "post_image_url": {
1313
- "name": "post_image_url",
2308
+ "reel_images": {
2309
+ "name": "reel_images",
1314
2310
  "type": "text",
1315
2311
  "primaryKey": false,
1316
2312
  "notNull": false,
1317
2313
  "autoincrement": false
1318
2314
  },
1319
- "reel_image_url": {
1320
- "name": "reel_image_url",
2315
+ "chosen_image_url": {
2316
+ "name": "chosen_image_url",
1321
2317
  "type": "text",
1322
2318
  "primaryKey": false,
1323
2319
  "notNull": false,
1324
2320
  "autoincrement": false
1325
2321
  },
1326
- "post_generation_id": {
1327
- "name": "post_generation_id",
2322
+ "upscaled_image": {
2323
+ "name": "upscaled_image",
1328
2324
  "type": "text",
1329
2325
  "primaryKey": false,
1330
2326
  "notNull": false,
1331
2327
  "autoincrement": false
1332
2328
  },
1333
- "reel_generation_id": {
1334
- "name": "reel_generation_id",
2329
+ "framed_image_url": {
2330
+ "name": "framed_image_url",
1335
2331
  "type": "text",
1336
2332
  "primaryKey": false,
1337
2333
  "notNull": false,
@@ -1345,6 +2341,14 @@
1345
2341
  "autoincrement": false,
1346
2342
  "default": "'pending'"
1347
2343
  },
2344
+ "version": {
2345
+ "name": "version",
2346
+ "type": "integer",
2347
+ "primaryKey": false,
2348
+ "notNull": true,
2349
+ "autoincrement": false,
2350
+ "default": 0
2351
+ },
1348
2352
  "created_at": {
1349
2353
  "name": "created_at",
1350
2354
  "type": "integer",
@@ -1383,6 +2387,20 @@
1383
2387
  "status"
1384
2388
  ],
1385
2389
  "isUnique": false
2390
+ },
2391
+ "user_artifacts_archetype_data_id_idx": {
2392
+ "name": "user_artifacts_archetype_data_id_idx",
2393
+ "columns": [
2394
+ "archetype_data_id"
2395
+ ],
2396
+ "isUnique": false
2397
+ },
2398
+ "user_artifacts_concept_id_idx": {
2399
+ "name": "user_artifacts_concept_id_idx",
2400
+ "columns": [
2401
+ "concept_id"
2402
+ ],
2403
+ "isUnique": false
1386
2404
  }
1387
2405
  },
1388
2406
  "foreignKeys": {
@@ -1412,6 +2430,19 @@
1412
2430
  "onDelete": "cascade",
1413
2431
  "onUpdate": "no action"
1414
2432
  },
2433
+ "user_artifacts_concept_id_concepts_id_fk": {
2434
+ "name": "user_artifacts_concept_id_concepts_id_fk",
2435
+ "tableFrom": "user_artifacts",
2436
+ "tableTo": "concepts",
2437
+ "columnsFrom": [
2438
+ "concept_id"
2439
+ ],
2440
+ "columnsTo": [
2441
+ "id"
2442
+ ],
2443
+ "onDelete": "cascade",
2444
+ "onUpdate": "no action"
2445
+ },
1415
2446
  "user_artifacts_artifact_id_artifacts_id_fk": {
1416
2447
  "name": "user_artifacts_artifact_id_artifacts_id_fk",
1417
2448
  "tableFrom": "user_artifacts",
@@ -1424,6 +2455,19 @@
1424
2455
  ],
1425
2456
  "onDelete": "cascade",
1426
2457
  "onUpdate": "no action"
2458
+ },
2459
+ "user_artifacts_archetype_data_id_archetypes_data_id_fk": {
2460
+ "name": "user_artifacts_archetype_data_id_archetypes_data_id_fk",
2461
+ "tableFrom": "user_artifacts",
2462
+ "tableTo": "archetypes_data",
2463
+ "columnsFrom": [
2464
+ "archetype_data_id"
2465
+ ],
2466
+ "columnsTo": [
2467
+ "id"
2468
+ ],
2469
+ "onDelete": "cascade",
2470
+ "onUpdate": "no action"
1427
2471
  }
1428
2472
  },
1429
2473
  "compositePrimaryKeys": {},
@@ -1476,6 +2520,14 @@
1476
2520
  "notNull": true,
1477
2521
  "autoincrement": false,
1478
2522
  "default": "CURRENT_TIMESTAMP"
2523
+ },
2524
+ "image_idx": {
2525
+ "name": "image_idx",
2526
+ "type": "integer",
2527
+ "primaryKey": false,
2528
+ "notNull": true,
2529
+ "autoincrement": false,
2530
+ "default": 0
1479
2531
  }
1480
2532
  },
1481
2533
  "indexes": {
@@ -1539,6 +2591,152 @@
1539
2591
  "uniqueConstraints": {},
1540
2592
  "checkConstraints": {}
1541
2593
  },
2594
+ "user_products": {
2595
+ "name": "user_products",
2596
+ "columns": {
2597
+ "id": {
2598
+ "name": "id",
2599
+ "type": "text",
2600
+ "primaryKey": true,
2601
+ "notNull": true,
2602
+ "autoincrement": false
2603
+ },
2604
+ "user_id": {
2605
+ "name": "user_id",
2606
+ "type": "text",
2607
+ "primaryKey": false,
2608
+ "notNull": true,
2609
+ "autoincrement": false
2610
+ },
2611
+ "product_id": {
2612
+ "name": "product_id",
2613
+ "type": "text",
2614
+ "primaryKey": false,
2615
+ "notNull": true,
2616
+ "autoincrement": false
2617
+ },
2618
+ "checkout_id": {
2619
+ "name": "checkout_id",
2620
+ "type": "text",
2621
+ "primaryKey": false,
2622
+ "notNull": false,
2623
+ "autoincrement": false
2624
+ },
2625
+ "payment_id": {
2626
+ "name": "payment_id",
2627
+ "type": "text",
2628
+ "primaryKey": false,
2629
+ "notNull": false,
2630
+ "autoincrement": false
2631
+ },
2632
+ "status": {
2633
+ "name": "status",
2634
+ "type": "text",
2635
+ "primaryKey": false,
2636
+ "notNull": true,
2637
+ "autoincrement": false,
2638
+ "default": "'locked'"
2639
+ },
2640
+ "created_at": {
2641
+ "name": "created_at",
2642
+ "type": "integer",
2643
+ "primaryKey": false,
2644
+ "notNull": true,
2645
+ "autoincrement": false,
2646
+ "default": "CURRENT_TIMESTAMP"
2647
+ },
2648
+ "updated_at": {
2649
+ "name": "updated_at",
2650
+ "type": "integer",
2651
+ "primaryKey": false,
2652
+ "notNull": true,
2653
+ "autoincrement": false,
2654
+ "default": "CURRENT_TIMESTAMP"
2655
+ }
2656
+ },
2657
+ "indexes": {
2658
+ "user_products_user_id_idx": {
2659
+ "name": "user_products_user_id_idx",
2660
+ "columns": [
2661
+ "user_id"
2662
+ ],
2663
+ "isUnique": false
2664
+ },
2665
+ "user_products_product_id_idx": {
2666
+ "name": "user_products_product_id_idx",
2667
+ "columns": [
2668
+ "product_id"
2669
+ ],
2670
+ "isUnique": false
2671
+ },
2672
+ "user_products_payment_id_idx": {
2673
+ "name": "user_products_payment_id_idx",
2674
+ "columns": [
2675
+ "payment_id"
2676
+ ],
2677
+ "isUnique": false
2678
+ },
2679
+ "user_products_checkout_id_idx": {
2680
+ "name": "user_products_checkout_id_idx",
2681
+ "columns": [
2682
+ "checkout_id"
2683
+ ],
2684
+ "isUnique": false
2685
+ },
2686
+ "user_product_unique": {
2687
+ "name": "user_product_unique",
2688
+ "columns": [
2689
+ "user_id",
2690
+ "product_id"
2691
+ ],
2692
+ "isUnique": true
2693
+ }
2694
+ },
2695
+ "foreignKeys": {
2696
+ "user_products_user_id_users_id_fk": {
2697
+ "name": "user_products_user_id_users_id_fk",
2698
+ "tableFrom": "user_products",
2699
+ "tableTo": "users",
2700
+ "columnsFrom": [
2701
+ "user_id"
2702
+ ],
2703
+ "columnsTo": [
2704
+ "id"
2705
+ ],
2706
+ "onDelete": "cascade",
2707
+ "onUpdate": "no action"
2708
+ },
2709
+ "user_products_product_id_products_id_fk": {
2710
+ "name": "user_products_product_id_products_id_fk",
2711
+ "tableFrom": "user_products",
2712
+ "tableTo": "products",
2713
+ "columnsFrom": [
2714
+ "product_id"
2715
+ ],
2716
+ "columnsTo": [
2717
+ "id"
2718
+ ],
2719
+ "onDelete": "cascade",
2720
+ "onUpdate": "no action"
2721
+ },
2722
+ "user_products_payment_id_payments_id_fk": {
2723
+ "name": "user_products_payment_id_payments_id_fk",
2724
+ "tableFrom": "user_products",
2725
+ "tableTo": "payments",
2726
+ "columnsFrom": [
2727
+ "payment_id"
2728
+ ],
2729
+ "columnsTo": [
2730
+ "id"
2731
+ ],
2732
+ "onDelete": "set null",
2733
+ "onUpdate": "no action"
2734
+ }
2735
+ },
2736
+ "compositePrimaryKeys": {},
2737
+ "uniqueConstraints": {},
2738
+ "checkConstraints": {}
2739
+ },
1542
2740
  "users": {
1543
2741
  "name": "users",
1544
2742
  "columns": {
@@ -1689,6 +2887,13 @@
1689
2887
  "notNull": false,
1690
2888
  "autoincrement": false
1691
2889
  },
2890
+ "customer_id": {
2891
+ "name": "customer_id",
2892
+ "type": "text",
2893
+ "primaryKey": false,
2894
+ "notNull": false,
2895
+ "autoincrement": false
2896
+ },
1692
2897
  "credits_balance": {
1693
2898
  "name": "credits_balance",
1694
2899
  "type": "integer",
@@ -1779,6 +2984,13 @@
1779
2984
  "oauth_provider_id"
1780
2985
  ],
1781
2986
  "isUnique": false
2987
+ },
2988
+ "users_customer_id_idx": {
2989
+ "name": "users_customer_id_idx",
2990
+ "columns": [
2991
+ "customer_id"
2992
+ ],
2993
+ "isUnique": false
1782
2994
  }
1783
2995
  },
1784
2996
  "foreignKeys": {},