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