@zodic/shared 0.0.26 → 0.0.28

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 (26) hide show
  1. package/.wrangler/state/v3/d1/miniflare-D1DatabaseObject/d379cf52b047a184ecf29a10a32b971cde5e2c256717041a7cd396844038970d.sqlite-shm +0 -0
  2. package/db/migrations/{0000_dusty_green_goblin.sql → 0000_fearless_dust.sql} +68 -19
  3. package/db/migrations/0001_known_pretty_boy.sql +20 -0
  4. package/db/migrations/0002_exotic_maria_hill.sql +2 -0
  5. package/db/migrations/meta/0000_snapshot.json +371 -22
  6. package/db/migrations/meta/0001_snapshot.json +239 -26
  7. package/db/migrations/meta/0002_snapshot.json +239 -26
  8. package/db/migrations/meta/_journal.json +6 -55
  9. package/db/schema.ts +6 -6
  10. package/package.json +4 -3
  11. package/db/migrations/0001_low_tattoo.sql +0 -20
  12. package/db/migrations/0002_condemned_turbo.sql +0 -2
  13. package/db/migrations/0003_cynical_frog_thor.sql +0 -32
  14. package/db/migrations/0004_light_masked_marvel.sql +0 -130
  15. package/db/migrations/0005_silky_dagger.sql +0 -1
  16. package/db/migrations/0006_low_silver_centurion.sql +0 -26
  17. package/db/migrations/0007_complex_tarantula.sql +0 -18
  18. package/db/migrations/0008_ancient_doomsday.sql +0 -15
  19. package/db/migrations/0009_odd_metal_master.sql +0 -33
  20. package/db/migrations/meta/0003_snapshot.json +0 -1458
  21. package/db/migrations/meta/0004_snapshot.json +0 -1480
  22. package/db/migrations/meta/0005_snapshot.json +0 -1487
  23. package/db/migrations/meta/0006_snapshot.json +0 -1487
  24. package/db/migrations/meta/0007_snapshot.json +0 -1487
  25. package/db/migrations/meta/0008_snapshot.json +0 -1590
  26. package/db/migrations/meta/0009_snapshot.json +0 -1590
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "version": "6",
3
3
  "dialect": "sqlite",
4
- "id": "d2aec0b1-fc8e-4ef9-bcc3-a4358b1ba88a",
5
- "prevId": "354158b6-9733-4c5d-848c-9616374861d1",
4
+ "id": "5c06d641-2701-4f10-b160-3ee7507ef100",
5
+ "prevId": "2247ab77-439a-4a8c-9548-d0d9f5417999",
6
6
  "tables": {
7
7
  "artifact_faceswap": {
8
8
  "name": "artifact_faceswap",
@@ -28,11 +28,19 @@
28
28
  "notNull": false,
29
29
  "autoincrement": false
30
30
  },
31
+ "status": {
32
+ "name": "status",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false,
37
+ "default": "'pending'"
38
+ },
31
39
  "created_at": {
32
40
  "name": "created_at",
33
41
  "type": "integer",
34
42
  "primaryKey": false,
35
- "notNull": false,
43
+ "notNull": true,
36
44
  "autoincrement": false,
37
45
  "default": "CURRENT_TIMESTAMP"
38
46
  },
@@ -40,7 +48,7 @@
40
48
  "name": "updated_at",
41
49
  "type": "integer",
42
50
  "primaryKey": false,
43
- "notNull": false,
51
+ "notNull": true,
44
52
  "autoincrement": false,
45
53
  "default": "CURRENT_TIMESTAMP"
46
54
  }
@@ -110,6 +118,22 @@
110
118
  "primaryKey": false,
111
119
  "notNull": false,
112
120
  "autoincrement": false
121
+ },
122
+ "created_at": {
123
+ "name": "created_at",
124
+ "type": "integer",
125
+ "primaryKey": false,
126
+ "notNull": true,
127
+ "autoincrement": false,
128
+ "default": "CURRENT_TIMESTAMP"
129
+ },
130
+ "updated_at": {
131
+ "name": "updated_at",
132
+ "type": "integer",
133
+ "primaryKey": false,
134
+ "notNull": true,
135
+ "autoincrement": false,
136
+ "default": "CURRENT_TIMESTAMP"
113
137
  }
114
138
  },
115
139
  "indexes": {
@@ -202,6 +226,13 @@
202
226
  }
203
227
  },
