@zodic/shared 0.0.4 → 0.0.6

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.
@@ -0,0 +1,480 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "a56cb174-4b02-4ed7-a877-1c352f5584ec",
5
+ "prevId": "bc424dbf-1267-4416-b160-dbfb94f0667b",
6
+ "tables": {
7
+ "astrological_data": {
8
+ "name": "astrological_data",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false,
16
+ "default": "lower(hex(randomblob(16)))"
17
+ },
18
+ "user_id": {
19
+ "name": "user_id",
20
+ "type": "text",
21
+ "primaryKey": false,
22
+ "notNull": true,
23
+ "autoincrement": false
24
+ },
25
+ "planet": {
26
+ "name": "planet",
27
+ "type": "text",
28
+ "primaryKey": false,
29
+ "notNull": true,
30
+ "autoincrement": false
31
+ },
32
+ "sign": {
33
+ "name": "sign",
34
+ "type": "text",
35
+ "primaryKey": false,
36
+ "notNull": true,
37
+ "autoincrement": false
38
+ },
39
+ "house": {
40
+ "name": "house",
41
+ "type": "integer",
42
+ "primaryKey": false,
43
+ "notNull": true,
44
+ "autoincrement": false
45
+ },
46
+ "full_degree": {
47
+ "name": "full_degree",
48
+ "type": "real",
49
+ "primaryKey": false,
50
+ "notNull": true,
51
+ "autoincrement": false
52
+ },
53
+ "norm_degree": {
54
+ "name": "norm_degree",
55
+ "type": "real",
56
+ "primaryKey": false,
57
+ "notNull": true,
58
+ "autoincrement": false
59
+ },
60
+ "speed": {
61
+ "name": "speed",
62
+ "type": "real",
63
+ "primaryKey": false,
64
+ "notNull": true,
65
+ "autoincrement": false
66
+ },
67
+ "is_retro": {
68
+ "name": "is_retro",
69
+ "type": "integer",
70
+ "primaryKey": false,
71
+ "notNull": true,
72
+ "autoincrement": false
73
+ }
74
+ },
75
+ "indexes": {
76
+ "astrological_data_user_id_idx": {
77
+ "name": "astrological_data_user_id_idx",
78
+ "columns": [
79
+ "user_id"
80
+ ],
81
+ "isUnique": false
82
+ }
83
+ },
84
+ "foreignKeys": {
85
+ "astrological_data_user_id_users_id_fk": {
86
+ "name": "astrological_data_user_id_users_id_fk",
87
+ "tableFrom": "astrological_data",
88
+ "tableTo": "users",
89
+ "columnsFrom": [
90
+ "user_id"
91
+ ],
92
+ "columnsTo": [
93
+ "id"
94
+ ],
95
+ "onDelete": "cascade",
96
+ "onUpdate": "no action"
97
+ }
98
+ },
99
+ "compositePrimaryKeys": {},
100
+ "uniqueConstraints": {},
101
+ "checkConstraints": {}
102
+ },
103
+ "generations": {
104
+ "name": "generations",
105
+ "columns": {
106
+ "id": {
107
+ "name": "id",
108
+ "type": "text",
109
+ "primaryKey": true,
110
+ "notNull": true,
111
+ "autoincrement": false,
112
+ "default": "lower(hex(randomblob(16)))"
113
+ },
114
+ "user_id": {
115
+ "name": "user_id",
116
+ "type": "text",
117
+ "primaryKey": false,
118
+ "notNull": true,
119
+ "autoincrement": false
120
+ },
121
+ "product_id": {
122
+ "name": "product_id",
123
+ "type": "text",
124
+ "primaryKey": false,
125
+ "notNull": true,
126
+ "autoincrement": false
127
+ },
128
+ "type": {
129
+ "name": "type",
130
+ "type": "text",
131
+ "primaryKey": false,
132
+ "notNull": true,
133
+ "autoincrement": false
134
+ },
135
+ "image_id": {
136
+ "name": "image_id",
137
+ "type": "text",
138
+ "primaryKey": false,
139
+ "notNull": false,
140
+ "autoincrement": false
141
+ },
142
+ "image_url": {
143
+ "name": "image_url",
144
+ "type": "text",
145
+ "primaryKey": false,
146
+ "notNull": false,
147
+ "autoincrement": false
148
+ },
149
+ "report_content": {
150
+ "name": "report_content",
151
+ "type": "text",
152
+ "primaryKey": false,
153
+ "notNull": false,
154
+ "autoincrement": false
155
+ },
156
+ "external_source_url": {
157
+ "name": "external_source_url",
158
+ "type": "text",
159
+ "primaryKey": false,
160
+ "notNull": false,
161
+ "autoincrement": false
162
+ },
163
+ "created_at": {
164
+ "name": "created_at",
165
+ "type": "text",
166
+ "primaryKey": false,
167
+ "notNull": false,
168
+ "autoincrement": false,
169
+ "default": "'CURRENT_TIMESTAMP'"
170
+ },
171
+ "metadata": {
172
+ "name": "metadata",
173
+ "type": "text",
174
+ "primaryKey": false,
175
+ "notNull": false,
176
+ "autoincrement": false
177
+ }
178
+ },
179
+ "indexes": {
180
+ "generations_user_id_idx": {
181
+ "name": "generations_user_id_idx",
182
+ "columns": [
183
+ "user_id"
184
+ ],
185
+ "isUnique": false
186
+ },
187
+ "generations_product_id_idx": {
188
+ "name": "generations_product_id_idx",
189
+ "columns": [
190
+ "product_id"
191
+ ],
192
+ "isUnique": false
193
+ },
194
+ "generations_user_id_product_id_idx": {
195
+ "name": "generations_user_id_product_id_idx",
196
+ "columns": [
197
+ "user_id",
198
+ "product_id"
199
+ ],
200
+ "isUnique": false
201
+ }
202
+ },
203
+ "foreignKeys": {
204
+ "generations_user_id_users_id_fk": {
205
+ "name": "generations_user_id_users_id_fk",
206
+ "tableFrom": "generations",
207
+ "tableTo": "users",
208
+ "columnsFrom": [
209
+ "user_id"
210
+ ],
211
+ "columnsTo": [
212
+ "id"
213
+ ],
214
+ "onDelete": "cascade",
215
+ "onUpdate": "no action"
216
+ },
217
+ "generations_product_id_products_id_fk": {
218
+ "name": "generations_product_id_products_id_fk",
219
+ "tableFrom": "generations",
220
+ "tableTo": "products",
221
+ "columnsFrom": [
222
+ "product_id"
223
+ ],
224
+ "columnsTo": [
225
+ "id"
226
+ ],
227
+ "onDelete": "set null",
228
+ "onUpdate": "no action"
229
+ }
230
+ },
231
+ "compositePrimaryKeys": {},
232
+ "uniqueConstraints": {},
233
+ "checkConstraints": {}
234
+ },
235
+ "products": {
236
+ "name": "products",
237
+ "columns": {
238
+ "id": {
239
+ "name": "id",
240
+ "type": "text",
241
+ "primaryKey": true,
242
+ "notNull": true,
243
+ "autoincrement": false,
244
+ "default": "lower(hex(randomblob(16)))"
245
+ },
246
+ "name": {
247
+ "name": "name",
248
+ "type": "text",
249
+ "primaryKey": false,
250
+ "notNull": true,
251
+ "autoincrement": false
252
+ },
253
+ "description": {
254
+ "name": "description",
255
+ "type": "text",
256
+ "primaryKey": false,
257
+ "notNull": false,
258
+ "autoincrement": false
259
+ },
260
+ "created_at": {
261
+ "name": "created_at",
262
+ "type": "text",
263
+ "primaryKey": false,
264
+ "notNull": true,
265
+ "autoincrement": false,
266
+ "default": "CURRENT_TIMESTAMP"
267
+ }
268
+ },
269
+ "indexes": {
270
+ "products_name_unique": {
271
+ "name": "products_name_unique",
272
+ "columns": [
273
+ "name"
274
+ ],
275
+ "isUnique": true
276
+ },
277
+ "products_name_idx": {
278
+ "name": "products_name_idx",
279
+ "columns": [
280
+ "name"
281
+ ],
282
+ "isUnique": false
283
+ }
284
+ },
285
+ "foreignKeys": {},
286
+ "compositePrimaryKeys": {},
287
+ "uniqueConstraints": {},
288
+ "checkConstraints": {}
289
+ },
290
+ "tokens": {
291
+ "name": "tokens",
292
+ "columns": {
293
+ "id": {
294
+ "name": "id",
295
+ "type": "text",
296
+ "primaryKey": true,
297
+ "notNull": true,
298
+ "autoincrement": false
299
+ },
300
+ "user_id": {
301
+ "name": "user_id",
302
+ "type": "text",
303
+ "primaryKey": false,
304
+ "notNull": true,
305
+ "autoincrement": false
306
+ },
307
+ "refresh_token": {
308
+ "name": "refresh_token",
309
+ "type": "text",
310
+ "primaryKey": false,
311
+ "notNull": true,
312
+ "autoincrement": false
313
+ },
314
+ "expires_at": {
315
+ "name": "expires_at",
316
+ "type": "text",
317
+ "primaryKey": false,
318
+ "notNull": true,
319
+ "autoincrement": false
320
+ },
321
+ "created_at": {
322
+ "name": "created_at",
323
+ "type": "text",
324
+ "primaryKey": false,
325
+ "notNull": true,
326
+ "autoincrement": false,
327
+ "default": "CURRENT_TIMESTAMP"
328
+ }
329
+ },
330
+ "indexes": {
331
+ "tokens_refresh_token_unique": {
332
+ "name": "tokens_refresh_token_unique",
333
+ "columns": [
334
+ "refresh_token"
335
+ ],
336
+ "isUnique": true
337
+ },
338
+ "tokens_user_id_idx": {
339
+ "name": "tokens_user_id_idx",
340
+ "columns": [
341
+ "user_id"
342
+ ],
343
+ "isUnique": false
344
+ }
345
+ },
346
+ "foreignKeys": {
347
+ "tokens_user_id_users_id_fk": {
348
+ "name": "tokens_user_id_users_id_fk",
349
+ "tableFrom": "tokens",
350
+ "tableTo": "users",
351
+ "columnsFrom": [
352
+ "user_id"
353
+ ],
354
+ "columnsTo": [
355
+ "id"
356
+ ],
357
+ "onDelete": "cascade",
358
+ "onUpdate": "no action"
359
+ }
360
+ },
361
+ "compositePrimaryKeys": {},
362
+ "uniqueConstraints": {},
363
+ "checkConstraints": {}
364
+ },
365
+ "users": {
366
+ "name": "users",
367
+ "columns": {
368
+ "id": {
369
+ "name": "id",
370
+ "type": "text",
371
+ "primaryKey": true,
372
+ "notNull": true,
373
+ "autoincrement": false,
374
+ "default": "lower(hex(randomblob(16)))"
375
+ },
376
+ "email": {
377
+ "name": "email",
378
+ "type": "text",
379
+ "primaryKey": false,
380
+ "notNull": true,
381
+ "autoincrement": false
382
+ },
383
+ "name": {
384
+ "name": "name",
385
+ "type": "text",
386
+ "primaryKey": false,
387
+ "notNull": true,
388
+ "autoincrement": false
389
+ },
390
+ "profile_image": {
391
+ "name": "profile_image",
392
+ "type": "text",
393
+ "primaryKey": false,
394
+ "notNull": false,
395
+ "autoincrement": false
396
+ },
397
+ "user_photo_id": {
398
+ "name": "user_photo_id",
399
+ "type": "text",
400
+ "primaryKey": false,
401
+ "notNull": false,
402
+ "autoincrement": false
403
+ },
404
+ "user_photo_url": {
405
+ "name": "user_photo_url",
406
+ "type": "text",
407
+ "primaryKey": false,
408
+ "notNull": false,
409
+ "autoincrement": false
410
+ },
411
+ "gender": {
412
+ "name": "gender",
413
+ "type": "text",
414
+ "primaryKey": false,
415
+ "notNull": false,
416
+ "autoincrement": false
417
+ },
418
+ "birth_date_time": {
419
+ "name": "birth_date_time",
420
+ "type": "text",
421
+ "primaryKey": false,
422
+ "notNull": false,
423
+ "autoincrement": false
424
+ },
425
+ "latitude": {
426
+ "name": "latitude",
427
+ "type": "real",
428
+ "primaryKey": false,
429
+ "notNull": false,
430
+ "autoincrement": false
431
+ },
432
+ "longitude": {
433
+ "name": "longitude",
434
+ "type": "real",
435
+ "primaryKey": false,
436
+ "notNull": false,
437
+ "autoincrement": false
438
+ },
439
+ "created_at": {
440
+ "name": "created_at",
441
+ "type": "text",
442
+ "primaryKey": false,
443
+ "notNull": true,
444
+ "autoincrement": false,
445
+ "default": "CURRENT_TIMESTAMP"
446
+ }
447
+ },
448
+ "indexes": {
449
+ "users_email_unique": {
450
+ "name": "users_email_unique",
451
+ "columns": [
452
+ "email"
453
+ ],
454
+ "isUnique": true
455
+ },
456
+ "users_email_idx": {
457
+ "name": "users_email_idx",
458
+ "columns": [
459
+ "email"
460
+ ],
461
+ "isUnique": false
462
+ }
463
+ },
464
+ "foreignKeys": {},
465
+ "compositePrimaryKeys": {},
466
+ "uniqueConstraints": {},
467
+ "checkConstraints": {}
468
+ }
469
+ },
470
+ "views": {},
471
+ "enums": {},
472
+ "_meta": {
473
+ "schemas": {},
474
+ "tables": {},
475
+ "columns": {}
476
+ },
477
+ "internal": {
478
+ "indexes": {}
479
+ }
480
+ }