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