204
228
  "indexes": {
229
+ "artifacts_slug_unique": {
230
+ "name": "artifacts_slug_unique",
231
+ "columns": [
232
+ "slug"
233
+ ],
234
+ "isUnique": true
235
+ },
205
236
  "artifacts_concept_id_idx": {
206
237
  "name": "artifacts_concept_id_idx",
207
238
  "columns": [
@@ -229,6 +260,101 @@
229
260
  "uniqueConstraints": {},
230
261
  "checkConstraints": {}
231
262
  },
263
+ "astro_aspects": {
264
+ "name": "astro_aspects",
265
+ "columns": {
266
+ "id": {
267
+ "name": "id",
268
+ "type": "text",
269
+ "primaryKey": true,
270
+ "notNull": true,
271
+ "autoincrement": false
272
+ },
273
+ "user_id": {
274
+ "name": "user_id",
275
+ "type": "text",
276
+ "primaryKey": false,
277
+ "notNull": true,
278
+ "autoincrement": false
279
+ },
280
+ "aspecting_planet": {
281
+ "name": "aspecting_planet",
282
+ "type": "text",
283
+ "primaryKey": false,
284
+ "notNull": true,
285
+ "autoincrement": false
286
+ },
287
+ "aspected_planet": {
288
+ "name": "aspected_planet",
289
+ "type": "text",
290
+ "primaryKey": false,
291
+ "notNull": true,
292
+ "autoincrement": false
293
+ },
294
+ "aspecting_planet_id": {
295
+ "name": "aspecting_planet_id",
296
+ "type": "integer",
297
+ "primaryKey": false,
298
+ "notNull": true,
299
+ "autoincrement": false
300
+ },
301
+ "aspected_planet_id": {
302
+ "name": "aspected_planet_id",
303
+ "type": "integer",
304
+ "primaryKey": false,
305
+ "notNull": true,
306
+ "autoincrement": false
307
+ },
308
+ "type": {
309
+ "name": "type",
310
+ "type": "text",
311
+ "primaryKey": false,
312
+ "notNull": true,
313
+ "autoincrement": false
314
+ },
315
+ "orb": {
316
+ "name": "orb",
317
+ "type": "real",
318
+ "primaryKey": false,
319
+ "notNull": true,
320
+ "autoincrement": false
321
+ },
322
+ "diff": {
323
+ "name": "diff",
324
+ "type": "real",
325
+ "primaryKey": false,
326
+ "notNull": true,
327
+ "autoincrement": false
328
+ }
329
+ },
330
+ "indexes": {
331
+ "astro_aspects_user_id_idx": {
332
+ "name": "astro_aspects_user_id_idx",
333
+ "columns": [
334
+ "user_id"
335
+ ],
336
+ "isUnique": false
337
+ }
338
+ },
339
+ "foreignKeys": {
340
+ "astro_aspects_user_id_users_id_fk": {
341
+ "name": "astro_aspects_user_id_users_id_fk",
342
+ "tableFrom": "astro_aspects",
343
+ "tableTo": "users",
344
+ "columnsFrom": [
345
+ "user_id"
346
+ ],
347
+ "columnsTo": [
348
+ "id"
349
+ ],
350
+ "onDelete": "cascade",
351
+ "onUpdate": "no action"
352
+ }
353
+ },
354
+ "compositePrimaryKeys": {},
355
+ "uniqueConstraints": {},
356
+ "checkConstraints": {}
357
+ },
232
358
  "astro_features": {
233
359
  "name": "astro_features",
234
360
  "columns": {
@@ -278,7 +404,7 @@
278
404
  "name": "order",
279
405
  "type": "integer",
280
406
  "primaryKey": false,
281
- "notNull": true,
407
+ "notNull": false,
282
408
  "autoincrement": false
283
409
  },
284
410
  "prominent_id": {
@@ -698,14 +824,22 @@
698
824
  "name": "payment_id",
699
825
  "type": "text",
700
826
  "primaryKey": false,
701
- "notNull": false,
827
+ "notNull": true,
702
828
  "autoincrement": false
703
829
  },
704
830
  "created_at": {
705
831
  "name": "created_at",
706
832
  "type": "integer",
707
833
  "primaryKey": false,
708
- "notNull": false,
834
+ "notNull": true,
835
+ "autoincrement": false,
836
+ "default": "CURRENT_TIMESTAMP"
837
+ },
838
+ "updated_at": {
839
+ "name": "updated_at",
840
+ "type": "integer",
841
+ "primaryKey": false,
842
+ "notNull": true,
709
843
  "autoincrement": false,
710
844
  "default": "CURRENT_TIMESTAMP"
711
845
  }
@@ -752,7 +886,7 @@
752
886
  "name": "user_id",
753
887
  "type": "text",
754
888
  "primaryKey": false,
755
- "notNull": true,
889
+ "notNull": false,
756
890
  "autoincrement": false
757
891
  },
758
892
  "artifact_id": {
@@ -762,6 +896,13 @@
762
896
  "notNull": false,
763
897
  "autoincrement": false
764
898
  },
899
+ "archetype_index": {
900
+ "name": "archetype_index",
901
+ "type": "integer",
902
+ "primaryKey": false,
903
+ "notNull": false,
904
+ "autoincrement": false
905
+ },
765
906
  "user_artifact_id": {
766
907
  "name": "user_artifact_id",
767
908
  "type": "text",
@@ -769,6 +910,13 @@
769
910
  "notNull": false,
770
911
  "autoincrement": false
771
912
  },
913
+ "gender": {
914
+ "name": "gender",
915
+ "type": "text",
916
+ "primaryKey": false,
917
+ "notNull": false,
918
+ "autoincrement": false
919
+ },
772
920
  "concept_combination_id": {
773
921
  "name": "concept_combination_id",
774
922
  "type": "text",
@@ -802,7 +950,7 @@
802
950
  "name": "created_at",
803
951
  "type": "integer",
804
952
  "primaryKey": false,
805
- "notNull": false,
953
+ "notNull": true,
806
954
  "autoincrement": false,
807
955
  "default": "CURRENT_TIMESTAMP"
808
956
  },
@@ -810,7 +958,7 @@
810
958
  "name": "updated_at",
811
959
  "type": "integer",
812
960
  "primaryKey": false,
813
- "notNull": false,
961
+ "notNull": true,
814
962
  "autoincrement": false,
815
963
  "default": "CURRENT_TIMESTAMP"
816
964
  }
@@ -829,6 +977,13 @@
829
977
  "concept_combination_id"
830
978
  ],
