@zodic/shared 0.0.401 → 0.0.403

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,2417 +0,0 @@
1
- {
2
- "version": "6",
3
- "dialect": "sqlite",
4
- "id": "c4da4490-7650-4640-9b14-c10eca36381c",
5
- "prevId": "05fcd87c-1ac6-42ae-bc65-043e6a50d297",
6
- "tables": {
7
- "artifact_faceswap": {
8
- "name": "artifact_faceswap",
9
- "columns": {
10
- "id": {
11
- "name": "id",
12
- "type": "text",
13
- "primaryKey": true,
14
- "notNull": true,
15
- "autoincrement": false
16
- },
17
- "user_artifact_id": {
18
- "name": "user_artifact_id",
19
- "type": "text",
20
- "primaryKey": false,
21
- "notNull": true,
22
- "autoincrement": false
23
- },
24
- "face_swapped_image_url": {
25
- "name": "face_swapped_image_url",
26
- "type": "text",
27
- "primaryKey": false,
28
- "notNull": false,
29
- "autoincrement": false
30
- },
31
- "status": {
32
- "name": "status",
33
- "type": "text",
34
- "primaryKey": false,
35
- "notNull": true,
36
- "autoincrement": false,
37
- "default": "'pending'"
38
- },
39
- "created_at": {
40
- "name": "created_at",
41
- "type": "integer",
42
- "primaryKey": false,
43
- "notNull": true,
44
- "autoincrement": false,
45
- "default": "CURRENT_TIMESTAMP"
46
- },
47
- "updated_at": {
48
- "name": "updated_at",
49
- "type": "integer",
50
- "primaryKey": false,
51
- "notNull": true,
52
- "autoincrement": false,
53
- "default": "CURRENT_TIMESTAMP"
54
- }
55
- },
56
- "indexes": {},
57
- "foreignKeys": {
58
- "artifact_faceswap_user_artifact_id_user_artifacts_id_fk": {
59
- "name": "artifact_faceswap_user_artifact_id_user_artifacts_id_fk",
60
- "tableFrom": "artifact_faceswap",
61
- "tableTo": "user_artifacts",
62
- "columnsFrom": [
63
- "user_artifact_id"
64
- ],
65
- "columnsTo": [
66
- "id"
67
- ],
68
- "onDelete": "cascade",
69
- "onUpdate": "no action"
70
- }
71
- },
72
- "compositePrimaryKeys": {},
73
- "uniqueConstraints": {},
74
- "checkConstraints": {}
75
- },
76
- "artifact_video_generation": {
77
- "name": "artifact_video_generation",
78
- "columns": {
79
- "id": {
80
- "name": "id",
81
- "type": "text",
82
- "primaryKey": true,
83
- "notNull": true,
84
- "autoincrement": false
85
- },
86
- "user_artifact_id": {
87
- "name": "user_artifact_id",
88
- "type": "text",
89
- "primaryKey": false,
90
- "notNull": true,
91
- "autoincrement": false
92
- },
93
- "video_status": {
94
- "name": "video_status",
95
- "type": "text",
96
- "primaryKey": false,
97
- "notNull": false,
98
- "autoincrement": false,
99
- "default": "'pending'"
100
- },
101
- "video_url": {
102
- "name": "video_url",
103
- "type": "text",
104
- "primaryKey": false,
105
- "notNull": false,
106
- "autoincrement": false
107
- },
108
- "description": {
109
- "name": "description",
110
- "type": "text",
111
- "primaryKey": false,
112
- "notNull": false,
113
- "autoincrement": false
114
- },
115
- "duration": {
116
- "name": "duration",
117
- "type": "integer",
118
- "primaryKey": false,
119
- "notNull": false,
120
- "autoincrement": false
121
- },
122
- "created_at": {
123
- "name": "created_at",
124
- "type": "integer",
125
- "primaryKey": false,
126
- "notNull": true,
127
- "autoincrement": false,
128
- "default": "CURRENT_TIMESTAMP"
129
- },
130
- "updated_at": {
131
- "name": "updated_at",
132
- "type": "integer",
133
- "primaryKey": false,
134
- "notNull": true,
135
- "autoincrement": false,
136
- "default": "CURRENT_TIMESTAMP"
137
- }
138
- },
139
- "indexes": {
140
- "artifact_video_generation_status_idx": {
141
- "name": "artifact_video_generation_status_idx",
142
- "columns": [
143
- "video_status"
144
- ],
145
- "isUnique": false
146
- }
147
- },
148
- "foreignKeys": {
149
- "artifact_video_generation_user_artifact_id_user_artifacts_id_fk": {
150
- "name": "artifact_video_generation_user_artifact_id_user_artifacts_id_fk",
151
- "tableFrom": "artifact_video_generation",
152
- "tableTo": "user_artifacts",
153
- "columnsFrom": [
154
- "user_artifact_id"
155
- ],
156
- "columnsTo": [
157
- "id"
158
- ],
159
- "onDelete": "cascade",
160
- "onUpdate": "no action"
161
- }
162
- },
163
- "compositePrimaryKeys": {},
164
- "uniqueConstraints": {},
165
- "checkConstraints": {}
166
- },
167
- "artifacts": {
168
- "name": "artifacts",
169
- "columns": {
170
- "id": {
171
- "name": "id",
172
- "type": "text",
173
- "primaryKey": true,
174
- "notNull": true,
175
- "autoincrement": false
176
- },
177
- "name": {
178
- "name": "name",
179
- "type": "text",
180
- "primaryKey": false,
181
- "notNull": true,
182
- "autoincrement": false
183
- },
184
- "slug": {
185
- "name": "slug",
186
- "type": "text",
187
- "primaryKey": false,
188
- "notNull": true,
189
- "autoincrement": false
190
- },
191
- "concept_id": {
192
- "name": "concept_id",
193
- "type": "text",
194
- "primaryKey": false,
195
- "notNull": true,
196
- "autoincrement": false
197
- },
198
- "description": {
199
- "name": "description",
200
- "type": "text",
201
- "primaryKey": false,
202
- "notNull": true,
203
- "autoincrement": false
204
- },
205
- "price": {
206
- "name": "price",
207
- "type": "integer",
208
- "primaryKey": false,
209
- "notNull": true,
210
- "autoincrement": false
211
- },
212
- "promotion_price": {
213
- "name": "promotion_price",
214
- "type": "integer",
215
- "primaryKey": false,
216
- "notNull": false,
217
- "autoincrement": false
218
- },
219
- "created_at": {
220
- "name": "created_at",
221
- "type": "integer",
222
- "primaryKey": false,
223
- "notNull": false,
224
- "autoincrement": false,
225
- "default": "CURRENT_TIMESTAMP"
226
- }
227
- },
228
- "indexes": {
229
- "artifacts_slug_unique": {
230
- "name": "artifacts_slug_unique",
231
- "columns": [
232
- "slug"
233
- ],
234
- "isUnique": true
235
- },
236
- "artifacts_concept_id_idx": {
237
- "name": "artifacts_concept_id_idx",
238
- "columns": [
239
- "concept_id"
240
- ],
241
- "isUnique": false
242
- }
243
- },
244
- "foreignKeys": {
245
- "artifacts_concept_id_concepts_id_fk": {
246
- "name": "artifacts_concept_id_concepts_id_fk",
247
- "tableFrom": "artifacts",
248
- "tableTo": "concepts",
249
- "columnsFrom": [
250
- "concept_id"
251
- ],
252
- "columnsTo": [
253
- "id"
254
- ],
255
- "onDelete": "cascade",
256
- "onUpdate": "no action"
257
- }
258
- },
259
- "compositePrimaryKeys": {},
260
- "uniqueConstraints": {},
261
- "checkConstraints": {}
262
- },
263
- "aspect_reports": {
264
- "name": "aspect_reports",
265
- "columns": {
266
- "id": {
267
- "name": "id",
268
- "type": "text",
269
- "primaryKey": true,
270
- "notNull": true,
271
- "autoincrement": false
272
- },
273
- "aspecting_planet": {
274
- "name": "aspecting_planet",
275
- "type": "text",
276
- "primaryKey": false,
277
- "notNull": true,
278
- "autoincrement": false
279
- },
280
- "aspected_planet": {
281
- "name": "aspected_planet",
282
- "type": "text",
283
- "primaryKey": false,
284
- "notNull": true,
285
- "autoincrement": false
286
- },
287
- "aspect": {
288
- "name": "aspect",
289
- "type": "text",
290
- "primaryKey": false,
291
- "notNull": true,
292
- "autoincrement": false
293
- },
294
- "description_template_id": {
295
- "name": "description_template_id",
296
- "type": "text",
297
- "primaryKey": false,
298
- "notNull": false,
299
- "autoincrement": false
300
- },
301
- "en_report": {
302
- "name": "en_report",
303
- "type": "text",
304
- "primaryKey": false,
305
- "notNull": false,
306
- "autoincrement": false
307
- },
308
- "pt_report": {
309
- "name": "pt_report",
310
- "type": "text",
311
- "primaryKey": false,
312
- "notNull": false,
313
- "autoincrement": false
314
- },
315
- "created_at": {
316
- "name": "created_at",
317
- "type": "integer",
318
- "primaryKey": false,
319
- "notNull": false,
320
- "autoincrement": false,
321
- "default": "CURRENT_TIMESTAMP"
322
- },
323
- "updated_at": {
324
- "name": "updated_at",
325
- "type": "integer",
326
- "primaryKey": false,
327
- "notNull": false,
328
- "autoincrement": false,
329
- "default": "CURRENT_TIMESTAMP"
330
- }
331
- },
332
- "indexes": {
333
- "aspect_reports_aspecting_idx": {
334
- "name": "aspect_reports_aspecting_idx",
335
- "columns": [
336
- "aspecting_planet"
337
- ],
338
- "isUnique": false
339
- },
340
- "aspect_reports_aspected_idx": {
341
- "name": "aspect_reports_aspected_idx",
342
- "columns": [
343
- "aspected_planet"
344
- ],
345
- "isUnique": false
346
- },
347
- "aspect_reports_aspect_idx": {
348
- "name": "aspect_reports_aspect_idx",
349
- "columns": [
350
- "aspect"
351
- ],
352
- "isUnique": false
353
- },
354
- "aspect_reports_combined_idx": {
355
- "name": "aspect_reports_combined_idx",
356
- "columns": [
357
- "aspecting_planet",
358
- "aspected_planet",
359
- "aspect"
360
- ],
361
- "isUnique": false
362
- },
363
- "aspect_reports_description_template_idx": {
364
- "name": "aspect_reports_description_template_idx",
365
- "columns": [
366
- "description_template_id"
367
- ],
368
- "isUnique": false
369
- }
370
- },
371
- "foreignKeys": {
372
- "aspect_reports_description_template_id_astro_description_templates_id_fk": {
373
- "name": "aspect_reports_description_template_id_astro_description_templates_id_fk",
374
- "tableFrom": "aspect_reports",
375
- "tableTo": "astro_description_templates",
376
- "columnsFrom": [
377
- "description_template_id"
378
- ],
379
- "columnsTo": [
380
- "id"
381
- ],
382
- "onDelete": "set null",
383
- "onUpdate": "no action"
384
- }
385
- },
386
- "compositePrimaryKeys": {},
387
- "uniqueConstraints": {},
388
- "checkConstraints": {}
389
- },
390
- "astro_aspects": {
391
- "name": "astro_aspects",
392
- "columns": {
393
- "id": {
394
- "name": "id",
395
- "type": "text",
396
- "primaryKey": true,
397
- "notNull": true,
398
- "autoincrement": false
399
- },
400
- "user_id": {
401
- "name": "user_id",
402
- "type": "text",
403
- "primaryKey": false,
404
- "notNull": true,
405
- "autoincrement": false
406
- },
407
- "aspecting_planet": {
408
- "name": "aspecting_planet",
409
- "type": "text",
410
- "primaryKey": false,
411
- "notNull": true,
412
- "autoincrement": false
413
- },
414
- "aspected_planet": {
415
- "name": "aspected_planet",
416
- "type": "text",
417
- "primaryKey": false,
418
- "notNull": true,
419
- "autoincrement": false
420
- },
421
- "aspecting_planet_id": {
422
- "name": "aspecting_planet_id",
423
- "type": "integer",
424
- "primaryKey": false,
425
- "notNull": true,
426
- "autoincrement": false
427
- },
428
- "aspected_planet_id": {
429
- "name": "aspected_planet_id",
430
- "type": "integer",
431
- "primaryKey": false,
432
- "notNull": true,
433
- "autoincrement": false
434
- },
435
- "type": {
436
- "name": "type",
437
- "type": "text",
438
- "primaryKey": false,
439
- "notNull": true,
440
- "autoincrement": false
441
- },
442
- "orb": {
443
- "name": "orb",
444
- "type": "real",
445
- "primaryKey": false,
446
- "notNull": true,
447
- "autoincrement": false
448
- },
449
- "diff": {
450
- "name": "diff",
451
- "type": "real",
452
- "primaryKey": false,
453
- "notNull": true,
454
- "autoincrement": false
455
- }
456
- },
457
- "indexes": {
458
- "astro_aspects_user_id_idx": {
459
- "name": "astro_aspects_user_id_idx",
460
- "columns": [
461
- "user_id"
462
- ],
463
- "isUnique": false
464
- }
465
- },
466
- "foreignKeys": {
467
- "astro_aspects_user_id_users_id_fk": {
468
- "name": "astro_aspects_user_id_users_id_fk",
469
- "tableFrom": "astro_aspects",
470
- "tableTo": "users",
471
- "columnsFrom": [
472
- "user_id"
473
- ],
474
- "columnsTo": [
475
- "id"
476
- ],
477
- "onDelete": "cascade",
478
- "onUpdate": "no action"
479
- }
480
- },
481
- "compositePrimaryKeys": {},
482
- "uniqueConstraints": {},
483
- "checkConstraints": {}
484
- },
485
- "astro_description_templates": {
486
- "name": "astro_description_templates",
487
- "columns": {
488
- "id": {
489
- "name": "id",
490
- "type": "text",
491
- "primaryKey": true,
492
- "notNull": true,
493
- "autoincrement": false
494
- },
495
- "entity_type": {
496
- "name": "entity_type",
497
- "type": "text",
498
- "primaryKey": false,
499
- "notNull": true,
500
- "autoincrement": false
501
- },
502
- "name": {
503
- "name": "name",
504
- "type": "text",
505
- "primaryKey": false,
506
- "notNull": true,
507
- "autoincrement": false
508
- },
509
- "en_name": {
510
- "name": "en_name",
511
- "type": "text",
512
- "primaryKey": false,
513
- "notNull": false,
514
- "autoincrement": false
515
- },
516
- "pt_name": {
517
- "name": "pt_name",
518
- "type": "text",
519
- "primaryKey": false,
520
- "notNull": false,
521
- "autoincrement": false
522
- },
523
- "en_description": {
524
- "name": "en_description",
525
- "type": "text",
526
- "primaryKey": false,
527
- "notNull": true,
528
- "autoincrement": false
529
- },
530
- "pt_description": {
531
- "name": "pt_description",
532
- "type": "text",
533
- "primaryKey": false,
534
- "notNull": true,
535
- "autoincrement": false
536
- },
537
- "created_at": {
538
- "name": "created_at",
539
- "type": "integer",
540
- "primaryKey": false,
541
- "notNull": false,
542
- "autoincrement": false,
543
- "default": "CURRENT_TIMESTAMP"
544
- },
545
- "updated_at": {
546
- "name": "updated_at",
547
- "type": "integer",
548
- "primaryKey": false,
549
- "notNull": false,
550
- "autoincrement": false,
551
- "default": "CURRENT_TIMESTAMP"
552
- }
553
- },
554
- "indexes": {
555
- "astro_description_templates_type_name_idx": {
556
- "name": "astro_description_templates_type_name_idx",
557
- "columns": [
558
- "entity_type",
559
- "name"
560
- ],
561
- "isUnique": false
562
- }
563
- },
564
- "foreignKeys": {},
565
- "compositePrimaryKeys": {},
566
- "uniqueConstraints": {},
567
- "checkConstraints": {}
568
- },
569
- "astro_feature_reports": {
570
- "name": "astro_feature_reports",
571
- "columns": {
572
- "id": {
573
- "name": "id",
574
- "type": "text",
575
- "primaryKey": true,
576
- "notNull": true,
577
- "autoincrement": false
578
- },
579
- "feature_type": {
580
- "name": "feature_type",
581
- "type": "text",
582
- "primaryKey": false,
583
- "notNull": true,
584
- "autoincrement": false
585
- },
586
- "name": {
587
- "name": "name",
588
- "type": "text",
589
- "primaryKey": false,
590
- "notNull": true,
591
- "autoincrement": false
592
- },
593
- "description_template_id": {
594
- "name": "description_template_id",
595
- "type": "text",
596
- "primaryKey": false,
597
- "notNull": false,
598
- "autoincrement": false
599
- },
600
- "en_report": {
601
- "name": "en_report",
602
- "type": "text",
603
- "primaryKey": false,
604
- "notNull": false,
605
- "autoincrement": false
606
- },
607
- "pt_report": {
608
- "name": "pt_report",
609
- "type": "text",
610
- "primaryKey": false,
611
- "notNull": false,
612
- "autoincrement": false
613
- },
614
- "created_at": {
615
- "name": "created_at",
616
- "type": "integer",
617
- "primaryKey": false,
618
- "notNull": false,
619
- "autoincrement": false,
620
- "default": "CURRENT_TIMESTAMP"
621
- },
622
- "updated_at": {
623
- "name": "updated_at",
624
- "type": "integer",
625
- "primaryKey": false,
626
- "notNull": false,
627
- "autoincrement": false,
628
- "default": "CURRENT_TIMESTAMP"
629
- }
630
- },
631
- "indexes": {
632
- "astro_feature_reports_type_name_idx": {
633
- "name": "astro_feature_reports_type_name_idx",
634
- "columns": [
635
- "feature_type",
636
- "name"
637
- ],
638
- "isUnique": false
639
- },
640
- "astro_feature_reports_description_template_idx": {
641
- "name": "astro_feature_reports_description_template_idx",
642
- "columns": [
643
- "description_template_id"
644
- ],
645
- "isUnique": false
646
- }
647
- },
648
- "foreignKeys": {
649
- "astro_feature_reports_description_template_id_astro_description_templates_id_fk": {
650
- "name": "astro_feature_reports_description_template_id_astro_description_templates_id_fk",
651
- "tableFrom": "astro_feature_reports",
652
- "tableTo": "astro_description_templates",
653
- "columnsFrom": [
654
- "description_template_id"
655
- ],
656
- "columnsTo": [
657
- "id"
658
- ],
659
- "onDelete": "set null",
660
- "onUpdate": "no action"
661
- }
662
- },
663
- "compositePrimaryKeys": {},
664
- "uniqueConstraints": {},
665
- "checkConstraints": {}
666
- },
667
- "astro_features": {
668
- "name": "astro_features",
669
- "columns": {
670
- "id": {
671
- "name": "id",
672
- "type": "text",
673
- "primaryKey": true,
674
- "notNull": true,
675
- "autoincrement": false
676
- },
677
- "user_id": {
678
- "name": "user_id",
679
- "type": "text",
680
- "primaryKey": false,
681
- "notNull": true,
682
- "autoincrement": false
683
- },
684
- "feature_type": {
685
- "name": "feature_type",
686
- "type": "text",
687
- "primaryKey": false,
688
- "notNull": true,
689
- "autoincrement": false
690
- },
691
- "name": {
692
- "name": "name",
693
- "type": "text",
694
- "primaryKey": false,
695
- "notNull": true,
696
- "autoincrement": false
697
- },
698
- "description": {
699
- "name": "description",
700
- "type": "text",
701
- "primaryKey": false,
702
- "notNull": false,
703
- "autoincrement": false
704
- },
705
- "percentage": {
706
- "name": "percentage",
707
- "type": "real",
708
- "primaryKey": false,
709
- "notNull": false,
710
- "autoincrement": false
711
- },
712
- "order": {
713
- "name": "order",
714
- "type": "integer",
715
- "primaryKey": false,
716
- "notNull": false,
717
- "autoincrement": false
718
- },
719
- "prominent_id": {
720
- "name": "prominent_id",
721
- "type": "integer",
722
- "primaryKey": false,
723
- "notNull": false,
724
- "autoincrement": false
725
- }
726
- },
727
- "indexes": {
728
- "astro_features_user_id_idx": {
729
- "name": "astro_features_user_id_idx",
730
- "columns": [
731
- "user_id"
732
- ],
733
- "isUnique": false
734
- }
735
- },
736
- "foreignKeys": {
737
- "astro_features_user_id_users_id_fk": {
738
- "name": "astro_features_user_id_users_id_fk",
739
- "tableFrom": "astro_features",
740
- "tableTo": "users",
741
- "columnsFrom": [
742
- "user_id"
743
- ],
744
- "columnsTo": [
745
- "id"
746
- ],
747
- "onDelete": "cascade",
748
- "onUpdate": "no action"
749
- }
750
- },
751
- "compositePrimaryKeys": {},
752
- "uniqueConstraints": {},
753
- "checkConstraints": {}
754
- },
755
- "astro_houses": {
756
- "name": "astro_houses",
757
- "columns": {
758
- "id": {
759
- "name": "id",
760
- "type": "text",
761
- "primaryKey": true,
762
- "notNull": true,
763
- "autoincrement": false
764
- },
765
- "user_id": {
766
- "name": "user_id",
767
- "type": "text",
768
- "primaryKey": false,
769
- "notNull": true,
770
- "autoincrement": false
771
- },
772
- "house": {
773
- "name": "house",
774
- "type": "integer",
775
- "primaryKey": false,
776
- "notNull": true,
777
- "autoincrement": false
778
- },
779
- "sign": {
780
- "name": "sign",
781
- "type": "text",
782
- "primaryKey": false,
783
- "notNull": true,
784
- "autoincrement": false
785
- },
786
- "degree": {
787
- "name": "degree",
788
- "type": "real",
789
- "primaryKey": false,
790
- "notNull": true,
791
- "autoincrement": false
792
- }
793
- },
794
- "indexes": {
795
- "astro_houses_user_id_idx": {
796
- "name": "astro_houses_user_id_idx",
797
- "columns": [
798
- "user_id"
799
- ],
800
- "isUnique": false
801
- }
802
- },
803
- "foreignKeys": {
804
- "astro_houses_user_id_users_id_fk": {
805
- "name": "astro_houses_user_id_users_id_fk",
806
- "tableFrom": "astro_houses",
807
- "tableTo": "users",
808
- "columnsFrom": [
809
- "user_id"
810
- ],
811
- "columnsTo": [
812
- "id"
813
- ],
814
- "onDelete": "cascade",
815
- "onUpdate": "no action"
816
- }
817
- },
818
- "compositePrimaryKeys": {},
819
- "uniqueConstraints": {},
820
- "checkConstraints": {}
821
- },
822
- "astro_planets": {
823
- "name": "astro_planets",
824
- "columns": {
825
- "id": {
826
- "name": "id",
827
- "type": "text",
828
- "primaryKey": true,
829
- "notNull": true,
830
- "autoincrement": false
831
- },
832
- "user_id": {
833
- "name": "user_id",
834
- "type": "text",
835
- "primaryKey": false,
836
- "notNull": true,
837
- "autoincrement": false
838
- },
839
- "type": {
840
- "name": "type",
841
- "type": "text",
842
- "primaryKey": false,
843
- "notNull": true,
844
- "autoincrement": false
845
- },
846
- "name": {
847
- "name": "name",
848
- "type": "text",
849
- "primaryKey": false,
850
- "notNull": true,
851
- "autoincrement": false
852
- },
853
- "sign": {
854
- "name": "sign",
855
- "type": "text",
856
- "primaryKey": false,
857
- "notNull": true,
858
- "autoincrement": false
859
- },
860
- "house": {
861
- "name": "house",
862
- "type": "integer",
863
- "primaryKey": false,
864
- "notNull": false,
865
- "autoincrement": false
866
- },
867
- "full_degree": {
868
- "name": "full_degree",
869
- "type": "real",
870
- "primaryKey": false,
871
- "notNull": false,
872
- "autoincrement": false
873
- },
874
- "norm_degree": {
875
- "name": "norm_degree",
876
- "type": "real",
877
- "primaryKey": false,
878
- "notNull": false,
879
- "autoincrement": false
880
- },
881
- "speed": {
882
- "name": "speed",
883
- "type": "real",
884
- "primaryKey": false,
885
- "notNull": false,
886
- "autoincrement": false
887
- },
888
- "is_retro": {
889
- "name": "is_retro",
890
- "type": "integer",
891
- "primaryKey": false,
892
- "notNull": false,
893
- "autoincrement": false
894
- }
895
- },
896
- "indexes": {
897
- "astro_planets_user_id_idx": {
898
- "name": "astro_planets_user_id_idx",
899
- "columns": [
900
- "user_id"
901
- ],
902
- "isUnique": false
903
- }
904
- },
905
- "foreignKeys": {
906
- "astro_planets_user_id_users_id_fk": {
907
- "name": "astro_planets_user_id_users_id_fk",
908
- "tableFrom": "astro_planets",
909
- "tableTo": "users",
910
- "columnsFrom": [
911
- "user_id"
912
- ],
913
- "columnsTo": [
914
- "id"
915
- ],
916
- "onDelete": "cascade",
917
- "onUpdate": "no action"
918
- }
919
- },
920
- "compositePrimaryKeys": {},
921
- "uniqueConstraints": {},
922
- "checkConstraints": {}
923
- },
924
- "astro_reports": {
925
- "name": "astro_reports",
926
- "columns": {
927
- "id": {
928
- "name": "id",
929
- "type": "text",
930
- "primaryKey": true,
931
- "notNull": true,
932
- "autoincrement": false
933
- },
934
- "type": {
935
- "name": "type",
936
- "type": "text",
937
- "primaryKey": false,
938
- "notNull": true,
939
- "autoincrement": false
940
- },
941
- "name": {
942
- "name": "name",
943
- "type": "text",
944
- "primaryKey": false,
945
- "notNull": true,
946
- "autoincrement": false
947
- },
948
- "sign": {
949
- "name": "sign",
950
- "type": "text",
951
- "primaryKey": false,
952
- "notNull": false,
953
- "autoincrement": false
954
- },
955
- "house": {
956
- "name": "house",
957
- "type": "integer",
958
- "primaryKey": false,
959
- "notNull": false,
960
- "autoincrement": false
961
- },
962
- "description_template_id": {
963
- "name": "description_template_id",
964
- "type": "text",
965
- "primaryKey": false,
966
- "notNull": false,
967
- "autoincrement": false
968
- },
969
- "en_report": {
970
- "name": "en_report",
971
- "type": "text",
972
- "primaryKey": false,
973
- "notNull": false,
974
- "autoincrement": false
975
- },
976
- "pt_report": {
977
- "name": "pt_report",
978
- "type": "text",
979
- "primaryKey": false,
980
- "notNull": false,
981
- "autoincrement": false
982
- },
983
- "created_at": {
984
- "name": "created_at",
985
- "type": "integer",
986
- "primaryKey": false,
987
- "notNull": false,
988
- "autoincrement": false,
989
- "default": "CURRENT_TIMESTAMP"
990
- },
991
- "updated_at": {
992
- "name": "updated_at",
993
- "type": "integer",
994
- "primaryKey": false,
995
- "notNull": false,
996
- "autoincrement": false,
997
- "default": "CURRENT_TIMESTAMP"
998
- }
999
- },
1000
- "indexes": {
1001
- "astro_reports_type_idx": {
1002
- "name": "astro_reports_type_idx",
1003
- "columns": [
1004
- "type"
1005
- ],
1006
- "isUnique": false
1007
- },
1008
- "astro_reports_name_sign_idx": {
1009
- "name": "astro_reports_name_sign_idx",
1010
- "columns": [
1011
- "name",
1012
- "sign"
1013
- ],
1014
- "isUnique": false
1015
- },
1016
- "astro_reports_name_house_idx": {
1017
- "name": "astro_reports_name_house_idx",
1018
- "columns": [
1019
- "name",
1020
- "house"
1021
- ],
1022
- "isUnique": false
1023
- }
1024
- },
1025
- "foreignKeys": {
1026
- "astro_reports_description_template_id_astro_description_templates_id_fk": {
1027
- "name": "astro_reports_description_template_id_astro_description_templates_id_fk",
1028
- "tableFrom": "astro_reports",
1029
- "tableTo": "astro_description_templates",
1030
- "columnsFrom": [
1031
- "description_template_id"
1032
- ],
1033
- "columnsTo": [
1034
- "id"
1035
- ],
1036
- "onDelete": "set null",
1037
- "onUpdate": "no action"
1038
- }
1039
- },
1040
- "compositePrimaryKeys": {},
1041
- "uniqueConstraints": {},
1042
- "checkConstraints": {}
1043
- },
1044
- "concept_combinations": {
1045
- "name": "concept_combinations",
1046
- "columns": {
1047
- "id": {
1048
- "name": "id",
1049
- "type": "text",
1050
- "primaryKey": true,
1051
- "notNull": true,
1052
- "autoincrement": false
1053
- },
1054
- "concept_id": {
1055
- "name": "concept_id",
1056
- "type": "text",
1057
- "primaryKey": false,
1058
- "notNull": true,
1059
- "autoincrement": false
1060
- },
1061
- "planet1_sign": {
1062
- "name": "planet1_sign",
1063
- "type": "text",
1064
- "primaryKey": false,
1065
- "notNull": true,
1066
- "autoincrement": false
1067
- },
1068
- "planet2_sign": {
1069
- "name": "planet2_sign",
1070
- "type": "text",
1071
- "primaryKey": false,
1072
- "notNull": true,
1073
- "autoincrement": false
1074
- },
1075
- "planet3_sign": {
1076
- "name": "planet3_sign",
1077
- "type": "text",
1078
- "primaryKey": false,
1079
- "notNull": true,
1080
- "autoincrement": false
1081
- },
1082
- "combination_string": {
1083
- "name": "combination_string",
1084
- "type": "text",
1085
- "primaryKey": false,
1086
- "notNull": true,
1087
- "autoincrement": false
1088
- }
1089
- },
1090
- "indexes": {
1091
- "concept_combinations_unique_combination_idx": {
1092
- "name": "concept_combinations_unique_combination_idx",
1093
- "columns": [
1094
- "concept_id",
1095
- "combination_string"
1096
- ],
1097
- "isUnique": false
1098
- }
1099
- },
1100
- "foreignKeys": {
1101
- "concept_combinations_concept_id_concepts_id_fk": {
1102
- "name": "concept_combinations_concept_id_concepts_id_fk",
1103
- "tableFrom": "concept_combinations",
1104
- "tableTo": "concepts",
1105
- "columnsFrom": [
1106
- "concept_id"
1107
- ],
1108
- "columnsTo": [
1109
- "id"
1110
- ],
1111
- "onDelete": "cascade",
1112
- "onUpdate": "no action"
1113
- }
1114
- },
1115
- "compositePrimaryKeys": {},
1116
- "uniqueConstraints": {},
1117
- "checkConstraints": {}
1118
- },
1119
- "concepts": {
1120
- "name": "concepts",
1121
- "columns": {
1122
- "id": {
1123
- "name": "id",
1124
- "type": "text",
1125
- "primaryKey": true,
1126
- "notNull": true,
1127
- "autoincrement": false
1128
- },
1129
- "name": {
1130
- "name": "name",
1131
- "type": "text",
1132
- "primaryKey": false,
1133
- "notNull": true,
1134
- "autoincrement": false
1135
- },
1136
- "slug": {
1137
- "name": "slug",
1138
- "type": "text",
1139
- "primaryKey": false,
1140
- "notNull": true,
1141
- "autoincrement": false
1142
- },
1143
- "planet1": {
1144
- "name": "planet1",
1145
- "type": "text",
1146
- "primaryKey": false,
1147
- "notNull": true,
1148
- "autoincrement": false
1149
- },
1150
- "planet2": {
1151
- "name": "planet2",
1152
- "type": "text",
1153
- "primaryKey": false,
1154
- "notNull": true,
1155
- "autoincrement": false
1156
- },
1157
- "planet3": {
1158
- "name": "planet3",
1159
- "type": "text",
1160
- "primaryKey": false,
1161
- "notNull": false,
1162
- "autoincrement": false
1163
- }
1164
- },
1165
- "indexes": {
1166
- "concepts_name_idx": {
1167
- "name": "concepts_name_idx",
1168
- "columns": [
1169
- "name"
1170
- ],
1171
- "isUnique": false
1172
- }
1173
- },
1174
- "foreignKeys": {},
1175
- "compositePrimaryKeys": {},
1176
- "uniqueConstraints": {},
1177
- "checkConstraints": {}
1178
- },
1179
- "concepts_data": {
1180
- "name": "concepts_data",
1181
- "columns": {
1182
- "id": {
1183
- "name": "id",
1184
- "type": "text",
1185
- "primaryKey": true,
1186
- "notNull": true,
1187
- "autoincrement": false
1188
- },
1189
- "language": {
1190
- "name": "language",
1191
- "type": "text",
1192
- "primaryKey": false,
1193
- "notNull": true,
1194
- "autoincrement": false
1195
- },
1196
- "concept_slug": {
1197
- "name": "concept_slug",
1198
- "type": "text",
1199
- "primaryKey": false,
1200
- "notNull": true,
1201
- "autoincrement": false
1202
- },
1203
- "combination": {
1204
- "name": "combination",
1205
- "type": "text",
1206
- "primaryKey": false,
1207
- "notNull": true,
1208
- "autoincrement": false
1209
- },
1210
- "name": {
1211
- "name": "name",
1212
- "type": "text",
1213
- "primaryKey": false,
1214
- "notNull": true,
1215
- "autoincrement": false
1216
- },
1217
- "description": {
1218
- "name": "description",
1219
- "type": "text",
1220
- "primaryKey": false,
1221
- "notNull": true,
1222
- "autoincrement": false
1223
- },
1224
- "content": {
1225
- "name": "content",
1226
- "type": "text",
1227
- "primaryKey": false,
1228
- "notNull": false,
1229
- "autoincrement": false,
1230
- "default": "'[]'"
1231
- },
1232
- "poem": {
1233
- "name": "poem",
1234
- "type": "text",
1235
- "primaryKey": false,
1236
- "notNull": false,
1237
- "autoincrement": false,
1238
- "default": "'[]'"
1239
- },
1240
- "leonardo_prompt": {
1241
- "name": "leonardo_prompt",
1242
- "type": "text",
1243
- "primaryKey": false,
1244
- "notNull": false,
1245
- "autoincrement": false
1246
- },
1247
- "post_images": {
1248
- "name": "post_images",
1249
- "type": "text",
1250
- "primaryKey": false,
1251
- "notNull": false,
1252
- "autoincrement": false,
1253
- "default": "'[]'"
1254
- },
1255
- "reel_images": {
1256
- "name": "reel_images",
1257
- "type": "text",
1258
- "primaryKey": false,
1259
- "notNull": false,
1260
- "autoincrement": false,
1261
- "default": "'[]'"
1262
- },
1263
- "status": {
1264
- "name": "status",
1265
- "type": "text",
1266
- "primaryKey": false,
1267
- "notNull": false,
1268
- "autoincrement": false,
1269
- "default": "'idle'"
1270
- },
1271
- "created_at": {
1272
- "name": "created_at",
1273
- "type": "integer",
1274
- "primaryKey": false,
1275
- "notNull": false,
1276
- "autoincrement": false,
1277
- "default": "CURRENT_TIMESTAMP"
1278
- },
1279
- "updated_at": {
1280
- "name": "updated_at",
1281
- "type": "integer",
1282
- "primaryKey": false,
1283
- "notNull": false,
1284
- "autoincrement": false,
1285
- "default": "CURRENT_TIMESTAMP"
1286
- }
1287
- },
1288
- "indexes": {
1289
- "concepts_data_language_idx": {
1290
- "name": "concepts_data_language_idx",
1291
- "columns": [
1292
- "language"
1293
- ],
1294
- "isUnique": false
1295
- },
1296
- "concepts_data_concept_slug_idx": {
1297
- "name": "concepts_data_concept_slug_idx",
1298
- "columns": [
1299
- "concept_slug"
1300
- ],
1301
- "isUnique": false
1302
- },
1303
- "concepts_data_combination_idx": {
1304
- "name": "concepts_data_combination_idx",
1305
- "columns": [
1306
- "combination"
1307
- ],
1308
- "isUnique": false
1309
- },
1310
- "concepts_data_name_idx": {
1311
- "name": "concepts_data_name_idx",
1312
- "columns": [
1313
- "name"
1314
- ],
1315
- "isUnique": false
1316
- }
1317
- },
1318
- "foreignKeys": {},
1319
- "compositePrimaryKeys": {},
1320
- "uniqueConstraints": {},
1321
- "checkConstraints": {}
1322
- },
1323
- "credits_transactions": {
1324
- "name": "credits_transactions",
1325
- "columns": {
1326
- "id": {
1327
- "name": "id",
1328
- "type": "text",
1329
- "primaryKey": true,
1330
- "notNull": true,
1331
- "autoincrement": false
1332
- },
1333
- "user_id": {
1334
- "name": "user_id",
1335
- "type": "text",
1336
- "primaryKey": false,
1337
- "notNull": true,
1338
- "autoincrement": false
1339
- },
1340
- "type": {
1341
- "name": "type",
1342
- "type": "text",
1343
- "primaryKey": false,
1344
- "notNull": true,
1345
- "autoincrement": false
1346
- },
1347
- "amount": {
1348
- "name": "amount",
1349
- "type": "integer",
1350
- "primaryKey": false,
1351
- "notNull": true,
1352
- "autoincrement": false
1353
- },
1354
- "description": {
1355
- "name": "description",
1356
- "type": "text",
1357
- "primaryKey": false,
1358
- "notNull": false,
1359
- "autoincrement": false
1360
- },
1361
- "product_type": {
1362
- "name": "product_type",
1363
- "type": "text",
1364
- "primaryKey": false,
1365
- "notNull": false,
1366
- "autoincrement": false
1367
- },
1368
- "product_id": {
1369
- "name": "product_id",
1370
- "type": "text",
1371
- "primaryKey": false,
1372
- "notNull": false,
1373
- "autoincrement": false
1374
- },
1375
- "payment_id": {
1376
- "name": "payment_id",
1377
- "type": "text",
1378
- "primaryKey": false,
1379
- "notNull": true,
1380
- "autoincrement": false
1381
- },
1382
- "created_at": {
1383
- "name": "created_at",
1384
- "type": "integer",
1385
- "primaryKey": false,
1386
- "notNull": true,
1387
- "autoincrement": false,
1388
- "default": "CURRENT_TIMESTAMP"
1389
- },
1390
- "updated_at": {
1391
- "name": "updated_at",
1392
- "type": "integer",
1393
- "primaryKey": false,
1394
- "notNull": true,
1395
- "autoincrement": false,
1396
- "default": "CURRENT_TIMESTAMP"
1397
- }
1398
- },
1399
- "indexes": {
1400
- "credits_transactions_user_id_idx": {
1401
- "name": "credits_transactions_user_id_idx",
1402
- "columns": [
1403
- "user_id"
1404
- ],
1405
- "isUnique": false
1406
- }
1407
- },
1408
- "foreignKeys": {
1409
- "credits_transactions_user_id_users_id_fk": {
1410
- "name": "credits_transactions_user_id_users_id_fk",
1411
- "tableFrom": "credits_transactions",
1412
- "tableTo": "users",
1413
- "columnsFrom": [
1414
- "user_id"
1415
- ],
1416
- "columnsTo": [
1417
- "id"
1418
- ],
1419
- "onDelete": "cascade",
1420
- "onUpdate": "no action"
1421
- }
1422
- },
1423
- "compositePrimaryKeys": {},
1424
- "uniqueConstraints": {},
1425
- "checkConstraints": {}
1426
- },
1427
- "generations": {
1428
- "name": "generations",
1429
- "columns": {
1430
- "id": {
1431
- "name": "id",
1432
- "type": "text",
1433
- "primaryKey": true,
1434
- "notNull": true,
1435
- "autoincrement": false
1436
- },
1437
- "user_id": {
1438
- "name": "user_id",
1439
- "type": "text",
1440
- "primaryKey": false,
1441
- "notNull": false,
1442
- "autoincrement": false
1443
- },
1444
- "artifact_id": {
1445
- "name": "artifact_id",
1446
- "type": "text",
1447
- "primaryKey": false,
1448
- "notNull": false,
1449
- "autoincrement": false
1450
- },
1451
- "archetype_index": {
1452
- "name": "archetype_index",
1453
- "type": "integer",
1454
- "primaryKey": false,
1455
- "notNull": false,
1456
- "autoincrement": false
1457
- },
1458
- "user_artifact_id": {
1459
- "name": "user_artifact_id",
1460
- "type": "text",
1461
- "primaryKey": false,
1462
- "notNull": false,
1463
- "autoincrement": false
1464
- },
1465
- "gender": {
1466
- "name": "gender",
1467
- "type": "text",
1468
- "primaryKey": false,
1469
- "notNull": false,
1470
- "autoincrement": false
1471
- },
1472
- "concept_combination_id": {
1473
- "name": "concept_combination_id",
1474
- "type": "text",
1475
- "primaryKey": false,
1476
- "notNull": false,
1477
- "autoincrement": false
1478
- },
1479
- "type": {
1480
- "name": "type",
1481
- "type": "text",
1482
- "primaryKey": false,
1483
- "notNull": true,
1484
- "autoincrement": false
1485
- },
1486
- "status": {
1487
- "name": "status",
1488
- "type": "text",
1489
- "primaryKey": false,
1490
- "notNull": true,
1491
- "autoincrement": false,
1492
- "default": "'pending'"
1493
- },
1494
- "url": {
1495
- "name": "url",
1496
- "type": "text",
1497
- "primaryKey": false,
1498
- "notNull": false,
1499
- "autoincrement": false
1500
- },
1501
- "created_at": {
1502
- "name": "created_at",
1503
- "type": "integer",
1504
- "primaryKey": false,
1505
- "notNull": true,
1506
- "autoincrement": false,
1507
- "default": "CURRENT_TIMESTAMP"
1508
- },
1509
- "updated_at": {
1510
- "name": "updated_at",
1511
- "type": "integer",
1512
- "primaryKey": false,
1513
- "notNull": true,
1514
- "autoincrement": false,
1515
- "default": "CURRENT_TIMESTAMP"
1516
- }
1517
- },
1518
- "indexes": {
1519
- "generations_user_id_idx": {
1520
- "name": "generations_user_id_idx",
1521
- "columns": [
1522
- "user_id"
1523
- ],
1524
- "isUnique": false
1525
- },
1526
- "generations_concept_combination_id_idx": {
1527
- "name": "generations_concept_combination_id_idx",
1528
- "columns": [
1529
- "concept_combination_id"
1530
- ],
1531
- "isUnique": false
1532
- },
1533
- "generations_archetype_index_idx": {
1534
- "name": "generations_archetype_index_idx",
1535
- "columns": [
1536
- "archetype_index"
1537
- ],
1538
- "isUnique": false
1539
- }
1540
- },
1541
- "foreignKeys": {
1542
- "generations_user_id_users_id_fk": {
1543
- "name": "generations_user_id_users_id_fk",
1544
- "tableFrom": "generations",
1545
- "tableTo": "users",
1546
- "columnsFrom": [
1547
- "user_id"
1548
- ],
1549
- "columnsTo": [
1550
- "id"
1551
- ],
1552
- "onDelete": "cascade",
1553
- "onUpdate": "no action"
1554
- },
1555
- "generations_artifact_id_artifacts_id_fk": {
1556
- "name": "generations_artifact_id_artifacts_id_fk",
1557
- "tableFrom": "generations",
1558
- "tableTo": "artifacts",
1559
- "columnsFrom": [
1560
- "artifact_id"
1561
- ],
1562
- "columnsTo": [
1563
- "id"
1564
- ],
1565
- "onDelete": "cascade",
1566
- "onUpdate": "no action"
1567
- },
1568
- "generations_user_artifact_id_user_artifacts_id_fk": {
1569
- "name": "generations_user_artifact_id_user_artifacts_id_fk",
1570
- "tableFrom": "generations",
1571
- "tableTo": "user_artifacts",
1572
- "columnsFrom": [
1573
- "user_artifact_id"
1574
- ],
1575
- "columnsTo": [
1576
- "id"
1577
- ],
1578
- "onDelete": "cascade",
1579
- "onUpdate": "no action"
1580
- },
1581
- "generations_concept_combination_id_concept_combinations_id_fk": {
1582
- "name": "generations_concept_combination_id_concept_combinations_id_fk",
1583
- "tableFrom": "generations",
1584
- "tableTo": "concept_combinations",
1585
- "columnsFrom": [
1586
- "concept_combination_id"
1587
- ],
1588
- "columnsTo": [
1589
- "id"
1590
- ],
1591
- "onDelete": "cascade",
1592
- "onUpdate": "no action"
1593
- }
1594
- },
1595
- "compositePrimaryKeys": {},
1596
- "uniqueConstraints": {},
1597
- "checkConstraints": {}
1598
- },
1599
- "house_reports": {
1600
- "name": "house_reports",
1601
- "columns": {
1602
- "id": {
1603
- "name": "id",
1604
- "type": "text",
1605
- "primaryKey": true,
1606
- "notNull": true,
1607
- "autoincrement": false
1608
- },
1609
- "sign": {
1610
- "name": "sign",
1611
- "type": "text",
1612
- "primaryKey": false,
1613
- "notNull": true,
1614
- "autoincrement": false
1615
- },
1616
- "house": {
1617
- "name": "house",
1618
- "type": "integer",
1619
- "primaryKey": false,
1620
- "notNull": true,
1621
- "autoincrement": false
1622
- },
1623
- "description_template_id": {
1624
- "name": "description_template_id",
1625
- "type": "text",
1626
- "primaryKey": false,
1627
- "notNull": false,
1628
- "autoincrement": false
1629
- },
1630
- "en_report": {
1631
- "name": "en_report",
1632
- "type": "text",
1633
- "primaryKey": false,
1634
- "notNull": false,
1635
- "autoincrement": false
1636
- },
1637
- "pt_report": {
1638
- "name": "pt_report",
1639
- "type": "text",
1640
- "primaryKey": false,
1641
- "notNull": false,
1642
- "autoincrement": false
1643
- },
1644
- "created_at": {
1645
- "name": "created_at",
1646
- "type": "integer",
1647
- "primaryKey": false,
1648
- "notNull": false,
1649
- "autoincrement": false,
1650
- "default": "CURRENT_TIMESTAMP"
1651
- },
1652
- "updated_at": {
1653
- "name": "updated_at",
1654
- "type": "integer",
1655
- "primaryKey": false,
1656
- "notNull": false,
1657
- "autoincrement": false,
1658
- "default": "CURRENT_TIMESTAMP"
1659
- }
1660
- },
1661
- "indexes": {
1662
- "house_reports_sign_house_idx": {
1663
- "name": "house_reports_sign_house_idx",
1664
- "columns": [
1665
- "sign",
1666
- "house"
1667
- ],
1668
- "isUnique": false
1669
- },
1670
- "house_reports_description_template_idx": {
1671
- "name": "house_reports_description_template_idx",
1672
- "columns": [
1673
- "description_template_id"
1674
- ],
1675
- "isUnique": false
1676
- }
1677
- },
1678
- "foreignKeys": {
1679
- "house_reports_description_template_id_astro_description_templates_id_fk": {
1680
- "name": "house_reports_description_template_id_astro_description_templates_id_fk",
1681
- "tableFrom": "house_reports",
1682
- "tableTo": "astro_description_templates",
1683
- "columnsFrom": [
1684
- "description_template_id"
1685
- ],
1686
- "columnsTo": [
1687
- "id"
1688
- ],
1689
- "onDelete": "set null",
1690
- "onUpdate": "no action"
1691
- }
1692
- },
1693
- "compositePrimaryKeys": {},
1694
- "uniqueConstraints": {},
1695
- "checkConstraints": {}
1696
- },
1697
- "tokens": {
1698
- "name": "tokens",
1699
- "columns": {
1700
- "id": {
1701
- "name": "id",
1702
- "type": "text",
1703
- "primaryKey": true,
1704
- "notNull": true,
1705
- "autoincrement": false
1706
- },
1707
- "user_id": {
1708
- "name": "user_id",
1709
- "type": "text",
1710
- "primaryKey": false,
1711
- "notNull": true,
1712
- "autoincrement": false
1713
- },
1714
- "refresh_token": {
1715
- "name": "refresh_token",
1716
- "type": "text",
1717
- "primaryKey": false,
1718
- "notNull": true,
1719
- "autoincrement": false
1720
- },
1721
- "expires_at": {
1722
- "name": "expires_at",
1723
- "type": "text",
1724
- "primaryKey": false,
1725
- "notNull": true,
1726
- "autoincrement": false
1727
- },
1728
- "created_at": {
1729
- "name": "created_at",
1730
- "type": "integer",
1731
- "primaryKey": false,
1732
- "notNull": true,
1733
- "autoincrement": false,
1734
- "default": "CURRENT_TIMESTAMP"
1735
- },
1736
- "updated_at": {
1737
- "name": "updated_at",
1738
- "type": "integer",
1739
- "primaryKey": false,
1740
- "notNull": true,
1741
- "autoincrement": false,
1742
- "default": "CURRENT_TIMESTAMP"
1743
- }
1744
- },
1745
- "indexes": {
1746
- "tokens_refresh_token_unique": {
1747
- "name": "tokens_refresh_token_unique",
1748
- "columns": [
1749
- "refresh_token"
1750
- ],
1751
- "isUnique": true
1752
- },
1753
- "tokens_user_id_idx": {
1754
- "name": "tokens_user_id_idx",
1755
- "columns": [
1756
- "user_id"
1757
- ],
1758
- "isUnique": false
1759
- }
1760
- },
1761
- "foreignKeys": {
1762
- "tokens_user_id_users_id_fk": {
1763
- "name": "tokens_user_id_users_id_fk",
1764
- "tableFrom": "tokens",
1765
- "tableTo": "users",
1766
- "columnsFrom": [
1767
- "user_id"
1768
- ],
1769
- "columnsTo": [
1770
- "id"
1771
- ],
1772
- "onDelete": "cascade",
1773
- "onUpdate": "no action"
1774
- }
1775
- },
1776
- "compositePrimaryKeys": {},
1777
- "uniqueConstraints": {},
1778
- "checkConstraints": {}
1779
- },
1780
- "user_artifacts": {
1781
- "name": "user_artifacts",
1782
- "columns": {
1783
- "id": {
1784
- "name": "id",
1785
- "type": "text",
1786
- "primaryKey": true,
1787
- "notNull": true,
1788
- "autoincrement": false
1789
- },
1790
- "user_id": {
1791
- "name": "user_id",
1792
- "type": "text",
1793
- "primaryKey": false,
1794
- "notNull": true,
1795
- "autoincrement": false
1796
- },
1797
- "user_concept_id": {
1798
- "name": "user_concept_id",
1799
- "type": "text",
1800
- "primaryKey": false,
1801
- "notNull": true,
1802
- "autoincrement": false
1803
- },
1804
- "artifact_id": {
1805
- "name": "artifact_id",
1806
- "type": "text",
1807
- "primaryKey": false,
1808
- "notNull": true,
1809
- "autoincrement": false
1810
- },
1811
- "gender": {
1812
- "name": "gender",
1813
- "type": "text",
1814
- "primaryKey": false,
1815
- "notNull": true,
1816
- "autoincrement": false
1817
- },
1818
- "archetype_index": {
1819
- "name": "archetype_index",
1820
- "type": "text",
1821
- "primaryKey": false,
1822
- "notNull": true,
1823
- "autoincrement": false
1824
- },
1825
- "post_image_id": {
1826
- "name": "post_image_id",
1827
- "type": "text",
1828
- "primaryKey": false,
1829
- "notNull": false,
1830
- "autoincrement": false
1831
- },
1832
- "reel_image_id": {
1833
- "name": "reel_image_id",
1834
- "type": "text",
1835
- "primaryKey": false,
1836
- "notNull": false,
1837
- "autoincrement": false
1838
- },
1839
- "post_image_url": {
1840
- "name": "post_image_url",
1841
- "type": "text",
1842
- "primaryKey": false,
1843
- "notNull": false,
1844
- "autoincrement": false
1845
- },
1846
- "reel_image_url": {
1847
- "name": "reel_image_url",
1848
- "type": "text",
1849
- "primaryKey": false,
1850
- "notNull": false,
1851
- "autoincrement": false
1852
- },
1853
- "post_generation_id": {
1854
- "name": "post_generation_id",
1855
- "type": "text",
1856
- "primaryKey": false,
1857
- "notNull": false,
1858
- "autoincrement": false
1859
- },
1860
- "reel_generation_id": {
1861
- "name": "reel_generation_id",
1862
- "type": "text",
1863
- "primaryKey": false,
1864
- "notNull": false,
1865
- "autoincrement": false
1866
- },
1867
- "status": {
1868
- "name": "status",
1869
- "type": "text",
1870
- "primaryKey": false,
1871
- "notNull": true,
1872
- "autoincrement": false,
1873
- "default": "'pending'"
1874
- },
1875
- "created_at": {
1876
- "name": "created_at",
1877
- "type": "integer",
1878
- "primaryKey": false,
1879
- "notNull": true,
1880
- "autoincrement": false,
1881
- "default": "CURRENT_TIMESTAMP"
1882
- },
1883
- "updated_at": {
1884
- "name": "updated_at",
1885
- "type": "integer",
1886
- "primaryKey": false,
1887
- "notNull": true,
1888
- "autoincrement": false,
1889
- "default": "CURRENT_TIMESTAMP"
1890
- }
1891
- },
1892
- "indexes": {
1893
- "user_artifacts_user_id_idx": {
1894
- "name": "user_artifacts_user_id_idx",
1895
- "columns": [
1896
- "user_id"
1897
- ],
1898
- "isUnique": false
1899
- },
1900
- "user_artifacts_artifact_id_idx": {
1901
- "name": "user_artifacts_artifact_id_idx",
1902
- "columns": [
1903
- "artifact_id"
1904
- ],
1905
- "isUnique": false
1906
- },
1907
- "user_artifacts_status_idx": {
1908
- "name": "user_artifacts_status_idx",
1909
- "columns": [
1910
- "status"
1911
- ],
1912
- "isUnique": false
1913
- }
1914
- },
1915
- "foreignKeys": {
1916
- "user_artifacts_user_id_users_id_fk": {
1917
- "name": "user_artifacts_user_id_users_id_fk",
1918
- "tableFrom": "user_artifacts",
1919
- "tableTo": "users",
1920
- "columnsFrom": [
1921
- "user_id"
1922
- ],
1923
- "columnsTo": [
1924
- "id"
1925
- ],
1926
- "onDelete": "cascade",
1927
- "onUpdate": "no action"
1928
- },
1929
- "user_artifacts_user_concept_id_user_concepts_id_fk": {
1930
- "name": "user_artifacts_user_concept_id_user_concepts_id_fk",
1931
- "tableFrom": "user_artifacts",
1932
- "tableTo": "user_concepts",
1933
- "columnsFrom": [
1934
- "user_concept_id"
1935
- ],
1936
- "columnsTo": [
1937
- "id"
1938
- ],
1939
- "onDelete": "cascade",
1940
- "onUpdate": "no action"
1941
- },
1942
- "user_artifacts_artifact_id_artifacts_id_fk": {
1943
- "name": "user_artifacts_artifact_id_artifacts_id_fk",
1944
- "tableFrom": "user_artifacts",
1945
- "tableTo": "artifacts",
1946
- "columnsFrom": [
1947
- "artifact_id"
1948
- ],
1949
- "columnsTo": [
1950
- "id"
1951
- ],
1952
- "onDelete": "cascade",
1953
- "onUpdate": "no action"
1954
- }
1955
- },
1956
- "compositePrimaryKeys": {},
1957
- "uniqueConstraints": {},
1958
- "checkConstraints": {}
1959
- },
1960
- "user_concepts": {
1961
- "name": "user_concepts",
1962
- "columns": {
1963
- "id": {
1964
- "name": "id",
1965
- "type": "text",
1966
- "primaryKey": true,
1967
- "notNull": true,
1968
- "autoincrement": false
1969
- },
1970
- "user_id": {
1971
- "name": "user_id",
1972
- "type": "text",
1973
- "primaryKey": false,
1974
- "notNull": true,
1975
- "autoincrement": false
1976
- },
1977
- "concept_id": {
1978
- "name": "concept_id",
1979
- "type": "text",
1980
- "primaryKey": false,
1981
- "notNull": true,
1982
- "autoincrement": false
1983
- },
1984
- "concept_combination_id": {
1985
- "name": "concept_combination_id",
1986
- "type": "text",
1987
- "primaryKey": false,
1988
- "notNull": true,
1989
- "autoincrement": false
1990
- },
1991
- "created_at": {
1992
- "name": "created_at",
1993
- "type": "integer",
1994
- "primaryKey": false,
1995
- "notNull": true,
1996
- "autoincrement": false,
1997
- "default": "CURRENT_TIMESTAMP"
1998
- },
1999
- "updated_at": {
2000
- "name": "updated_at",
2001
- "type": "integer",
2002
- "primaryKey": false,
2003
- "notNull": true,
2004
- "autoincrement": false,
2005
- "default": "CURRENT_TIMESTAMP"
2006
- }
2007
- },
2008
- "indexes": {
2009
- "user_concepts_user_id_idx": {
2010
- "name": "user_concepts_user_id_idx",
2011
- "columns": [
2012
- "user_id"
2013
- ],
2014
- "isUnique": false
2015
- },
2016
- "user_concepts_concept_id_idx": {
2017
- "name": "user_concepts_concept_id_idx",
2018
- "columns": [
2019
- "concept_id"
2020
- ],
2021
- "isUnique": false
2022
- }
2023
- },
2024
- "foreignKeys": {
2025
- "user_concepts_user_id_users_id_fk": {
2026
- "name": "user_concepts_user_id_users_id_fk",
2027
- "tableFrom": "user_concepts",
2028
- "tableTo": "users",
2029
- "columnsFrom": [
2030
- "user_id"
2031
- ],
2032
- "columnsTo": [
2033
- "id"
2034
- ],
2035
- "onDelete": "cascade",
2036
- "onUpdate": "no action"
2037
- },
2038
- "user_concepts_concept_id_concepts_id_fk": {
2039
- "name": "user_concepts_concept_id_concepts_id_fk",
2040
- "tableFrom": "user_concepts",
2041
- "tableTo": "concepts",
2042
- "columnsFrom": [
2043
- "concept_id"
2044
- ],
2045
- "columnsTo": [
2046
- "id"
2047
- ],
2048
- "onDelete": "cascade",
2049
- "onUpdate": "no action"
2050
- },
2051
- "user_concepts_concept_combination_id_concept_combinations_id_fk": {
2052
- "name": "user_concepts_concept_combination_id_concept_combinations_id_fk",
2053
- "tableFrom": "user_concepts",
2054
- "tableTo": "concept_combinations",
2055
- "columnsFrom": [
2056
- "concept_combination_id"
2057
- ],
2058
- "columnsTo": [
2059
- "id"
2060
- ],
2061
- "onDelete": "cascade",
2062
- "onUpdate": "no action"
2063
- }
2064
- },
2065
- "compositePrimaryKeys": {},
2066
- "uniqueConstraints": {},
2067
- "checkConstraints": {}
2068
- },
2069
- "users": {
2070
- "name": "users",
2071
- "columns": {
2072
- "id": {
2073
- "name": "id",
2074
- "type": "text",
2075
- "primaryKey": true,
2076
- "notNull": true,
2077
- "autoincrement": false
2078
- },
2079
- "email": {
2080
- "name": "email",
2081
- "type": "text",
2082
- "primaryKey": false,
2083
- "notNull": true,
2084
- "autoincrement": false
2085
- },
2086
- "password_hash": {
2087
- "name": "password_hash",
2088
- "type": "text",
2089
- "primaryKey": false,
2090
- "notNull": false,
2091
- "autoincrement": false
2092
- },
2093
- "name": {
2094
- "name": "name",
2095
- "type": "text",
2096
- "primaryKey": false,
2097
- "notNull": true,
2098
- "autoincrement": false
2099
- },
2100
- "profile_image": {
2101
- "name": "profile_image",
2102
- "type": "text",
2103
- "primaryKey": false,
2104
- "notNull": false,
2105
- "autoincrement": false
2106
- },
2107
- "user_photo_id": {
2108
- "name": "user_photo_id",
2109
- "type": "text",
2110
- "primaryKey": false,
2111
- "notNull": false,
2112
- "autoincrement": false
2113
- },
2114
- "user_photo_url": {
2115
- "name": "user_photo_url",
2116
- "type": "text",
2117
- "primaryKey": false,
2118
- "notNull": false,
2119
- "autoincrement": false
2120
- },
2121
- "gender": {
2122
- "name": "gender",
2123
- "type": "text",
2124
- "primaryKey": false,
2125
- "notNull": false,
2126
- "autoincrement": false
2127
- },
2128
- "day": {
2129
- "name": "day",
2130
- "type": "integer",
2131
- "primaryKey": false,
2132
- "notNull": true,
2133
- "autoincrement": false
2134
- },
2135
- "month": {
2136
- "name": "month",
2137
- "type": "integer",
2138
- "primaryKey": false,
2139
- "notNull": true,
2140
- "autoincrement": false
2141
- },
2142
- "year": {
2143
- "name": "year",
2144
- "type": "integer",
2145
- "primaryKey": false,
2146
- "notNull": true,
2147
- "autoincrement": false
2148
- },
2149
- "hour": {
2150
- "name": "hour",
2151
- "type": "integer",
2152
- "primaryKey": false,
2153
- "notNull": false,
2154
- "autoincrement": false
2155
- },
2156
- "min": {
2157
- "name": "min",
2158
- "type": "integer",
2159
- "primaryKey": false,
2160
- "notNull": false,
2161
- "autoincrement": false
2162
- },
2163
- "latitude": {
2164
- "name": "latitude",
2165
- "type": "real",
2166
- "primaryKey": false,
2167
- "notNull": true,
2168
- "autoincrement": false
2169
- },
2170
- "longitude": {
2171
- "name": "longitude",
2172
- "type": "real",
2173
- "primaryKey": false,
2174
- "notNull": true,
2175
- "autoincrement": false
2176
- },
2177
- "tzone": {
2178
- "name": "tzone",
2179
- "type": "real",
2180
- "primaryKey": false,
2181
- "notNull": false,
2182
- "autoincrement": false
2183
- },
2184
- "birth_location": {
2185
- "name": "birth_location",
2186
- "type": "text",
2187
- "primaryKey": false,
2188
- "notNull": true,
2189
- "autoincrement": false
2190
- },
2191
- "instagram_username": {
2192
- "name": "instagram_username",
2193
- "type": "text",
2194
- "primaryKey": false,
2195
- "notNull": false,
2196
- "autoincrement": false
2197
- },
2198
- "tiktok_username": {
2199
- "name": "tiktok_username",
2200
- "type": "text",
2201
- "primaryKey": false,
2202
- "notNull": false,
2203
- "autoincrement": false
2204
- },
2205
- "oauth_provider": {
2206
- "name": "oauth_provider",
2207
- "type": "text",
2208
- "primaryKey": false,
2209
- "notNull": false,
2210
- "autoincrement": false
2211
- },
2212
- "oauth_provider_id": {
2213
- "name": "oauth_provider_id",
2214
- "type": "text",
2215
- "primaryKey": false,
2216
- "notNull": false,
2217
- "autoincrement": false
2218
- },
2219
- "credits_balance": {
2220
- "name": "credits_balance",
2221
- "type": "integer",
2222
- "primaryKey": false,
2223
- "notNull": true,
2224
- "autoincrement": false,
2225
- "default": 0
2226
- },
2227
- "total_credits_earned": {
2228
- "name": "total_credits_earned",
2229
- "type": "integer",
2230
- "primaryKey": false,
2231
- "notNull": true,
2232
- "autoincrement": false,
2233
- "default": 0
2234
- },
2235
- "last_transaction_at": {
2236
- "name": "last_transaction_at",
2237
- "type": "integer",
2238
- "primaryKey": false,
2239
- "notNull": false,
2240
- "autoincrement": false
2241
- },
2242
- "language": {
2243
- "name": "language",
2244
- "type": "text",
2245
- "primaryKey": false,
2246
- "notNull": true,
2247
- "autoincrement": false
2248
- },
2249
- "created_at": {
2250
- "name": "created_at",
2251
- "type": "integer",
2252
- "primaryKey": false,
2253
- "notNull": true,
2254
- "autoincrement": false,
2255
- "default": "CURRENT_TIMESTAMP"
2256
- },
2257
- "updated_at": {
2258
- "name": "updated_at",
2259
- "type": "integer",
2260
- "primaryKey": false,
2261
- "notNull": true,
2262
- "autoincrement": false,
2263
- "default": "CURRENT_TIMESTAMP"
2264
- }
2265
- },
2266
- "indexes": {
2267
- "users_email_unique": {
2268
- "name": "users_email_unique",
2269
- "columns": [
2270
- "email"
2271
- ],
2272
- "isUnique": true
2273
- },
2274
- "users_instagram_username_unique": {
2275
- "name": "users_instagram_username_unique",
2276
- "columns": [
2277
- "instagram_username"
2278
- ],
2279
- "isUnique": true
2280
- },
2281
- "users_tiktok_username_unique": {
2282
- "name": "users_tiktok_username_unique",
2283
- "columns": [
2284
- "tiktok_username"
2285
- ],
2286
- "isUnique": true
2287
- },
2288
- "users_oauth_provider_id_unique": {
2289
- "name": "users_oauth_provider_id_unique",
2290
- "columns": [
2291
- "oauth_provider_id"
2292
- ],
2293
- "isUnique": true
2294
- },
2295
- "users_email_idx": {
2296
- "name": "users_email_idx",
2297
- "columns": [
2298
- "email"
2299
- ],
2300
- "isUnique": false
2301
- },
2302
- "users_oauth_provider_idx": {
2303
- "name": "users_oauth_provider_idx",
2304
- "columns": [
2305
- "oauth_provider",
2306
- "oauth_provider_id"
2307
- ],
2308
- "isUnique": false
2309
- }
2310
- },
2311
- "foreignKeys": {},
2312
- "compositePrimaryKeys": {},
2313
- "uniqueConstraints": {},
2314
- "checkConstraints": {}
2315
- },
2316
- "users_temp": {
2317
- "name": "users_temp",
2318
- "columns": {
2319
- "id": {
2320
- "name": "id",
2321
- "type": "text",
2322
- "primaryKey": true,
2323
- "notNull": true,
2324
- "autoincrement": false
2325
- },
2326
- "email": {
2327
- "name": "email",
2328
- "type": "text",
2329
- "primaryKey": false,
2330
- "notNull": true,
2331
- "autoincrement": false
2332
- },
2333
- "name": {
2334
- "name": "name",
2335
- "type": "text",
2336
- "primaryKey": false,
2337
- "notNull": true,
2338
- "autoincrement": false
2339
- },
2340
- "profile_image": {
2341
- "name": "profile_image",
2342
- "type": "text",
2343
- "primaryKey": false,
2344
- "notNull": false,
2345
- "autoincrement": false
2346
- },
2347
- "language": {
2348
- "name": "language",
2349
- "type": "text",
2350
- "primaryKey": false,
2351
- "notNull": true,
2352
- "autoincrement": false
2353
- },
2354
- "oauth_provider": {
2355
- "name": "oauth_provider",
2356
- "type": "text",
2357
- "primaryKey": false,
2358
- "notNull": false,
2359
- "autoincrement": false
2360
- },
2361
- "oauth_provider_id": {
2362
- "name": "oauth_provider_id",
2363
- "type": "text",
2364
- "primaryKey": false,
2365
- "notNull": false,
2366
- "autoincrement": false
2367
- },
2368
- "created_at": {
2369
- "name": "created_at",
2370
- "type": "integer",
2371
- "primaryKey": false,
2372
- "notNull": true,
2373
- "autoincrement": false,
2374
- "default": "CURRENT_TIMESTAMP"
2375
- },
2376
- "updated_at": {
2377
- "name": "updated_at",
2378
- "type": "integer",
2379
- "primaryKey": false,
2380
- "notNull": true,
2381
- "autoincrement": false,
2382
- "default": "CURRENT_TIMESTAMP"
2383
- }
2384
- },
2385
- "indexes": {
2386
- "users_temp_email_unique": {
2387
- "name": "users_temp_email_unique",
2388
- "columns": [
2389
- "email"
2390
- ],
2391
- "isUnique": true
2392
- },
2393
- "users_temp_email_idx": {
2394
- "name": "users_temp_email_idx",
2395
- "columns": [
2396
- "email"
2397
- ],
2398
- "isUnique": false
2399
- }
2400
- },
2401
- "foreignKeys": {},
2402
- "compositePrimaryKeys": {},
2403
- "uniqueConstraints": {},
2404
- "checkConstraints": {}
2405
- }
2406
- },
2407
- "views": {},
2408
- "enums": {},
2409
- "_meta": {
2410
- "schemas": {},
2411
- "tables": {},
2412
- "columns": {}
2413
- },
2414
- "internal": {
2415
- "indexes": {}
2416
- }
2417
- }