tangled
alpha
login
or
join now
cosmik.network
/
semble
43
fork
atom
A social knowledge tool for researchers built on ATProto
43
fork
atom
overview
issues
13
pulls
pipelines
update db migration files for new index
Wesley Finck
5 months ago
61e45fd7
cb243ec7
+770
-1
3 changed files
expand all
collapse all
unified
split
src
shared
infrastructure
database
migrations
0003_harsh_lady_mastermind.sql
meta
0003_snapshot.json
_journal.json
+1
src/shared/infrastructure/database/migrations/0003_harsh_lady_mastermind.sql
···
1
1
+
CREATE INDEX "published_records_uri_idx" ON "published_records" USING btree ("uri");
+761
src/shared/infrastructure/database/migrations/meta/0003_snapshot.json
···
1
1
+
{
2
2
+
"id": "69abc7ad-c872-43e9-8e83-4d9362cf62c7",
3
3
+
"prevId": "91872a6a-78f5-4bf2-a7ec-691199cdf62b",
4
4
+
"version": "7",
5
5
+
"dialect": "postgresql",
6
6
+
"tables": {
7
7
+
"public.app_password_sessions": {
8
8
+
"name": "app_password_sessions",
9
9
+
"schema": "",
10
10
+
"columns": {
11
11
+
"did": {
12
12
+
"name": "did",
13
13
+
"type": "text",
14
14
+
"primaryKey": true,
15
15
+
"notNull": true
16
16
+
},
17
17
+
"session_data": {
18
18
+
"name": "session_data",
19
19
+
"type": "jsonb",
20
20
+
"primaryKey": false,
21
21
+
"notNull": true
22
22
+
},
23
23
+
"app_password": {
24
24
+
"name": "app_password",
25
25
+
"type": "text",
26
26
+
"primaryKey": false,
27
27
+
"notNull": true
28
28
+
},
29
29
+
"created_at": {
30
30
+
"name": "created_at",
31
31
+
"type": "timestamp",
32
32
+
"primaryKey": false,
33
33
+
"notNull": false,
34
34
+
"default": "now()"
35
35
+
},
36
36
+
"updated_at": {
37
37
+
"name": "updated_at",
38
38
+
"type": "timestamp",
39
39
+
"primaryKey": false,
40
40
+
"notNull": false,
41
41
+
"default": "now()"
42
42
+
}
43
43
+
},
44
44
+
"indexes": {},
45
45
+
"foreignKeys": {},
46
46
+
"compositePrimaryKeys": {},
47
47
+
"uniqueConstraints": {},
48
48
+
"policies": {},
49
49
+
"checkConstraints": {},
50
50
+
"isRLSEnabled": false
51
51
+
},
52
52
+
"public.cards": {
53
53
+
"name": "cards",
54
54
+
"schema": "",
55
55
+
"columns": {
56
56
+
"id": {
57
57
+
"name": "id",
58
58
+
"type": "uuid",
59
59
+
"primaryKey": true,
60
60
+
"notNull": true
61
61
+
},
62
62
+
"type": {
63
63
+
"name": "type",
64
64
+
"type": "text",
65
65
+
"primaryKey": false,
66
66
+
"notNull": true
67
67
+
},
68
68
+
"content_data": {
69
69
+
"name": "content_data",
70
70
+
"type": "jsonb",
71
71
+
"primaryKey": false,
72
72
+
"notNull": true
73
73
+
},
74
74
+
"url": {
75
75
+
"name": "url",
76
76
+
"type": "text",
77
77
+
"primaryKey": false,
78
78
+
"notNull": false
79
79
+
},
80
80
+
"parent_card_id": {
81
81
+
"name": "parent_card_id",
82
82
+
"type": "uuid",
83
83
+
"primaryKey": false,
84
84
+
"notNull": false
85
85
+
},
86
86
+
"original_published_record_id": {
87
87
+
"name": "original_published_record_id",
88
88
+
"type": "uuid",
89
89
+
"primaryKey": false,
90
90
+
"notNull": false
91
91
+
},
92
92
+
"library_count": {
93
93
+
"name": "library_count",
94
94
+
"type": "integer",
95
95
+
"primaryKey": false,
96
96
+
"notNull": true,
97
97
+
"default": 0
98
98
+
},
99
99
+
"created_at": {
100
100
+
"name": "created_at",
101
101
+
"type": "timestamp",
102
102
+
"primaryKey": false,
103
103
+
"notNull": true,
104
104
+
"default": "now()"
105
105
+
},
106
106
+
"updated_at": {
107
107
+
"name": "updated_at",
108
108
+
"type": "timestamp",
109
109
+
"primaryKey": false,
110
110
+
"notNull": true,
111
111
+
"default": "now()"
112
112
+
}
113
113
+
},
114
114
+
"indexes": {},
115
115
+
"foreignKeys": {
116
116
+
"cards_parent_card_id_cards_id_fk": {
117
117
+
"name": "cards_parent_card_id_cards_id_fk",
118
118
+
"tableFrom": "cards",
119
119
+
"tableTo": "cards",
120
120
+
"columnsFrom": [
121
121
+
"parent_card_id"
122
122
+
],
123
123
+
"columnsTo": [
124
124
+
"id"
125
125
+
],
126
126
+
"onDelete": "no action",
127
127
+
"onUpdate": "no action"
128
128
+
},
129
129
+
"cards_original_published_record_id_published_records_id_fk": {
130
130
+
"name": "cards_original_published_record_id_published_records_id_fk",
131
131
+
"tableFrom": "cards",
132
132
+
"tableTo": "published_records",
133
133
+
"columnsFrom": [
134
134
+
"original_published_record_id"
135
135
+
],
136
136
+
"columnsTo": [
137
137
+
"id"
138
138
+
],
139
139
+
"onDelete": "no action",
140
140
+
"onUpdate": "no action"
141
141
+
}
142
142
+
},
143
143
+
"compositePrimaryKeys": {},
144
144
+
"uniqueConstraints": {},
145
145
+
"policies": {},
146
146
+
"checkConstraints": {},
147
147
+
"isRLSEnabled": false
148
148
+
},
149
149
+
"public.collection_cards": {
150
150
+
"name": "collection_cards",
151
151
+
"schema": "",
152
152
+
"columns": {
153
153
+
"id": {
154
154
+
"name": "id",
155
155
+
"type": "uuid",
156
156
+
"primaryKey": true,
157
157
+
"notNull": true
158
158
+
},
159
159
+
"collection_id": {
160
160
+
"name": "collection_id",
161
161
+
"type": "uuid",
162
162
+
"primaryKey": false,
163
163
+
"notNull": true
164
164
+
},
165
165
+
"card_id": {
166
166
+
"name": "card_id",
167
167
+
"type": "uuid",
168
168
+
"primaryKey": false,
169
169
+
"notNull": true
170
170
+
},
171
171
+
"added_by": {
172
172
+
"name": "added_by",
173
173
+
"type": "text",
174
174
+
"primaryKey": false,
175
175
+
"notNull": true
176
176
+
},
177
177
+
"added_at": {
178
178
+
"name": "added_at",
179
179
+
"type": "timestamp",
180
180
+
"primaryKey": false,
181
181
+
"notNull": true,
182
182
+
"default": "now()"
183
183
+
},
184
184
+
"published_record_id": {
185
185
+
"name": "published_record_id",
186
186
+
"type": "uuid",
187
187
+
"primaryKey": false,
188
188
+
"notNull": false
189
189
+
}
190
190
+
},
191
191
+
"indexes": {},
192
192
+
"foreignKeys": {
193
193
+
"collection_cards_collection_id_collections_id_fk": {
194
194
+
"name": "collection_cards_collection_id_collections_id_fk",
195
195
+
"tableFrom": "collection_cards",
196
196
+
"tableTo": "collections",
197
197
+
"columnsFrom": [
198
198
+
"collection_id"
199
199
+
],
200
200
+
"columnsTo": [
201
201
+
"id"
202
202
+
],
203
203
+
"onDelete": "cascade",
204
204
+
"onUpdate": "no action"
205
205
+
},
206
206
+
"collection_cards_card_id_cards_id_fk": {
207
207
+
"name": "collection_cards_card_id_cards_id_fk",
208
208
+
"tableFrom": "collection_cards",
209
209
+
"tableTo": "cards",
210
210
+
"columnsFrom": [
211
211
+
"card_id"
212
212
+
],
213
213
+
"columnsTo": [
214
214
+
"id"
215
215
+
],
216
216
+
"onDelete": "cascade",
217
217
+
"onUpdate": "no action"
218
218
+
},
219
219
+
"collection_cards_published_record_id_published_records_id_fk": {
220
220
+
"name": "collection_cards_published_record_id_published_records_id_fk",
221
221
+
"tableFrom": "collection_cards",
222
222
+
"tableTo": "published_records",
223
223
+
"columnsFrom": [
224
224
+
"published_record_id"
225
225
+
],
226
226
+
"columnsTo": [
227
227
+
"id"
228
228
+
],
229
229
+
"onDelete": "no action",
230
230
+
"onUpdate": "no action"
231
231
+
}
232
232
+
},
233
233
+
"compositePrimaryKeys": {},
234
234
+
"uniqueConstraints": {},
235
235
+
"policies": {},
236
236
+
"checkConstraints": {},
237
237
+
"isRLSEnabled": false
238
238
+
},
239
239
+
"public.collection_collaborators": {
240
240
+
"name": "collection_collaborators",
241
241
+
"schema": "",
242
242
+
"columns": {
243
243
+
"id": {
244
244
+
"name": "id",
245
245
+
"type": "uuid",
246
246
+
"primaryKey": true,
247
247
+
"notNull": true
248
248
+
},
249
249
+
"collection_id": {
250
250
+
"name": "collection_id",
251
251
+
"type": "uuid",
252
252
+
"primaryKey": false,
253
253
+
"notNull": true
254
254
+
},
255
255
+
"collaborator_id": {
256
256
+
"name": "collaborator_id",
257
257
+
"type": "text",
258
258
+
"primaryKey": false,
259
259
+
"notNull": true
260
260
+
}
261
261
+
},
262
262
+
"indexes": {},
263
263
+
"foreignKeys": {
264
264
+
"collection_collaborators_collection_id_collections_id_fk": {
265
265
+
"name": "collection_collaborators_collection_id_collections_id_fk",
266
266
+
"tableFrom": "collection_collaborators",
267
267
+
"tableTo": "collections",
268
268
+
"columnsFrom": [
269
269
+
"collection_id"
270
270
+
],
271
271
+
"columnsTo": [
272
272
+
"id"
273
273
+
],
274
274
+
"onDelete": "cascade",
275
275
+
"onUpdate": "no action"
276
276
+
}
277
277
+
},
278
278
+
"compositePrimaryKeys": {},
279
279
+
"uniqueConstraints": {},
280
280
+
"policies": {},
281
281
+
"checkConstraints": {},
282
282
+
"isRLSEnabled": false
283
283
+
},
284
284
+
"public.collections": {
285
285
+
"name": "collections",
286
286
+
"schema": "",
287
287
+
"columns": {
288
288
+
"id": {
289
289
+
"name": "id",
290
290
+
"type": "uuid",
291
291
+
"primaryKey": true,
292
292
+
"notNull": true
293
293
+
},
294
294
+
"author_id": {
295
295
+
"name": "author_id",
296
296
+
"type": "text",
297
297
+
"primaryKey": false,
298
298
+
"notNull": true
299
299
+
},
300
300
+
"name": {
301
301
+
"name": "name",
302
302
+
"type": "text",
303
303
+
"primaryKey": false,
304
304
+
"notNull": true
305
305
+
},
306
306
+
"description": {
307
307
+
"name": "description",
308
308
+
"type": "text",
309
309
+
"primaryKey": false,
310
310
+
"notNull": false
311
311
+
},
312
312
+
"access_type": {
313
313
+
"name": "access_type",
314
314
+
"type": "text",
315
315
+
"primaryKey": false,
316
316
+
"notNull": true
317
317
+
},
318
318
+
"card_count": {
319
319
+
"name": "card_count",
320
320
+
"type": "integer",
321
321
+
"primaryKey": false,
322
322
+
"notNull": true,
323
323
+
"default": 0
324
324
+
},
325
325
+
"created_at": {
326
326
+
"name": "created_at",
327
327
+
"type": "timestamp",
328
328
+
"primaryKey": false,
329
329
+
"notNull": true,
330
330
+
"default": "now()"
331
331
+
},
332
332
+
"updated_at": {
333
333
+
"name": "updated_at",
334
334
+
"type": "timestamp",
335
335
+
"primaryKey": false,
336
336
+
"notNull": true,
337
337
+
"default": "now()"
338
338
+
},
339
339
+
"published_record_id": {
340
340
+
"name": "published_record_id",
341
341
+
"type": "uuid",
342
342
+
"primaryKey": false,
343
343
+
"notNull": false
344
344
+
}
345
345
+
},
346
346
+
"indexes": {},
347
347
+
"foreignKeys": {
348
348
+
"collections_published_record_id_published_records_id_fk": {
349
349
+
"name": "collections_published_record_id_published_records_id_fk",
350
350
+
"tableFrom": "collections",
351
351
+
"tableTo": "published_records",
352
352
+
"columnsFrom": [
353
353
+
"published_record_id"
354
354
+
],
355
355
+
"columnsTo": [
356
356
+
"id"
357
357
+
],
358
358
+
"onDelete": "no action",
359
359
+
"onUpdate": "no action"
360
360
+
}
361
361
+
},
362
362
+
"compositePrimaryKeys": {},
363
363
+
"uniqueConstraints": {},
364
364
+
"policies": {},
365
365
+
"checkConstraints": {},
366
366
+
"isRLSEnabled": false
367
367
+
},
368
368
+
"public.library_memberships": {
369
369
+
"name": "library_memberships",
370
370
+
"schema": "",
371
371
+
"columns": {
372
372
+
"card_id": {
373
373
+
"name": "card_id",
374
374
+
"type": "uuid",
375
375
+
"primaryKey": false,
376
376
+
"notNull": true
377
377
+
},
378
378
+
"user_id": {
379
379
+
"name": "user_id",
380
380
+
"type": "text",
381
381
+
"primaryKey": false,
382
382
+
"notNull": true
383
383
+
},
384
384
+
"added_at": {
385
385
+
"name": "added_at",
386
386
+
"type": "timestamp",
387
387
+
"primaryKey": false,
388
388
+
"notNull": true,
389
389
+
"default": "now()"
390
390
+
},
391
391
+
"published_record_id": {
392
392
+
"name": "published_record_id",
393
393
+
"type": "uuid",
394
394
+
"primaryKey": false,
395
395
+
"notNull": false
396
396
+
}
397
397
+
},
398
398
+
"indexes": {
399
399
+
"idx_user_cards": {
400
400
+
"name": "idx_user_cards",
401
401
+
"columns": [
402
402
+
{
403
403
+
"expression": "user_id",
404
404
+
"isExpression": false,
405
405
+
"asc": true,
406
406
+
"nulls": "last"
407
407
+
}
408
408
+
],
409
409
+
"isUnique": false,
410
410
+
"concurrently": false,
411
411
+
"method": "btree",
412
412
+
"with": {}
413
413
+
},
414
414
+
"idx_card_users": {
415
415
+
"name": "idx_card_users",
416
416
+
"columns": [
417
417
+
{
418
418
+
"expression": "card_id",
419
419
+
"isExpression": false,
420
420
+
"asc": true,
421
421
+
"nulls": "last"
422
422
+
}
423
423
+
],
424
424
+
"isUnique": false,
425
425
+
"concurrently": false,
426
426
+
"method": "btree",
427
427
+
"with": {}
428
428
+
}
429
429
+
},
430
430
+
"foreignKeys": {
431
431
+
"library_memberships_card_id_cards_id_fk": {
432
432
+
"name": "library_memberships_card_id_cards_id_fk",
433
433
+
"tableFrom": "library_memberships",
434
434
+
"tableTo": "cards",
435
435
+
"columnsFrom": [
436
436
+
"card_id"
437
437
+
],
438
438
+
"columnsTo": [
439
439
+
"id"
440
440
+
],
441
441
+
"onDelete": "cascade",
442
442
+
"onUpdate": "no action"
443
443
+
},
444
444
+
"library_memberships_published_record_id_published_records_id_fk": {
445
445
+
"name": "library_memberships_published_record_id_published_records_id_fk",
446
446
+
"tableFrom": "library_memberships",
447
447
+
"tableTo": "published_records",
448
448
+
"columnsFrom": [
449
449
+
"published_record_id"
450
450
+
],
451
451
+
"columnsTo": [
452
452
+
"id"
453
453
+
],
454
454
+
"onDelete": "no action",
455
455
+
"onUpdate": "no action"
456
456
+
}
457
457
+
},
458
458
+
"compositePrimaryKeys": {
459
459
+
"library_memberships_card_id_user_id_pk": {
460
460
+
"name": "library_memberships_card_id_user_id_pk",
461
461
+
"columns": [
462
462
+
"card_id",
463
463
+
"user_id"
464
464
+
]
465
465
+
}
466
466
+
},
467
467
+
"uniqueConstraints": {},
468
468
+
"policies": {},
469
469
+
"checkConstraints": {},
470
470
+
"isRLSEnabled": false
471
471
+
},
472
472
+
"public.published_records": {
473
473
+
"name": "published_records",
474
474
+
"schema": "",
475
475
+
"columns": {
476
476
+
"id": {
477
477
+
"name": "id",
478
478
+
"type": "uuid",
479
479
+
"primaryKey": true,
480
480
+
"notNull": true
481
481
+
},
482
482
+
"uri": {
483
483
+
"name": "uri",
484
484
+
"type": "text",
485
485
+
"primaryKey": false,
486
486
+
"notNull": true
487
487
+
},
488
488
+
"cid": {
489
489
+
"name": "cid",
490
490
+
"type": "text",
491
491
+
"primaryKey": false,
492
492
+
"notNull": true
493
493
+
},
494
494
+
"recorded_at": {
495
495
+
"name": "recorded_at",
496
496
+
"type": "timestamp",
497
497
+
"primaryKey": false,
498
498
+
"notNull": true,
499
499
+
"default": "now()"
500
500
+
}
501
501
+
},
502
502
+
"indexes": {
503
503
+
"uri_cid_unique_idx": {
504
504
+
"name": "uri_cid_unique_idx",
505
505
+
"columns": [
506
506
+
{
507
507
+
"expression": "uri",
508
508
+
"isExpression": false,
509
509
+
"asc": true,
510
510
+
"nulls": "last"
511
511
+
},
512
512
+
{
513
513
+
"expression": "cid",
514
514
+
"isExpression": false,
515
515
+
"asc": true,
516
516
+
"nulls": "last"
517
517
+
}
518
518
+
],
519
519
+
"isUnique": true,
520
520
+
"concurrently": false,
521
521
+
"method": "btree",
522
522
+
"with": {}
523
523
+
},
524
524
+
"published_records_uri_idx": {
525
525
+
"name": "published_records_uri_idx",
526
526
+
"columns": [
527
527
+
{
528
528
+
"expression": "uri",
529
529
+
"isExpression": false,
530
530
+
"asc": true,
531
531
+
"nulls": "last"
532
532
+
}
533
533
+
],
534
534
+
"isUnique": false,
535
535
+
"concurrently": false,
536
536
+
"method": "btree",
537
537
+
"with": {}
538
538
+
}
539
539
+
},
540
540
+
"foreignKeys": {},
541
541
+
"compositePrimaryKeys": {},
542
542
+
"uniqueConstraints": {},
543
543
+
"policies": {},
544
544
+
"checkConstraints": {},
545
545
+
"isRLSEnabled": false
546
546
+
},
547
547
+
"public.feed_activities": {
548
548
+
"name": "feed_activities",
549
549
+
"schema": "",
550
550
+
"columns": {
551
551
+
"id": {
552
552
+
"name": "id",
553
553
+
"type": "uuid",
554
554
+
"primaryKey": true,
555
555
+
"notNull": true
556
556
+
},
557
557
+
"actor_id": {
558
558
+
"name": "actor_id",
559
559
+
"type": "text",
560
560
+
"primaryKey": false,
561
561
+
"notNull": true
562
562
+
},
563
563
+
"type": {
564
564
+
"name": "type",
565
565
+
"type": "text",
566
566
+
"primaryKey": false,
567
567
+
"notNull": true
568
568
+
},
569
569
+
"metadata": {
570
570
+
"name": "metadata",
571
571
+
"type": "jsonb",
572
572
+
"primaryKey": false,
573
573
+
"notNull": true
574
574
+
},
575
575
+
"created_at": {
576
576
+
"name": "created_at",
577
577
+
"type": "timestamp",
578
578
+
"primaryKey": false,
579
579
+
"notNull": true,
580
580
+
"default": "now()"
581
581
+
}
582
582
+
},
583
583
+
"indexes": {},
584
584
+
"foreignKeys": {},
585
585
+
"compositePrimaryKeys": {},
586
586
+
"uniqueConstraints": {},
587
587
+
"policies": {},
588
588
+
"checkConstraints": {},
589
589
+
"isRLSEnabled": false
590
590
+
},
591
591
+
"public.auth_session": {
592
592
+
"name": "auth_session",
593
593
+
"schema": "",
594
594
+
"columns": {
595
595
+
"key": {
596
596
+
"name": "key",
597
597
+
"type": "text",
598
598
+
"primaryKey": true,
599
599
+
"notNull": true
600
600
+
},
601
601
+
"session": {
602
602
+
"name": "session",
603
603
+
"type": "text",
604
604
+
"primaryKey": false,
605
605
+
"notNull": true
606
606
+
}
607
607
+
},
608
608
+
"indexes": {},
609
609
+
"foreignKeys": {},
610
610
+
"compositePrimaryKeys": {},
611
611
+
"uniqueConstraints": {},
612
612
+
"policies": {},
613
613
+
"checkConstraints": {},
614
614
+
"isRLSEnabled": false
615
615
+
},
616
616
+
"public.auth_state": {
617
617
+
"name": "auth_state",
618
618
+
"schema": "",
619
619
+
"columns": {
620
620
+
"key": {
621
621
+
"name": "key",
622
622
+
"type": "text",
623
623
+
"primaryKey": true,
624
624
+
"notNull": true
625
625
+
},
626
626
+
"state": {
627
627
+
"name": "state",
628
628
+
"type": "text",
629
629
+
"primaryKey": false,
630
630
+
"notNull": true
631
631
+
},
632
632
+
"created_at": {
633
633
+
"name": "created_at",
634
634
+
"type": "timestamp",
635
635
+
"primaryKey": false,
636
636
+
"notNull": false,
637
637
+
"default": "now()"
638
638
+
}
639
639
+
},
640
640
+
"indexes": {},
641
641
+
"foreignKeys": {},
642
642
+
"compositePrimaryKeys": {},
643
643
+
"uniqueConstraints": {},
644
644
+
"policies": {},
645
645
+
"checkConstraints": {},
646
646
+
"isRLSEnabled": false
647
647
+
},
648
648
+
"public.auth_refresh_tokens": {
649
649
+
"name": "auth_refresh_tokens",
650
650
+
"schema": "",
651
651
+
"columns": {
652
652
+
"token_id": {
653
653
+
"name": "token_id",
654
654
+
"type": "text",
655
655
+
"primaryKey": true,
656
656
+
"notNull": true
657
657
+
},
658
658
+
"user_did": {
659
659
+
"name": "user_did",
660
660
+
"type": "text",
661
661
+
"primaryKey": false,
662
662
+
"notNull": true
663
663
+
},
664
664
+
"refresh_token": {
665
665
+
"name": "refresh_token",
666
666
+
"type": "text",
667
667
+
"primaryKey": false,
668
668
+
"notNull": true
669
669
+
},
670
670
+
"issued_at": {
671
671
+
"name": "issued_at",
672
672
+
"type": "timestamp",
673
673
+
"primaryKey": false,
674
674
+
"notNull": true
675
675
+
},
676
676
+
"expires_at": {
677
677
+
"name": "expires_at",
678
678
+
"type": "timestamp",
679
679
+
"primaryKey": false,
680
680
+
"notNull": true
681
681
+
},
682
682
+
"revoked": {
683
683
+
"name": "revoked",
684
684
+
"type": "boolean",
685
685
+
"primaryKey": false,
686
686
+
"notNull": false,
687
687
+
"default": false
688
688
+
}
689
689
+
},
690
690
+
"indexes": {},
691
691
+
"foreignKeys": {
692
692
+
"auth_refresh_tokens_user_did_users_id_fk": {
693
693
+
"name": "auth_refresh_tokens_user_did_users_id_fk",
694
694
+
"tableFrom": "auth_refresh_tokens",
695
695
+
"tableTo": "users",
696
696
+
"columnsFrom": [
697
697
+
"user_did"
698
698
+
],
699
699
+
"columnsTo": [
700
700
+
"id"
701
701
+
],
702
702
+
"onDelete": "no action",
703
703
+
"onUpdate": "no action"
704
704
+
}
705
705
+
},
706
706
+
"compositePrimaryKeys": {},
707
707
+
"uniqueConstraints": {},
708
708
+
"policies": {},
709
709
+
"checkConstraints": {},
710
710
+
"isRLSEnabled": false
711
711
+
},
712
712
+
"public.users": {
713
713
+
"name": "users",
714
714
+
"schema": "",
715
715
+
"columns": {
716
716
+
"id": {
717
717
+
"name": "id",
718
718
+
"type": "text",
719
719
+
"primaryKey": true,
720
720
+
"notNull": true
721
721
+
},
722
722
+
"handle": {
723
723
+
"name": "handle",
724
724
+
"type": "text",
725
725
+
"primaryKey": false,
726
726
+
"notNull": false
727
727
+
},
728
728
+
"linked_at": {
729
729
+
"name": "linked_at",
730
730
+
"type": "timestamp",
731
731
+
"primaryKey": false,
732
732
+
"notNull": true
733
733
+
},
734
734
+
"last_login_at": {
735
735
+
"name": "last_login_at",
736
736
+
"type": "timestamp",
737
737
+
"primaryKey": false,
738
738
+
"notNull": true
739
739
+
}
740
740
+
},
741
741
+
"indexes": {},
742
742
+
"foreignKeys": {},
743
743
+
"compositePrimaryKeys": {},
744
744
+
"uniqueConstraints": {},
745
745
+
"policies": {},
746
746
+
"checkConstraints": {},
747
747
+
"isRLSEnabled": false
748
748
+
}
749
749
+
},
750
750
+
"enums": {},
751
751
+
"schemas": {},
752
752
+
"sequences": {},
753
753
+
"roles": {},
754
754
+
"policies": {},
755
755
+
"views": {},
756
756
+
"_meta": {
757
757
+
"columns": {},
758
758
+
"schemas": {},
759
759
+
"tables": {}
760
760
+
}
761
761
+
}
+8
-1
src/shared/infrastructure/database/migrations/meta/_journal.json
···
22
22
"when": 1754082459527,
23
23
"tag": "0002_hesitant_caretaker",
24
24
"breakpoints": true
25
25
+
},
26
26
+
{
27
27
+
"idx": 3,
28
28
+
"version": "7",
29
29
+
"when": 1758934838107,
30
30
+
"tag": "0003_harsh_lady_mastermind",
31
31
+
"breakpoints": true
25
32
}
26
33
]
27
27
-
}
34
34
+
}