831
979
  "isUnique": false
980
+ },
981
+ "generations_archetype_index_idx": {
982
+ "name": "generations_archetype_index_idx",
983
+ "columns": [
984
+ "archetype_index"
985
+ ],
986
+ "isUnique": false
832
987
  }
833
988
  },
834
989
  "foreignKeys": {
@@ -922,7 +1077,15 @@
922
1077
  },
923
1078
  "created_at": {
924
1079
  "name": "created_at",
925
- "type": "text",
1080
+ "type": "integer",
1081
+ "primaryKey": false,
1082
+ "notNull": true,
1083
+ "autoincrement": false,
1084
+ "default": "CURRENT_TIMESTAMP"
1085
+ },
1086
+ "updated_at": {
1087
+ "name": "updated_at",
1088
+ "type": "integer",
926
1089
  "primaryKey": false,
927
1090
  "notNull": true,
928
1091
  "autoincrement": false,
@@ -981,6 +1144,13 @@
981
1144
  "notNull": true,
982
1145
  "autoincrement": false
983
1146
  },
1147
+ "user_concept_id": {
1148
+ "name": "user_concept_id",
1149
+ "type": "text",
1150
+ "primaryKey": false,
1151
+ "notNull": true,
1152
+ "autoincrement": false
1153
+ },
984
1154
  "artifact_id": {
985
1155
  "name": "artifact_id",
986
1156
  "type": "text",
@@ -995,13 +1165,27 @@
995
1165
  "notNull": true,
996
1166
  "autoincrement": false
997
1167
  },
998
- "archetype_id": {
999
- "name": "archetype_id",
1168
+ "archetype_index": {
1169
+ "name": "archetype_index",
1000
1170
  "type": "text",
1001
1171
  "primaryKey": false,
1002
1172
  "notNull": true,
1003
1173
  "autoincrement": false
1004
1174
  },
1175
+ "post_image_id": {
1176
+ "name": "post_image_id",
1177
+ "type": "text",
1178
+ "primaryKey": false,
1179
+ "notNull": false,
1180
+ "autoincrement": false
1181
+ },
1182
+ "reel_image_id": {
1183
+ "name": "reel_image_id",
1184
+ "type": "text",
1185
+ "primaryKey": false,
1186
+ "notNull": false,
1187
+ "autoincrement": false
1188
+ },
1005
1189
  "post_image_url": {
1006
1190
  "name": "post_image_url",
1007
1191
  "type": "text",
@@ -1042,7 +1226,7 @@
1042
1226
  "name": "created_at",
1043
1227
  "type": "integer",
1044
1228
  "primaryKey": false,
1045
- "notNull": false,
1229
+ "notNull": true,
1046
1230
  "autoincrement": false,
1047
1231
  "default": "CURRENT_TIMESTAMP"
1048
1232
  },
@@ -1050,7 +1234,7 @@
1050
1234
  "name": "updated_at",
1051
1235
  "type": "integer",
1052
1236
  "primaryKey": false,
1053
- "notNull": false,
1237
+ "notNull": true,
1054
1238
  "autoincrement": false,
1055
1239
  "default": "CURRENT_TIMESTAMP"
1056
1240
  }
@@ -1092,6 +1276,19 @@
1092
1276
  "onDelete": "cascade",
