@open-commune/core 0.1.2

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,718 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "eaedf106-40f5-4eaf-a545-e40a14f9b5cc",
5
+ "prevId": "00000000-0000-0000-0000-000000000000",
6
+ "tables": {
7
+ "api_tokens": {
8
+ "name": "api_tokens",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "name": {
18
+ "name": "name",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "token_hash": {
25
+ "name": "token_hash",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "last_used_at": {
32
+ "name": "last_used_at",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": false,
36
+ "autoincrement": false
37
+ },
38
+ "revoked_at": {
39
+ "name": "revoked_at",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": false,
43
+ "autoincrement": false
44
+ },
45
+ "created_at": {
46
+ "name": "created_at",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": true,
50
+ "autoincrement": false
51
+ }
52
+ },
53
+ "indexes": {
54
+ "api_tokens_token_hash_unique": {
55
+ "name": "api_tokens_token_hash_unique",
56
+ "columns": [
57
+ "token_hash"
58
+ ],
59
+ "isUnique": true
60
+ }
61
+ },
62
+ "foreignKeys": {},
63
+ "compositePrimaryKeys": {},
64
+ "uniqueConstraints": {},
65
+ "checkConstraints": {}
66
+ },
67
+ "collection_definitions": {
68
+ "name": "collection_definitions",
69
+ "columns": {
70
+ "id": {
71
+ "name": "id",
72
+ "type": "text",
73
+ "primaryKey": true,
74
+ "notNull": true,
75
+ "autoincrement": false
76
+ },
77
+ "name": {
78
+ "name": "name",
79
+ "type": "text",
80
+ "primaryKey": false,
81
+ "notNull": true,
82
+ "autoincrement": false
83
+ },
84
+ "slug": {
85
+ "name": "slug",
86
+ "type": "text",
87
+ "primaryKey": false,
88
+ "notNull": true,
89
+ "autoincrement": false
90
+ },
91
+ "description": {
92
+ "name": "description",
93
+ "type": "text",
94
+ "primaryKey": false,
95
+ "notNull": false,
96
+ "autoincrement": false
97
+ },
98
+ "fields": {
99
+ "name": "fields",
100
+ "type": "text",
101
+ "primaryKey": false,
102
+ "notNull": true,
103
+ "autoincrement": false
104
+ },
105
+ "editor": {
106
+ "name": "editor",
107
+ "type": "text",
108
+ "primaryKey": false,
109
+ "notNull": false,
110
+ "autoincrement": false
111
+ },
112
+ "display": {
113
+ "name": "display",
114
+ "type": "text",
115
+ "primaryKey": false,
116
+ "notNull": false,
117
+ "autoincrement": false
118
+ },
119
+ "headings": {
120
+ "name": "headings",
121
+ "type": "text",
122
+ "primaryKey": false,
123
+ "notNull": false,
124
+ "autoincrement": false
125
+ },
126
+ "created_by": {
127
+ "name": "created_by",
128
+ "type": "text",
129
+ "primaryKey": false,
130
+ "notNull": false,
131
+ "autoincrement": false
132
+ },
133
+ "updated_by": {
134
+ "name": "updated_by",
135
+ "type": "text",
136
+ "primaryKey": false,
137
+ "notNull": false,
138
+ "autoincrement": false
139
+ },
140
+ "legacy_extra": {
141
+ "name": "legacy_extra",
142
+ "type": "text",
143
+ "primaryKey": false,
144
+ "notNull": false,
145
+ "autoincrement": false
146
+ },
147
+ "created_at": {
148
+ "name": "created_at",
149
+ "type": "text",
150
+ "primaryKey": false,
151
+ "notNull": true,
152
+ "autoincrement": false
153
+ },
154
+ "updated_at": {
155
+ "name": "updated_at",
156
+ "type": "text",
157
+ "primaryKey": false,
158
+ "notNull": true,
159
+ "autoincrement": false
160
+ }
161
+ },
162
+ "indexes": {
163
+ "collection_definitions_slug_unique": {
164
+ "name": "collection_definitions_slug_unique",
165
+ "columns": [
166
+ "slug"
167
+ ],
168
+ "isUnique": true
169
+ }
170
+ },
171
+ "foreignKeys": {},
172
+ "compositePrimaryKeys": {},
173
+ "uniqueConstraints": {},
174
+ "checkConstraints": {}
175
+ },
176
+ "entries": {
177
+ "name": "entries",
178
+ "columns": {
179
+ "id": {
180
+ "name": "id",
181
+ "type": "text",
182
+ "primaryKey": true,
183
+ "notNull": true,
184
+ "autoincrement": false
185
+ },
186
+ "collection_id": {
187
+ "name": "collection_id",
188
+ "type": "text",
189
+ "primaryKey": false,
190
+ "notNull": true,
191
+ "autoincrement": false
192
+ },
193
+ "title": {
194
+ "name": "title",
195
+ "type": "text",
196
+ "primaryKey": false,
197
+ "notNull": true,
198
+ "autoincrement": false
199
+ },
200
+ "slug": {
201
+ "name": "slug",
202
+ "type": "text",
203
+ "primaryKey": false,
204
+ "notNull": true,
205
+ "autoincrement": false
206
+ },
207
+ "data": {
208
+ "name": "data",
209
+ "type": "text",
210
+ "primaryKey": false,
211
+ "notNull": true,
212
+ "autoincrement": false
213
+ },
214
+ "related": {
215
+ "name": "related",
216
+ "type": "text",
217
+ "primaryKey": false,
218
+ "notNull": false,
219
+ "autoincrement": false
220
+ },
221
+ "created_by": {
222
+ "name": "created_by",
223
+ "type": "text",
224
+ "primaryKey": false,
225
+ "notNull": false,
226
+ "autoincrement": false
227
+ },
228
+ "updated_by": {
229
+ "name": "updated_by",
230
+ "type": "text",
231
+ "primaryKey": false,
232
+ "notNull": false,
233
+ "autoincrement": false
234
+ },
235
+ "status": {
236
+ "name": "status",
237
+ "type": "text",
238
+ "primaryKey": false,
239
+ "notNull": true,
240
+ "autoincrement": false,
241
+ "default": "'draft'"
242
+ },
243
+ "published_at": {
244
+ "name": "published_at",
245
+ "type": "text",
246
+ "primaryKey": false,
247
+ "notNull": false,
248
+ "autoincrement": false
249
+ },
250
+ "legacy_extra": {
251
+ "name": "legacy_extra",
252
+ "type": "text",
253
+ "primaryKey": false,
254
+ "notNull": false,
255
+ "autoincrement": false
256
+ },
257
+ "created_at": {
258
+ "name": "created_at",
259
+ "type": "text",
260
+ "primaryKey": false,
261
+ "notNull": true,
262
+ "autoincrement": false
263
+ },
264
+ "updated_at": {
265
+ "name": "updated_at",
266
+ "type": "text",
267
+ "primaryKey": false,
268
+ "notNull": true,
269
+ "autoincrement": false
270
+ }
271
+ },
272
+ "indexes": {
273
+ "entries_slug_unique": {
274
+ "name": "entries_slug_unique",
275
+ "columns": [
276
+ "collection_id",
277
+ "slug"
278
+ ],
279
+ "isUnique": true
280
+ }
281
+ },
282
+ "foreignKeys": {
283
+ "entries_collection_id_collection_definitions_id_fk": {
284
+ "name": "entries_collection_id_collection_definitions_id_fk",
285
+ "tableFrom": "entries",
286
+ "tableTo": "collection_definitions",
287
+ "columnsFrom": [
288
+ "collection_id"
289
+ ],
290
+ "columnsTo": [
291
+ "id"
292
+ ],
293
+ "onDelete": "cascade",
294
+ "onUpdate": "no action"
295
+ }
296
+ },
297
+ "compositePrimaryKeys": {},
298
+ "uniqueConstraints": {},
299
+ "checkConstraints": {}
300
+ },
301
+ "invitations": {
302
+ "name": "invitations",
303
+ "columns": {
304
+ "id": {
305
+ "name": "id",
306
+ "type": "text",
307
+ "primaryKey": true,
308
+ "notNull": true,
309
+ "autoincrement": false
310
+ },
311
+ "email": {
312
+ "name": "email",
313
+ "type": "text",
314
+ "primaryKey": false,
315
+ "notNull": true,
316
+ "autoincrement": false
317
+ },
318
+ "token_hash": {
319
+ "name": "token_hash",
320
+ "type": "text",
321
+ "primaryKey": false,
322
+ "notNull": true,
323
+ "autoincrement": false
324
+ },
325
+ "role": {
326
+ "name": "role",
327
+ "type": "text",
328
+ "primaryKey": false,
329
+ "notNull": true,
330
+ "autoincrement": false,
331
+ "default": "'redacteur'"
332
+ },
333
+ "expires_at": {
334
+ "name": "expires_at",
335
+ "type": "text",
336
+ "primaryKey": false,
337
+ "notNull": true,
338
+ "autoincrement": false
339
+ },
340
+ "used_at": {
341
+ "name": "used_at",
342
+ "type": "text",
343
+ "primaryKey": false,
344
+ "notNull": false,
345
+ "autoincrement": false
346
+ },
347
+ "created_at": {
348
+ "name": "created_at",
349
+ "type": "text",
350
+ "primaryKey": false,
351
+ "notNull": true,
352
+ "autoincrement": false
353
+ }
354
+ },
355
+ "indexes": {
356
+ "invitations_token_hash_unique": {
357
+ "name": "invitations_token_hash_unique",
358
+ "columns": [
359
+ "token_hash"
360
+ ],
361
+ "isUnique": true
362
+ }
363
+ },
364
+ "foreignKeys": {},
365
+ "compositePrimaryKeys": {},
366
+ "uniqueConstraints": {},
367
+ "checkConstraints": {}
368
+ },
369
+ "media": {
370
+ "name": "media",
371
+ "columns": {
372
+ "id": {
373
+ "name": "id",
374
+ "type": "text",
375
+ "primaryKey": true,
376
+ "notNull": true,
377
+ "autoincrement": false
378
+ },
379
+ "filename": {
380
+ "name": "filename",
381
+ "type": "text",
382
+ "primaryKey": false,
383
+ "notNull": true,
384
+ "autoincrement": false
385
+ },
386
+ "mime": {
387
+ "name": "mime",
388
+ "type": "text",
389
+ "primaryKey": false,
390
+ "notNull": true,
391
+ "autoincrement": false
392
+ },
393
+ "size": {
394
+ "name": "size",
395
+ "type": "integer",
396
+ "primaryKey": false,
397
+ "notNull": true,
398
+ "autoincrement": false
399
+ },
400
+ "alt": {
401
+ "name": "alt",
402
+ "type": "text",
403
+ "primaryKey": false,
404
+ "notNull": false,
405
+ "autoincrement": false
406
+ },
407
+ "caption": {
408
+ "name": "caption",
409
+ "type": "text",
410
+ "primaryKey": false,
411
+ "notNull": false,
412
+ "autoincrement": false
413
+ },
414
+ "objects": {
415
+ "name": "objects",
416
+ "type": "text",
417
+ "primaryKey": false,
418
+ "notNull": true,
419
+ "autoincrement": false
420
+ },
421
+ "meta_data": {
422
+ "name": "meta_data",
423
+ "type": "text",
424
+ "primaryKey": false,
425
+ "notNull": false,
426
+ "autoincrement": false
427
+ },
428
+ "created_by": {
429
+ "name": "created_by",
430
+ "type": "text",
431
+ "primaryKey": false,
432
+ "notNull": false,
433
+ "autoincrement": false
434
+ },
435
+ "updated_by": {
436
+ "name": "updated_by",
437
+ "type": "text",
438
+ "primaryKey": false,
439
+ "notNull": false,
440
+ "autoincrement": false
441
+ },
442
+ "legacy_extra": {
443
+ "name": "legacy_extra",
444
+ "type": "text",
445
+ "primaryKey": false,
446
+ "notNull": false,
447
+ "autoincrement": false
448
+ },
449
+ "created_at": {
450
+ "name": "created_at",
451
+ "type": "text",
452
+ "primaryKey": false,
453
+ "notNull": true,
454
+ "autoincrement": false
455
+ },
456
+ "updated_at": {
457
+ "name": "updated_at",
458
+ "type": "text",
459
+ "primaryKey": false,
460
+ "notNull": true,
461
+ "autoincrement": false
462
+ }
463
+ },
464
+ "indexes": {},
465
+ "foreignKeys": {},
466
+ "compositePrimaryKeys": {},
467
+ "uniqueConstraints": {},
468
+ "checkConstraints": {}
469
+ },
470
+ "organization": {
471
+ "name": "organization",
472
+ "columns": {
473
+ "id": {
474
+ "name": "id",
475
+ "type": "integer",
476
+ "primaryKey": true,
477
+ "notNull": true,
478
+ "autoincrement": false,
479
+ "default": 1
480
+ },
481
+ "name": {
482
+ "name": "name",
483
+ "type": "text",
484
+ "primaryKey": false,
485
+ "notNull": true,
486
+ "autoincrement": false
487
+ },
488
+ "type": {
489
+ "name": "type",
490
+ "type": "text",
491
+ "primaryKey": false,
492
+ "notNull": true,
493
+ "autoincrement": false,
494
+ "default": "'commune'"
495
+ },
496
+ "slug": {
497
+ "name": "slug",
498
+ "type": "text",
499
+ "primaryKey": false,
500
+ "notNull": true,
501
+ "autoincrement": false
502
+ },
503
+ "description": {
504
+ "name": "description",
505
+ "type": "text",
506
+ "primaryKey": false,
507
+ "notNull": false,
508
+ "autoincrement": false
509
+ },
510
+ "address": {
511
+ "name": "address",
512
+ "type": "text",
513
+ "primaryKey": false,
514
+ "notNull": false,
515
+ "autoincrement": false
516
+ },
517
+ "deployment": {
518
+ "name": "deployment",
519
+ "type": "text",
520
+ "primaryKey": false,
521
+ "notNull": false,
522
+ "autoincrement": false
523
+ },
524
+ "settings": {
525
+ "name": "settings",
526
+ "type": "text",
527
+ "primaryKey": false,
528
+ "notNull": false,
529
+ "autoincrement": false
530
+ },
531
+ "updated_by": {
532
+ "name": "updated_by",
533
+ "type": "text",
534
+ "primaryKey": false,
535
+ "notNull": false,
536
+ "autoincrement": false
537
+ },
538
+ "legacy_extra": {
539
+ "name": "legacy_extra",
540
+ "type": "text",
541
+ "primaryKey": false,
542
+ "notNull": false,
543
+ "autoincrement": false
544
+ },
545
+ "created_at": {
546
+ "name": "created_at",
547
+ "type": "text",
548
+ "primaryKey": false,
549
+ "notNull": true,
550
+ "autoincrement": false
551
+ },
552
+ "updated_at": {
553
+ "name": "updated_at",
554
+ "type": "text",
555
+ "primaryKey": false,
556
+ "notNull": true,
557
+ "autoincrement": false
558
+ }
559
+ },
560
+ "indexes": {},
561
+ "foreignKeys": {},
562
+ "compositePrimaryKeys": {},
563
+ "uniqueConstraints": {},
564
+ "checkConstraints": {}
565
+ },
566
+ "sessions": {
567
+ "name": "sessions",
568
+ "columns": {
569
+ "id": {
570
+ "name": "id",
571
+ "type": "text",
572
+ "primaryKey": true,
573
+ "notNull": true,
574
+ "autoincrement": false
575
+ },
576
+ "user_id": {
577
+ "name": "user_id",
578
+ "type": "text",
579
+ "primaryKey": false,
580
+ "notNull": true,
581
+ "autoincrement": false
582
+ },
583
+ "expires_at": {
584
+ "name": "expires_at",
585
+ "type": "text",
586
+ "primaryKey": false,
587
+ "notNull": true,
588
+ "autoincrement": false
589
+ },
590
+ "revoked_at": {
591
+ "name": "revoked_at",
592
+ "type": "text",
593
+ "primaryKey": false,
594
+ "notNull": false,
595
+ "autoincrement": false
596
+ },
597
+ "ua": {
598
+ "name": "ua",
599
+ "type": "text",
600
+ "primaryKey": false,
601
+ "notNull": false,
602
+ "autoincrement": false
603
+ },
604
+ "ip": {
605
+ "name": "ip",
606
+ "type": "text",
607
+ "primaryKey": false,
608
+ "notNull": false,
609
+ "autoincrement": false
610
+ },
611
+ "created_at": {
612
+ "name": "created_at",
613
+ "type": "text",
614
+ "primaryKey": false,
615
+ "notNull": true,
616
+ "autoincrement": false
617
+ }
618
+ },
619
+ "indexes": {},
620
+ "foreignKeys": {
621
+ "sessions_user_id_users_id_fk": {
622
+ "name": "sessions_user_id_users_id_fk",
623
+ "tableFrom": "sessions",
624
+ "tableTo": "users",
625
+ "columnsFrom": [
626
+ "user_id"
627
+ ],
628
+ "columnsTo": [
629
+ "id"
630
+ ],
631
+ "onDelete": "cascade",
632
+ "onUpdate": "no action"
633
+ }
634
+ },
635
+ "compositePrimaryKeys": {},
636
+ "uniqueConstraints": {},
637
+ "checkConstraints": {}
638
+ },
639
+ "users": {
640
+ "name": "users",
641
+ "columns": {
642
+ "id": {
643
+ "name": "id",
644
+ "type": "text",
645
+ "primaryKey": true,
646
+ "notNull": true,
647
+ "autoincrement": false
648
+ },
649
+ "email": {
650
+ "name": "email",
651
+ "type": "text",
652
+ "primaryKey": false,
653
+ "notNull": true,
654
+ "autoincrement": false
655
+ },
656
+ "name": {
657
+ "name": "name",
658
+ "type": "text",
659
+ "primaryKey": false,
660
+ "notNull": true,
661
+ "autoincrement": false
662
+ },
663
+ "password_hash": {
664
+ "name": "password_hash",
665
+ "type": "text",
666
+ "primaryKey": false,
667
+ "notNull": false,
668
+ "autoincrement": false
669
+ },
670
+ "role": {
671
+ "name": "role",
672
+ "type": "text",
673
+ "primaryKey": false,
674
+ "notNull": true,
675
+ "autoincrement": false,
676
+ "default": "'redacteur'"
677
+ },
678
+ "created_at": {
679
+ "name": "created_at",
680
+ "type": "text",
681
+ "primaryKey": false,
682
+ "notNull": true,
683
+ "autoincrement": false
684
+ },
685
+ "updated_at": {
686
+ "name": "updated_at",
687
+ "type": "text",
688
+ "primaryKey": false,
689
+ "notNull": true,
690
+ "autoincrement": false
691
+ }
692
+ },
693
+ "indexes": {
694
+ "users_email_unique": {
695
+ "name": "users_email_unique",
696
+ "columns": [
697
+ "email"
698
+ ],
699
+ "isUnique": true
700
+ }
701
+ },
702
+ "foreignKeys": {},
703
+ "compositePrimaryKeys": {},
704
+ "uniqueConstraints": {},
705
+ "checkConstraints": {}
706
+ }
707
+ },
708
+ "views": {},
709
+ "enums": {},
710
+ "_meta": {
711
+ "schemas": {},
712
+ "tables": {},
713
+ "columns": {}
714
+ },
715
+ "internal": {
716
+ "indexes": {}
717
+ }
718
+ }