1093
1277
  "onUpdate": "no action"
1094
1278
  },
1279
+ "user_artifacts_user_concept_id_user_concepts_id_fk": {
1280
+ "name": "user_artifacts_user_concept_id_user_concepts_id_fk",
1281
+ "tableFrom": "user_artifacts",
1282
+ "tableTo": "user_concepts",
1283
+ "columnsFrom": [
1284
+ "user_concept_id"
1285
+ ],
1286
+ "columnsTo": [
1287
+ "id"
1288
+ ],
1289
+ "onDelete": "cascade",
1290
+ "onUpdate": "no action"
1291
+ },
1095
1292
  "user_artifacts_artifact_id_artifacts_id_fk": {
1096
1293
  "name": "user_artifacts_artifact_id_artifacts_id_fk",
1097
1294
  "tableFrom": "user_artifacts",
@@ -1145,7 +1342,7 @@
1145
1342
  "name": "created_at",
1146
1343
  "type": "integer",
1147
1344
  "primaryKey": false,
1148
- "notNull": false,
1345
+ "notNull": true,
1149
1346
  "autoincrement": false,
1150
1347
  "default": "CURRENT_TIMESTAMP"
1151
1348
  },
@@ -1153,7 +1350,7 @@
1153
1350
  "name": "updated_at",
1154
1351
  "type": "integer",
1155
1352
  "primaryKey": false,
1156
- "notNull": false,
1353
+ "notNull": true,
1157
1354
  "autoincrement": false,
1158
1355
  "default": "CURRENT_TIMESTAMP"
1159
1356
  }
@@ -1275,21 +1472,21 @@
1275
1472
  "name": "day",
1276
1473
  "type": "integer",
1277
1474
  "primaryKey": false,
1278
- "notNull": false,
1475
+ "notNull": true,
1279
1476
  "autoincrement": false
1280
1477
  },
1281
1478
  "month": {
1282
1479
  "name": "month",
1283
1480
  "type": "integer",
1284
1481
  "primaryKey": false,
1285
- "notNull": false,
1482
+ "notNull": true,
1286
1483
  "autoincrement": false
1287
1484
  },
1288
1485
  "year": {
1289
1486
  "name": "year",
1290
1487
  "type": "integer",
1291
1488
  "primaryKey": false,
1292
- "notNull": false,
1489
+ "notNull": true,
1293
1490
  "autoincrement": false
1294
1491
  },
1295
1492
  "hour": {
@@ -1310,14 +1507,14 @@
1310
1507
  "name": "latitude",
1311
1508
  "type": "real",
1312
1509
  "primaryKey": false,
1313
- "notNull": false,
1510
+ "notNull": true,
1314
1511
  "autoincrement": false
1315
1512
  },
1316
1513
  "longitude": {
1317
1514
  "name": "longitude",
1318
1515
  "type": "real",
1319
1516
  "primaryKey": false,
1320
- "notNull": false,
1517
+ "notNull": true,
1321
1518
  "autoincrement": false
1322
1519
  },
1323
1520
  "tzone": {
@@ -1334,18 +1531,26 @@
1334
1531
  "notNull": false,
1335
1532
  "autoincrement": false
1336
1533
  },
1534
+ "tiktok_username": {
1535
+ "name": "tiktok_username",
1536
+ "type": "text",
1537
+ "primaryKey": false,
1538
+ "notNull": false,
1539
+ "autoincrement": false
1540
+ },
1337
1541
  "credits_balance": {
1338
1542
  "name": "credits_balance",
1339
1543
  "type": "integer",
1340
1544
  "primaryKey": false,
1341
- "notNull": false,
1342
- "autoincrement": false
1545
+ "notNull": true,
1546
+ "autoincrement": false,
1547
+ "default": 0
1343
1548
  },
1344
1549
  "total_credits_earned": {
1345
1550
  "name": "total_credits_earned",
1346
1551
  "type": "integer",
1347
1552
  "primaryKey": false,
1348
- "notNull": false,
1553
+ "notNull": true,
1349
1554
  "autoincrement": false,
1350
1555
  "default": 0
1351
1556
  },
@@ -1358,7 +1563,15 @@
1358
1563
  },
1359
1564
  "created_at": {
1360
1565
  "name": "created_at",
1361
- "type": "text",
1566
+ "type": "integer",
1567
+ "primaryKey": false,
1568
+ "notNull": true,
1569
+ "autoincrement": false,
1570
+ "default": "CURRENT_TIMESTAMP"
1571
+ },
1572
+ "updated_at": {
1573
+ "name": "updated_at",
1574
+ "type": "integer",
1362
1575
  "primaryKey": false,
1363
1576
  "notNull": true,
1364
1577
  "autoincrement": false,