create-fullstack-scaffold 0.4.24 → 0.4.25

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.
@@ -1,1837 +0,0 @@
1
- {
2
- "version": "6",
3
- "dialect": "sqlite",
4
- "id": "a5e96bd6-a94c-4e10-a00a-ee2570f26a99",
5
- "prevId": "37f66a85-6ecd-4f69-bedb-848c6ab0750f",
6
- "tables": {
7
- "todos": {
8
- "name": "todos",
9
- "columns": {
10
- "id": {
11
- "name": "id",
12
- "type": "integer",
13
- "primaryKey": true,
14
- "notNull": true,
15
- "autoincrement": true
16
- },
17
- "title": {
18
- "name": "title",
19
- "type": "text",
20
- "primaryKey": false,
21
- "notNull": true,
22
- "autoincrement": false
23
- },
24
- "description": {
25
- "name": "description",
26
- "type": "text",
27
- "primaryKey": false,
28
- "notNull": false,
29
- "autoincrement": false
30
- },
31
- "status": {
32
- "name": "status",
33
- "type": "text",
34
- "primaryKey": false,
35
- "notNull": true,
36
- "autoincrement": false,
37
- "default": "'pending'"
38
- },
39
- "created_at": {
40
- "name": "created_at",
41
- "type": "integer",
42
- "primaryKey": false,
43
- "notNull": true,
44
- "autoincrement": false,
45
- "default": "(unixepoch() * 1000)"
46
- },
47
- "updated_at": {
48
- "name": "updated_at",
49
- "type": "integer",
50
- "primaryKey": false,
51
- "notNull": true,
52
- "autoincrement": false,
53
- "default": "(unixepoch() * 1000)"
54
- }
55
- },
56
- "indexes": {},
57
- "foreignKeys": {},
58
- "compositePrimaryKeys": {},
59
- "uniqueConstraints": {},
60
- "checkConstraints": {}
61
- },
62
- "todo_attachments": {
63
- "name": "todo_attachments",
64
- "columns": {
65
- "id": {
66
- "name": "id",
67
- "type": "integer",
68
- "primaryKey": true,
69
- "notNull": true,
70
- "autoincrement": true
71
- },
72
- "todo_id": {
73
- "name": "todo_id",
74
- "type": "integer",
75
- "primaryKey": false,
76
- "notNull": true,
77
- "autoincrement": false
78
- },
79
- "file_name": {
80
- "name": "file_name",
81
- "type": "text",
82
- "primaryKey": false,
83
- "notNull": true,
84
- "autoincrement": false
85
- },
86
- "original_name": {
87
- "name": "original_name",
88
- "type": "text",
89
- "primaryKey": false,
90
- "notNull": true,
91
- "autoincrement": false
92
- },
93
- "mime_type": {
94
- "name": "mime_type",
95
- "type": "text",
96
- "primaryKey": false,
97
- "notNull": true,
98
- "autoincrement": false
99
- },
100
- "size": {
101
- "name": "size",
102
- "type": "integer",
103
- "primaryKey": false,
104
- "notNull": true,
105
- "autoincrement": false
106
- },
107
- "path": {
108
- "name": "path",
109
- "type": "text",
110
- "primaryKey": false,
111
- "notNull": true,
112
- "autoincrement": false
113
- },
114
- "uploaded_by": {
115
- "name": "uploaded_by",
116
- "type": "text",
117
- "primaryKey": false,
118
- "notNull": false,
119
- "autoincrement": false
120
- },
121
- "created_at": {
122
- "name": "created_at",
123
- "type": "integer",
124
- "primaryKey": false,
125
- "notNull": true,
126
- "autoincrement": false,
127
- "default": "(unixepoch() * 1000)"
128
- }
129
- },
130
- "indexes": {},
131
- "foreignKeys": {
132
- "todo_attachments_todo_id_todos_id_fk": {
133
- "name": "todo_attachments_todo_id_todos_id_fk",
134
- "tableFrom": "todo_attachments",
135
- "tableTo": "todos",
136
- "columnsFrom": ["todo_id"],
137
- "columnsTo": ["id"],
138
- "onDelete": "cascade",
139
- "onUpdate": "no action"
140
- }
141
- },
142
- "compositePrimaryKeys": {},
143
- "uniqueConstraints": {},
144
- "checkConstraints": {}
145
- },
146
- "notifications": {
147
- "name": "notifications",
148
- "columns": {
149
- "id": {
150
- "name": "id",
151
- "type": "text",
152
- "primaryKey": true,
153
- "notNull": true,
154
- "autoincrement": false
155
- },
156
- "type": {
157
- "name": "type",
158
- "type": "text",
159
- "primaryKey": false,
160
- "notNull": true,
161
- "autoincrement": false
162
- },
163
- "title": {
164
- "name": "title",
165
- "type": "text",
166
- "primaryKey": false,
167
- "notNull": true,
168
- "autoincrement": false
169
- },
170
- "message": {
171
- "name": "message",
172
- "type": "text",
173
- "primaryKey": false,
174
- "notNull": true,
175
- "autoincrement": false
176
- },
177
- "read": {
178
- "name": "read",
179
- "type": "integer",
180
- "primaryKey": false,
181
- "notNull": true,
182
- "autoincrement": false,
183
- "default": false
184
- },
185
- "created_at": {
186
- "name": "created_at",
187
- "type": "integer",
188
- "primaryKey": false,
189
- "notNull": true,
190
- "autoincrement": false,
191
- "default": "(unixepoch() * 1000)"
192
- }
193
- },
194
- "indexes": {},
195
- "foreignKeys": {},
196
- "compositePrimaryKeys": {},
197
- "uniqueConstraints": {},
198
- "checkConstraints": {}
199
- },
200
- "permissions": {
201
- "name": "permissions",
202
- "columns": {
203
- "id": {
204
- "name": "id",
205
- "type": "text",
206
- "primaryKey": true,
207
- "notNull": true,
208
- "autoincrement": false
209
- },
210
- "code": {
211
- "name": "code",
212
- "type": "text",
213
- "primaryKey": false,
214
- "notNull": true,
215
- "autoincrement": false
216
- },
217
- "name": {
218
- "name": "name",
219
- "type": "text",
220
- "primaryKey": false,
221
- "notNull": true,
222
- "autoincrement": false
223
- },
224
- "label": {
225
- "name": "label",
226
- "type": "text",
227
- "primaryKey": false,
228
- "notNull": true,
229
- "autoincrement": false
230
- },
231
- "category": {
232
- "name": "category",
233
- "type": "text",
234
- "primaryKey": false,
235
- "notNull": true,
236
- "autoincrement": false
237
- },
238
- "description": {
239
- "name": "description",
240
- "type": "text",
241
- "primaryKey": false,
242
- "notNull": false,
243
- "autoincrement": false
244
- },
245
- "sort_order": {
246
- "name": "sort_order",
247
- "type": "integer",
248
- "primaryKey": false,
249
- "notNull": false,
250
- "autoincrement": false,
251
- "default": 0
252
- },
253
- "is_active": {
254
- "name": "is_active",
255
- "type": "integer",
256
- "primaryKey": false,
257
- "notNull": false,
258
- "autoincrement": false,
259
- "default": true
260
- },
261
- "created_at": {
262
- "name": "created_at",
263
- "type": "integer",
264
- "primaryKey": false,
265
- "notNull": false,
266
- "autoincrement": false
267
- },
268
- "updated_at": {
269
- "name": "updated_at",
270
- "type": "integer",
271
- "primaryKey": false,
272
- "notNull": false,
273
- "autoincrement": false
274
- }
275
- },
276
- "indexes": {
277
- "permissions_code_unique": {
278
- "name": "permissions_code_unique",
279
- "columns": ["code"],
280
- "isUnique": true
281
- }
282
- },
283
- "foreignKeys": {},
284
- "compositePrimaryKeys": {},
285
- "uniqueConstraints": {},
286
- "checkConstraints": {}
287
- },
288
- "roles": {
289
- "name": "roles",
290
- "columns": {
291
- "id": {
292
- "name": "id",
293
- "type": "text",
294
- "primaryKey": true,
295
- "notNull": true,
296
- "autoincrement": false
297
- },
298
- "code": {
299
- "name": "code",
300
- "type": "text",
301
- "primaryKey": false,
302
- "notNull": true,
303
- "autoincrement": false
304
- },
305
- "name": {
306
- "name": "name",
307
- "type": "text",
308
- "primaryKey": false,
309
- "notNull": true,
310
- "autoincrement": false
311
- },
312
- "label": {
313
- "name": "label",
314
- "type": "text",
315
- "primaryKey": false,
316
- "notNull": true,
317
- "autoincrement": false
318
- },
319
- "description": {
320
- "name": "description",
321
- "type": "text",
322
- "primaryKey": false,
323
- "notNull": false,
324
- "autoincrement": false
325
- },
326
- "is_system": {
327
- "name": "is_system",
328
- "type": "integer",
329
- "primaryKey": false,
330
- "notNull": false,
331
- "autoincrement": false,
332
- "default": false
333
- },
334
- "is_active": {
335
- "name": "is_active",
336
- "type": "integer",
337
- "primaryKey": false,
338
- "notNull": false,
339
- "autoincrement": false,
340
- "default": true
341
- },
342
- "sort_order": {
343
- "name": "sort_order",
344
- "type": "integer",
345
- "primaryKey": false,
346
- "notNull": false,
347
- "autoincrement": false,
348
- "default": 0
349
- },
350
- "created_at": {
351
- "name": "created_at",
352
- "type": "integer",
353
- "primaryKey": false,
354
- "notNull": false,
355
- "autoincrement": false
356
- },
357
- "updated_at": {
358
- "name": "updated_at",
359
- "type": "integer",
360
- "primaryKey": false,
361
- "notNull": false,
362
- "autoincrement": false
363
- }
364
- },
365
- "indexes": {
366
- "roles_code_unique": {
367
- "name": "roles_code_unique",
368
- "columns": ["code"],
369
- "isUnique": true
370
- }
371
- },
372
- "foreignKeys": {},
373
- "compositePrimaryKeys": {},
374
- "uniqueConstraints": {},
375
- "checkConstraints": {}
376
- },
377
- "role_permissions": {
378
- "name": "role_permissions",
379
- "columns": {
380
- "role_id": {
381
- "name": "role_id",
382
- "type": "text",
383
- "primaryKey": false,
384
- "notNull": true,
385
- "autoincrement": false
386
- },
387
- "permission_id": {
388
- "name": "permission_id",
389
- "type": "text",
390
- "primaryKey": false,
391
- "notNull": true,
392
- "autoincrement": false
393
- },
394
- "created_at": {
395
- "name": "created_at",
396
- "type": "integer",
397
- "primaryKey": false,
398
- "notNull": false,
399
- "autoincrement": false
400
- }
401
- },
402
- "indexes": {},
403
- "foreignKeys": {
404
- "role_permissions_role_id_roles_id_fk": {
405
- "name": "role_permissions_role_id_roles_id_fk",
406
- "tableFrom": "role_permissions",
407
- "tableTo": "roles",
408
- "columnsFrom": ["role_id"],
409
- "columnsTo": ["id"],
410
- "onDelete": "cascade",
411
- "onUpdate": "no action"
412
- },
413
- "role_permissions_permission_id_permissions_id_fk": {
414
- "name": "role_permissions_permission_id_permissions_id_fk",
415
- "tableFrom": "role_permissions",
416
- "tableTo": "permissions",
417
- "columnsFrom": ["permission_id"],
418
- "columnsTo": ["id"],
419
- "onDelete": "cascade",
420
- "onUpdate": "no action"
421
- }
422
- },
423
- "compositePrimaryKeys": {
424
- "role_permissions_role_id_permission_id_pk": {
425
- "columns": ["role_id", "permission_id"],
426
- "name": "role_permissions_role_id_permission_id_pk"
427
- }
428
- },
429
- "uniqueConstraints": {},
430
- "checkConstraints": {}
431
- },
432
- "user_roles": {
433
- "name": "user_roles",
434
- "columns": {
435
- "id": {
436
- "name": "id",
437
- "type": "text",
438
- "primaryKey": true,
439
- "notNull": true,
440
- "autoincrement": false
441
- },
442
- "user_id": {
443
- "name": "user_id",
444
- "type": "text",
445
- "primaryKey": false,
446
- "notNull": true,
447
- "autoincrement": false
448
- },
449
- "role_id": {
450
- "name": "role_id",
451
- "type": "text",
452
- "primaryKey": false,
453
- "notNull": true,
454
- "autoincrement": false
455
- },
456
- "assigned_by": {
457
- "name": "assigned_by",
458
- "type": "text",
459
- "primaryKey": false,
460
- "notNull": false,
461
- "autoincrement": false
462
- },
463
- "assigned_at": {
464
- "name": "assigned_at",
465
- "type": "integer",
466
- "primaryKey": false,
467
- "notNull": false,
468
- "autoincrement": false
469
- },
470
- "expires_at": {
471
- "name": "expires_at",
472
- "type": "integer",
473
- "primaryKey": false,
474
- "notNull": false,
475
- "autoincrement": false
476
- },
477
- "is_active": {
478
- "name": "is_active",
479
- "type": "integer",
480
- "primaryKey": false,
481
- "notNull": false,
482
- "autoincrement": false,
483
- "default": true
484
- }
485
- },
486
- "indexes": {},
487
- "foreignKeys": {
488
- "user_roles_role_id_roles_id_fk": {
489
- "name": "user_roles_role_id_roles_id_fk",
490
- "tableFrom": "user_roles",
491
- "tableTo": "roles",
492
- "columnsFrom": ["role_id"],
493
- "columnsTo": ["id"],
494
- "onDelete": "cascade",
495
- "onUpdate": "no action"
496
- }
497
- },
498
- "compositePrimaryKeys": {},
499
- "uniqueConstraints": {},
500
- "checkConstraints": {}
501
- },
502
- "routes": {
503
- "name": "routes",
504
- "columns": {
505
- "id": {
506
- "name": "id",
507
- "type": "text",
508
- "primaryKey": true,
509
- "notNull": true,
510
- "autoincrement": false
511
- },
512
- "path": {
513
- "name": "path",
514
- "type": "text",
515
- "primaryKey": false,
516
- "notNull": true,
517
- "autoincrement": false
518
- },
519
- "method": {
520
- "name": "method",
521
- "type": "text",
522
- "primaryKey": false,
523
- "notNull": true,
524
- "autoincrement": false
525
- },
526
- "name": {
527
- "name": "name",
528
- "type": "text",
529
- "primaryKey": false,
530
- "notNull": false,
531
- "autoincrement": false
532
- },
533
- "description": {
534
- "name": "description",
535
- "type": "text",
536
- "primaryKey": false,
537
- "notNull": false,
538
- "autoincrement": false
539
- },
540
- "module": {
541
- "name": "module",
542
- "type": "text",
543
- "primaryKey": false,
544
- "notNull": false,
545
- "autoincrement": false
546
- },
547
- "is_public": {
548
- "name": "is_public",
549
- "type": "integer",
550
- "primaryKey": false,
551
- "notNull": false,
552
- "autoincrement": false,
553
- "default": false
554
- },
555
- "is_active": {
556
- "name": "is_active",
557
- "type": "integer",
558
- "primaryKey": false,
559
- "notNull": false,
560
- "autoincrement": false,
561
- "default": true
562
- },
563
- "created_at": {
564
- "name": "created_at",
565
- "type": "integer",
566
- "primaryKey": false,
567
- "notNull": false,
568
- "autoincrement": false
569
- },
570
- "updated_at": {
571
- "name": "updated_at",
572
- "type": "integer",
573
- "primaryKey": false,
574
- "notNull": false,
575
- "autoincrement": false
576
- }
577
- },
578
- "indexes": {
579
- "routes_path_method_unique": {
580
- "name": "routes_path_method_unique",
581
- "columns": ["path", "method"],
582
- "isUnique": true
583
- }
584
- },
585
- "foreignKeys": {},
586
- "compositePrimaryKeys": {},
587
- "uniqueConstraints": {},
588
- "checkConstraints": {}
589
- },
590
- "permission_routes": {
591
- "name": "permission_routes",
592
- "columns": {
593
- "permission_id": {
594
- "name": "permission_id",
595
- "type": "text",
596
- "primaryKey": false,
597
- "notNull": true,
598
- "autoincrement": false
599
- },
600
- "route_id": {
601
- "name": "route_id",
602
- "type": "text",
603
- "primaryKey": false,
604
- "notNull": true,
605
- "autoincrement": false
606
- },
607
- "created_at": {
608
- "name": "created_at",
609
- "type": "integer",
610
- "primaryKey": false,
611
- "notNull": false,
612
- "autoincrement": false
613
- }
614
- },
615
- "indexes": {},
616
- "foreignKeys": {
617
- "permission_routes_permission_id_permissions_id_fk": {
618
- "name": "permission_routes_permission_id_permissions_id_fk",
619
- "tableFrom": "permission_routes",
620
- "tableTo": "permissions",
621
- "columnsFrom": ["permission_id"],
622
- "columnsTo": ["id"],
623
- "onDelete": "cascade",
624
- "onUpdate": "no action"
625
- },
626
- "permission_routes_route_id_routes_id_fk": {
627
- "name": "permission_routes_route_id_routes_id_fk",
628
- "tableFrom": "permission_routes",
629
- "tableTo": "routes",
630
- "columnsFrom": ["route_id"],
631
- "columnsTo": ["id"],
632
- "onDelete": "cascade",
633
- "onUpdate": "no action"
634
- }
635
- },
636
- "compositePrimaryKeys": {
637
- "permission_routes_permission_id_route_id_pk": {
638
- "columns": ["permission_id", "route_id"],
639
- "name": "permission_routes_permission_id_route_id_pk"
640
- }
641
- },
642
- "uniqueConstraints": {},
643
- "checkConstraints": {}
644
- },
645
- "permission_audit_logs": {
646
- "name": "permission_audit_logs",
647
- "columns": {
648
- "id": {
649
- "name": "id",
650
- "type": "text",
651
- "primaryKey": true,
652
- "notNull": true,
653
- "autoincrement": false
654
- },
655
- "user_id": {
656
- "name": "user_id",
657
- "type": "text",
658
- "primaryKey": false,
659
- "notNull": true,
660
- "autoincrement": false
661
- },
662
- "action": {
663
- "name": "action",
664
- "type": "text",
665
- "primaryKey": false,
666
- "notNull": true,
667
- "autoincrement": false
668
- },
669
- "resource_type": {
670
- "name": "resource_type",
671
- "type": "text",
672
- "primaryKey": false,
673
- "notNull": true,
674
- "autoincrement": false
675
- },
676
- "resource_id": {
677
- "name": "resource_id",
678
- "type": "text",
679
- "primaryKey": false,
680
- "notNull": false,
681
- "autoincrement": false
682
- },
683
- "old_value": {
684
- "name": "old_value",
685
- "type": "text",
686
- "primaryKey": false,
687
- "notNull": false,
688
- "autoincrement": false
689
- },
690
- "new_value": {
691
- "name": "new_value",
692
- "type": "text",
693
- "primaryKey": false,
694
- "notNull": false,
695
- "autoincrement": false
696
- },
697
- "ip_address": {
698
- "name": "ip_address",
699
- "type": "text",
700
- "primaryKey": false,
701
- "notNull": false,
702
- "autoincrement": false
703
- },
704
- "user_agent": {
705
- "name": "user_agent",
706
- "type": "text",
707
- "primaryKey": false,
708
- "notNull": false,
709
- "autoincrement": false
710
- },
711
- "created_at": {
712
- "name": "created_at",
713
- "type": "integer",
714
- "primaryKey": false,
715
- "notNull": false,
716
- "autoincrement": false
717
- }
718
- },
719
- "indexes": {},
720
- "foreignKeys": {},
721
- "compositePrimaryKeys": {},
722
- "uniqueConstraints": {},
723
- "checkConstraints": {}
724
- },
725
- "orders": {
726
- "name": "orders",
727
- "columns": {
728
- "id": {
729
- "name": "id",
730
- "type": "integer",
731
- "primaryKey": true,
732
- "notNull": true,
733
- "autoincrement": true
734
- },
735
- "order_no": {
736
- "name": "order_no",
737
- "type": "text",
738
- "primaryKey": false,
739
- "notNull": true,
740
- "autoincrement": false
741
- },
742
- "customer_name": {
743
- "name": "customer_name",
744
- "type": "text",
745
- "primaryKey": false,
746
- "notNull": true,
747
- "autoincrement": false
748
- },
749
- "customer_email": {
750
- "name": "customer_email",
751
- "type": "text",
752
- "primaryKey": false,
753
- "notNull": true,
754
- "autoincrement": false
755
- },
756
- "product_name": {
757
- "name": "product_name",
758
- "type": "text",
759
- "primaryKey": false,
760
- "notNull": true,
761
- "autoincrement": false
762
- },
763
- "amount": {
764
- "name": "amount",
765
- "type": "integer",
766
- "primaryKey": false,
767
- "notNull": true,
768
- "autoincrement": false
769
- },
770
- "status": {
771
- "name": "status",
772
- "type": "text",
773
- "primaryKey": false,
774
- "notNull": true,
775
- "autoincrement": false,
776
- "default": "'pending'"
777
- },
778
- "created_at": {
779
- "name": "created_at",
780
- "type": "integer",
781
- "primaryKey": false,
782
- "notNull": true,
783
- "autoincrement": false,
784
- "default": "(unixepoch() * 1000)"
785
- },
786
- "updated_at": {
787
- "name": "updated_at",
788
- "type": "integer",
789
- "primaryKey": false,
790
- "notNull": true,
791
- "autoincrement": false,
792
- "default": "(unixepoch() * 1000)"
793
- }
794
- },
795
- "indexes": {},
796
- "foreignKeys": {},
797
- "compositePrimaryKeys": {},
798
- "uniqueConstraints": {},
799
- "checkConstraints": {}
800
- },
801
- "ticket_replies": {
802
- "name": "ticket_replies",
803
- "columns": {
804
- "id": {
805
- "name": "id",
806
- "type": "integer",
807
- "primaryKey": true,
808
- "notNull": true,
809
- "autoincrement": true
810
- },
811
- "ticket_id": {
812
- "name": "ticket_id",
813
- "type": "integer",
814
- "primaryKey": false,
815
- "notNull": true,
816
- "autoincrement": false
817
- },
818
- "content": {
819
- "name": "content",
820
- "type": "text",
821
- "primaryKey": false,
822
- "notNull": true,
823
- "autoincrement": false
824
- },
825
- "author": {
826
- "name": "author",
827
- "type": "text",
828
- "primaryKey": false,
829
- "notNull": true,
830
- "autoincrement": false
831
- },
832
- "is_customer": {
833
- "name": "is_customer",
834
- "type": "integer",
835
- "primaryKey": false,
836
- "notNull": true,
837
- "autoincrement": false,
838
- "default": false
839
- },
840
- "created_at": {
841
- "name": "created_at",
842
- "type": "integer",
843
- "primaryKey": false,
844
- "notNull": true,
845
- "autoincrement": false,
846
- "default": "(unixepoch() * 1000)"
847
- }
848
- },
849
- "indexes": {},
850
- "foreignKeys": {
851
- "ticket_replies_ticket_id_tickets_id_fk": {
852
- "name": "ticket_replies_ticket_id_tickets_id_fk",
853
- "tableFrom": "ticket_replies",
854
- "tableTo": "tickets",
855
- "columnsFrom": ["ticket_id"],
856
- "columnsTo": ["id"],
857
- "onDelete": "cascade",
858
- "onUpdate": "no action"
859
- }
860
- },
861
- "compositePrimaryKeys": {},
862
- "uniqueConstraints": {},
863
- "checkConstraints": {}
864
- },
865
- "tickets": {
866
- "name": "tickets",
867
- "columns": {
868
- "id": {
869
- "name": "id",
870
- "type": "integer",
871
- "primaryKey": true,
872
- "notNull": true,
873
- "autoincrement": true
874
- },
875
- "ticket_no": {
876
- "name": "ticket_no",
877
- "type": "text",
878
- "primaryKey": false,
879
- "notNull": true,
880
- "autoincrement": false
881
- },
882
- "customer_name": {
883
- "name": "customer_name",
884
- "type": "text",
885
- "primaryKey": false,
886
- "notNull": true,
887
- "autoincrement": false
888
- },
889
- "customer_email": {
890
- "name": "customer_email",
891
- "type": "text",
892
- "primaryKey": false,
893
- "notNull": true,
894
- "autoincrement": false
895
- },
896
- "subject": {
897
- "name": "subject",
898
- "type": "text",
899
- "primaryKey": false,
900
- "notNull": true,
901
- "autoincrement": false
902
- },
903
- "description": {
904
- "name": "description",
905
- "type": "text",
906
- "primaryKey": false,
907
- "notNull": true,
908
- "autoincrement": false
909
- },
910
- "status": {
911
- "name": "status",
912
- "type": "text",
913
- "primaryKey": false,
914
- "notNull": true,
915
- "autoincrement": false,
916
- "default": "'open'"
917
- },
918
- "priority": {
919
- "name": "priority",
920
- "type": "text",
921
- "primaryKey": false,
922
- "notNull": true,
923
- "autoincrement": false,
924
- "default": "'medium'"
925
- },
926
- "category": {
927
- "name": "category",
928
- "type": "text",
929
- "primaryKey": false,
930
- "notNull": true,
931
- "autoincrement": false
932
- },
933
- "assigned_to": {
934
- "name": "assigned_to",
935
- "type": "text",
936
- "primaryKey": false,
937
- "notNull": false,
938
- "autoincrement": false
939
- },
940
- "created_at": {
941
- "name": "created_at",
942
- "type": "integer",
943
- "primaryKey": false,
944
- "notNull": true,
945
- "autoincrement": false,
946
- "default": "(unixepoch() * 1000)"
947
- },
948
- "updated_at": {
949
- "name": "updated_at",
950
- "type": "integer",
951
- "primaryKey": false,
952
- "notNull": true,
953
- "autoincrement": false,
954
- "default": "(unixepoch() * 1000)"
955
- }
956
- },
957
- "indexes": {},
958
- "foreignKeys": {},
959
- "compositePrimaryKeys": {},
960
- "uniqueConstraints": {},
961
- "checkConstraints": {}
962
- },
963
- "disputes": {
964
- "name": "disputes",
965
- "columns": {
966
- "id": {
967
- "name": "id",
968
- "type": "integer",
969
- "primaryKey": true,
970
- "notNull": true,
971
- "autoincrement": true
972
- },
973
- "dispute_no": {
974
- "name": "dispute_no",
975
- "type": "text",
976
- "primaryKey": false,
977
- "notNull": true,
978
- "autoincrement": false
979
- },
980
- "order_id": {
981
- "name": "order_id",
982
- "type": "text",
983
- "primaryKey": false,
984
- "notNull": true,
985
- "autoincrement": false
986
- },
987
- "order_no": {
988
- "name": "order_no",
989
- "type": "text",
990
- "primaryKey": false,
991
- "notNull": true,
992
- "autoincrement": false
993
- },
994
- "customer_name": {
995
- "name": "customer_name",
996
- "type": "text",
997
- "primaryKey": false,
998
- "notNull": true,
999
- "autoincrement": false
1000
- },
1001
- "customer_email": {
1002
- "name": "customer_email",
1003
- "type": "text",
1004
- "primaryKey": false,
1005
- "notNull": true,
1006
- "autoincrement": false
1007
- },
1008
- "type": {
1009
- "name": "type",
1010
- "type": "text",
1011
- "primaryKey": false,
1012
- "notNull": true,
1013
- "autoincrement": false
1014
- },
1015
- "status": {
1016
- "name": "status",
1017
- "type": "text",
1018
- "primaryKey": false,
1019
- "notNull": true,
1020
- "autoincrement": false,
1021
- "default": "'pending'"
1022
- },
1023
- "description": {
1024
- "name": "description",
1025
- "type": "text",
1026
- "primaryKey": false,
1027
- "notNull": true,
1028
- "autoincrement": false
1029
- },
1030
- "resolution": {
1031
- "name": "resolution",
1032
- "type": "text",
1033
- "primaryKey": false,
1034
- "notNull": false,
1035
- "autoincrement": false
1036
- },
1037
- "amount": {
1038
- "name": "amount",
1039
- "type": "integer",
1040
- "primaryKey": false,
1041
- "notNull": true,
1042
- "autoincrement": false
1043
- },
1044
- "resolved_at": {
1045
- "name": "resolved_at",
1046
- "type": "integer",
1047
- "primaryKey": false,
1048
- "notNull": false,
1049
- "autoincrement": false
1050
- },
1051
- "resolved_by": {
1052
- "name": "resolved_by",
1053
- "type": "text",
1054
- "primaryKey": false,
1055
- "notNull": false,
1056
- "autoincrement": false
1057
- },
1058
- "created_at": {
1059
- "name": "created_at",
1060
- "type": "integer",
1061
- "primaryKey": false,
1062
- "notNull": true,
1063
- "autoincrement": false,
1064
- "default": "(unixepoch() * 1000)"
1065
- },
1066
- "updated_at": {
1067
- "name": "updated_at",
1068
- "type": "integer",
1069
- "primaryKey": false,
1070
- "notNull": true,
1071
- "autoincrement": false,
1072
- "default": "(unixepoch() * 1000)"
1073
- }
1074
- },
1075
- "indexes": {},
1076
- "foreignKeys": {},
1077
- "compositePrimaryKeys": {},
1078
- "uniqueConstraints": {},
1079
- "checkConstraints": {}
1080
- },
1081
- "contents": {
1082
- "name": "contents",
1083
- "columns": {
1084
- "id": {
1085
- "name": "id",
1086
- "type": "integer",
1087
- "primaryKey": true,
1088
- "notNull": true,
1089
- "autoincrement": true
1090
- },
1091
- "title": {
1092
- "name": "title",
1093
- "type": "text",
1094
- "primaryKey": false,
1095
- "notNull": true,
1096
- "autoincrement": false
1097
- },
1098
- "body": {
1099
- "name": "body",
1100
- "type": "text",
1101
- "primaryKey": false,
1102
- "notNull": true,
1103
- "autoincrement": false
1104
- },
1105
- "excerpt": {
1106
- "name": "excerpt",
1107
- "type": "text",
1108
- "primaryKey": false,
1109
- "notNull": false,
1110
- "autoincrement": false
1111
- },
1112
- "category": {
1113
- "name": "category",
1114
- "type": "text",
1115
- "primaryKey": false,
1116
- "notNull": true,
1117
- "autoincrement": false
1118
- },
1119
- "tags": {
1120
- "name": "tags",
1121
- "type": "text",
1122
- "primaryKey": false,
1123
- "notNull": false,
1124
- "autoincrement": false
1125
- },
1126
- "status": {
1127
- "name": "status",
1128
- "type": "text",
1129
- "primaryKey": false,
1130
- "notNull": true,
1131
- "autoincrement": false,
1132
- "default": "'draft'"
1133
- },
1134
- "author": {
1135
- "name": "author",
1136
- "type": "text",
1137
- "primaryKey": false,
1138
- "notNull": true,
1139
- "autoincrement": false
1140
- },
1141
- "view_count": {
1142
- "name": "view_count",
1143
- "type": "integer",
1144
- "primaryKey": false,
1145
- "notNull": true,
1146
- "autoincrement": false,
1147
- "default": 0
1148
- },
1149
- "like_count": {
1150
- "name": "like_count",
1151
- "type": "integer",
1152
- "primaryKey": false,
1153
- "notNull": true,
1154
- "autoincrement": false,
1155
- "default": 0
1156
- },
1157
- "published_at": {
1158
- "name": "published_at",
1159
- "type": "integer",
1160
- "primaryKey": false,
1161
- "notNull": false,
1162
- "autoincrement": false
1163
- },
1164
- "created_at": {
1165
- "name": "created_at",
1166
- "type": "integer",
1167
- "primaryKey": false,
1168
- "notNull": true,
1169
- "autoincrement": false,
1170
- "default": "(unixepoch() * 1000)"
1171
- },
1172
- "updated_at": {
1173
- "name": "updated_at",
1174
- "type": "integer",
1175
- "primaryKey": false,
1176
- "notNull": true,
1177
- "autoincrement": false,
1178
- "default": "(unixepoch() * 1000)"
1179
- }
1180
- },
1181
- "indexes": {},
1182
- "foreignKeys": {},
1183
- "compositePrimaryKeys": {},
1184
- "uniqueConstraints": {},
1185
- "checkConstraints": {}
1186
- },
1187
- "developers": {
1188
- "name": "developers",
1189
- "columns": {
1190
- "id": {
1191
- "name": "id",
1192
- "type": "text",
1193
- "primaryKey": true,
1194
- "notNull": true,
1195
- "autoincrement": false
1196
- },
1197
- "username": {
1198
- "name": "username",
1199
- "type": "text",
1200
- "primaryKey": false,
1201
- "notNull": true,
1202
- "autoincrement": false
1203
- },
1204
- "email": {
1205
- "name": "email",
1206
- "type": "text",
1207
- "primaryKey": false,
1208
- "notNull": true,
1209
- "autoincrement": false
1210
- },
1211
- "password_hash": {
1212
- "name": "password_hash",
1213
- "type": "text",
1214
- "primaryKey": false,
1215
- "notNull": true,
1216
- "autoincrement": false
1217
- },
1218
- "role": {
1219
- "name": "role",
1220
- "type": "text",
1221
- "primaryKey": false,
1222
- "notNull": true,
1223
- "autoincrement": false,
1224
- "default": "'developer'"
1225
- },
1226
- "api_key": {
1227
- "name": "api_key",
1228
- "type": "text",
1229
- "primaryKey": false,
1230
- "notNull": true,
1231
- "autoincrement": false
1232
- },
1233
- "created_at": {
1234
- "name": "created_at",
1235
- "type": "integer",
1236
- "primaryKey": false,
1237
- "notNull": true,
1238
- "autoincrement": false,
1239
- "default": "(unixepoch() * 1000)"
1240
- },
1241
- "updated_at": {
1242
- "name": "updated_at",
1243
- "type": "integer",
1244
- "primaryKey": false,
1245
- "notNull": true,
1246
- "autoincrement": false,
1247
- "default": "(unixepoch() * 1000)"
1248
- }
1249
- },
1250
- "indexes": {
1251
- "developers_username_unique": {
1252
- "name": "developers_username_unique",
1253
- "columns": ["username"],
1254
- "isUnique": true
1255
- },
1256
- "developers_email_unique": {
1257
- "name": "developers_email_unique",
1258
- "columns": ["email"],
1259
- "isUnique": true
1260
- },
1261
- "developers_api_key_unique": {
1262
- "name": "developers_api_key_unique",
1263
- "columns": ["api_key"],
1264
- "isUnique": true
1265
- }
1266
- },
1267
- "foreignKeys": {},
1268
- "compositePrimaryKeys": {},
1269
- "uniqueConstraints": {},
1270
- "checkConstraints": {}
1271
- },
1272
- "plugin_categories": {
1273
- "name": "plugin_categories",
1274
- "columns": {
1275
- "id": {
1276
- "name": "id",
1277
- "type": "text",
1278
- "primaryKey": true,
1279
- "notNull": true,
1280
- "autoincrement": false
1281
- },
1282
- "name": {
1283
- "name": "name",
1284
- "type": "text",
1285
- "primaryKey": false,
1286
- "notNull": true,
1287
- "autoincrement": false
1288
- },
1289
- "slug": {
1290
- "name": "slug",
1291
- "type": "text",
1292
- "primaryKey": false,
1293
- "notNull": true,
1294
- "autoincrement": false
1295
- },
1296
- "description": {
1297
- "name": "description",
1298
- "type": "text",
1299
- "primaryKey": false,
1300
- "notNull": false,
1301
- "autoincrement": false
1302
- },
1303
- "icon": {
1304
- "name": "icon",
1305
- "type": "text",
1306
- "primaryKey": false,
1307
- "notNull": false,
1308
- "autoincrement": false
1309
- },
1310
- "sort_order": {
1311
- "name": "sort_order",
1312
- "type": "integer",
1313
- "primaryKey": false,
1314
- "notNull": true,
1315
- "autoincrement": false,
1316
- "default": 0
1317
- }
1318
- },
1319
- "indexes": {
1320
- "plugin_categories_name_unique": {
1321
- "name": "plugin_categories_name_unique",
1322
- "columns": ["name"],
1323
- "isUnique": true
1324
- },
1325
- "plugin_categories_slug_unique": {
1326
- "name": "plugin_categories_slug_unique",
1327
- "columns": ["slug"],
1328
- "isUnique": true
1329
- }
1330
- },
1331
- "foreignKeys": {},
1332
- "compositePrimaryKeys": {},
1333
- "uniqueConstraints": {},
1334
- "checkConstraints": {}
1335
- },
1336
- "plugin_category_mappings": {
1337
- "name": "plugin_category_mappings",
1338
- "columns": {
1339
- "plugin_id": {
1340
- "name": "plugin_id",
1341
- "type": "text",
1342
- "primaryKey": false,
1343
- "notNull": true,
1344
- "autoincrement": false
1345
- },
1346
- "category_id": {
1347
- "name": "category_id",
1348
- "type": "text",
1349
- "primaryKey": false,
1350
- "notNull": true,
1351
- "autoincrement": false
1352
- }
1353
- },
1354
- "indexes": {
1355
- "plugin_category_mapping_unique": {
1356
- "name": "plugin_category_mapping_unique",
1357
- "columns": ["plugin_id", "category_id"],
1358
- "isUnique": true
1359
- }
1360
- },
1361
- "foreignKeys": {
1362
- "plugin_category_mappings_plugin_id_plugins_id_fk": {
1363
- "name": "plugin_category_mappings_plugin_id_plugins_id_fk",
1364
- "tableFrom": "plugin_category_mappings",
1365
- "tableTo": "plugins",
1366
- "columnsFrom": ["plugin_id"],
1367
- "columnsTo": ["id"],
1368
- "onDelete": "cascade",
1369
- "onUpdate": "no action"
1370
- },
1371
- "plugin_category_mappings_category_id_plugin_categories_id_fk": {
1372
- "name": "plugin_category_mappings_category_id_plugin_categories_id_fk",
1373
- "tableFrom": "plugin_category_mappings",
1374
- "tableTo": "plugin_categories",
1375
- "columnsFrom": ["category_id"],
1376
- "columnsTo": ["id"],
1377
- "onDelete": "cascade",
1378
- "onUpdate": "no action"
1379
- }
1380
- },
1381
- "compositePrimaryKeys": {},
1382
- "uniqueConstraints": {},
1383
- "checkConstraints": {}
1384
- },
1385
- "plugin_reviews": {
1386
- "name": "plugin_reviews",
1387
- "columns": {
1388
- "id": {
1389
- "name": "id",
1390
- "type": "text",
1391
- "primaryKey": true,
1392
- "notNull": true,
1393
- "autoincrement": false
1394
- },
1395
- "plugin_id": {
1396
- "name": "plugin_id",
1397
- "type": "text",
1398
- "primaryKey": false,
1399
- "notNull": true,
1400
- "autoincrement": false
1401
- },
1402
- "user_id": {
1403
- "name": "user_id",
1404
- "type": "text",
1405
- "primaryKey": false,
1406
- "notNull": true,
1407
- "autoincrement": false
1408
- },
1409
- "user_name": {
1410
- "name": "user_name",
1411
- "type": "text",
1412
- "primaryKey": false,
1413
- "notNull": true,
1414
- "autoincrement": false
1415
- },
1416
- "rating": {
1417
- "name": "rating",
1418
- "type": "integer",
1419
- "primaryKey": false,
1420
- "notNull": true,
1421
- "autoincrement": false
1422
- },
1423
- "title": {
1424
- "name": "title",
1425
- "type": "text",
1426
- "primaryKey": false,
1427
- "notNull": false,
1428
- "autoincrement": false
1429
- },
1430
- "content": {
1431
- "name": "content",
1432
- "type": "text",
1433
- "primaryKey": false,
1434
- "notNull": false,
1435
- "autoincrement": false
1436
- },
1437
- "created_at": {
1438
- "name": "created_at",
1439
- "type": "integer",
1440
- "primaryKey": false,
1441
- "notNull": true,
1442
- "autoincrement": false,
1443
- "default": "(unixepoch() * 1000)"
1444
- }
1445
- },
1446
- "indexes": {
1447
- "plugin_review_user_unique": {
1448
- "name": "plugin_review_user_unique",
1449
- "columns": ["plugin_id", "user_id"],
1450
- "isUnique": true
1451
- }
1452
- },
1453
- "foreignKeys": {
1454
- "plugin_reviews_plugin_id_plugins_id_fk": {
1455
- "name": "plugin_reviews_plugin_id_plugins_id_fk",
1456
- "tableFrom": "plugin_reviews",
1457
- "tableTo": "plugins",
1458
- "columnsFrom": ["plugin_id"],
1459
- "columnsTo": ["id"],
1460
- "onDelete": "cascade",
1461
- "onUpdate": "no action"
1462
- }
1463
- },
1464
- "compositePrimaryKeys": {},
1465
- "uniqueConstraints": {},
1466
- "checkConstraints": {}
1467
- },
1468
- "plugin_versions": {
1469
- "name": "plugin_versions",
1470
- "columns": {
1471
- "id": {
1472
- "name": "id",
1473
- "type": "text",
1474
- "primaryKey": true,
1475
- "notNull": true,
1476
- "autoincrement": false
1477
- },
1478
- "plugin_id": {
1479
- "name": "plugin_id",
1480
- "type": "text",
1481
- "primaryKey": false,
1482
- "notNull": true,
1483
- "autoincrement": false
1484
- },
1485
- "version": {
1486
- "name": "version",
1487
- "type": "text",
1488
- "primaryKey": false,
1489
- "notNull": true,
1490
- "autoincrement": false
1491
- },
1492
- "changelog": {
1493
- "name": "changelog",
1494
- "type": "text",
1495
- "primaryKey": false,
1496
- "notNull": false,
1497
- "autoincrement": false
1498
- },
1499
- "package_url": {
1500
- "name": "package_url",
1501
- "type": "text",
1502
- "primaryKey": false,
1503
- "notNull": false,
1504
- "autoincrement": false
1505
- },
1506
- "file_size": {
1507
- "name": "file_size",
1508
- "type": "integer",
1509
- "primaryKey": false,
1510
- "notNull": false,
1511
- "autoincrement": false
1512
- },
1513
- "checksum": {
1514
- "name": "checksum",
1515
- "type": "text",
1516
- "primaryKey": false,
1517
- "notNull": false,
1518
- "autoincrement": false
1519
- },
1520
- "status": {
1521
- "name": "status",
1522
- "type": "text",
1523
- "primaryKey": false,
1524
- "notNull": true,
1525
- "autoincrement": false,
1526
- "default": "'pending'"
1527
- },
1528
- "published_at": {
1529
- "name": "published_at",
1530
- "type": "integer",
1531
- "primaryKey": false,
1532
- "notNull": true,
1533
- "autoincrement": false,
1534
- "default": "(unixepoch() * 1000)"
1535
- }
1536
- },
1537
- "indexes": {
1538
- "plugin_version_unique": {
1539
- "name": "plugin_version_unique",
1540
- "columns": ["plugin_id", "version"],
1541
- "isUnique": true
1542
- }
1543
- },
1544
- "foreignKeys": {
1545
- "plugin_versions_plugin_id_plugins_id_fk": {
1546
- "name": "plugin_versions_plugin_id_plugins_id_fk",
1547
- "tableFrom": "plugin_versions",
1548
- "tableTo": "plugins",
1549
- "columnsFrom": ["plugin_id"],
1550
- "columnsTo": ["id"],
1551
- "onDelete": "cascade",
1552
- "onUpdate": "no action"
1553
- }
1554
- },
1555
- "compositePrimaryKeys": {},
1556
- "uniqueConstraints": {},
1557
- "checkConstraints": {}
1558
- },
1559
- "plugins": {
1560
- "name": "plugins",
1561
- "columns": {
1562
- "id": {
1563
- "name": "id",
1564
- "type": "text",
1565
- "primaryKey": true,
1566
- "notNull": true,
1567
- "autoincrement": false
1568
- },
1569
- "name": {
1570
- "name": "name",
1571
- "type": "text",
1572
- "primaryKey": false,
1573
- "notNull": true,
1574
- "autoincrement": false
1575
- },
1576
- "slug": {
1577
- "name": "slug",
1578
- "type": "text",
1579
- "primaryKey": false,
1580
- "notNull": true,
1581
- "autoincrement": false
1582
- },
1583
- "description": {
1584
- "name": "description",
1585
- "type": "text",
1586
- "primaryKey": false,
1587
- "notNull": true,
1588
- "autoincrement": false,
1589
- "default": "''"
1590
- },
1591
- "readme": {
1592
- "name": "readme",
1593
- "type": "text",
1594
- "primaryKey": false,
1595
- "notNull": false,
1596
- "autoincrement": false
1597
- },
1598
- "author_id": {
1599
- "name": "author_id",
1600
- "type": "text",
1601
- "primaryKey": false,
1602
- "notNull": true,
1603
- "autoincrement": false
1604
- },
1605
- "author_name": {
1606
- "name": "author_name",
1607
- "type": "text",
1608
- "primaryKey": false,
1609
- "notNull": true,
1610
- "autoincrement": false
1611
- },
1612
- "repository_url": {
1613
- "name": "repository_url",
1614
- "type": "text",
1615
- "primaryKey": false,
1616
- "notNull": false,
1617
- "autoincrement": false
1618
- },
1619
- "homepage_url": {
1620
- "name": "homepage_url",
1621
- "type": "text",
1622
- "primaryKey": false,
1623
- "notNull": false,
1624
- "autoincrement": false
1625
- },
1626
- "npm_package": {
1627
- "name": "npm_package",
1628
- "type": "text",
1629
- "primaryKey": false,
1630
- "notNull": false,
1631
- "autoincrement": false
1632
- },
1633
- "license": {
1634
- "name": "license",
1635
- "type": "text",
1636
- "primaryKey": false,
1637
- "notNull": false,
1638
- "autoincrement": false
1639
- },
1640
- "version": {
1641
- "name": "version",
1642
- "type": "text",
1643
- "primaryKey": false,
1644
- "notNull": true,
1645
- "autoincrement": false,
1646
- "default": "'0.0.1'"
1647
- },
1648
- "status": {
1649
- "name": "status",
1650
- "type": "text",
1651
- "primaryKey": false,
1652
- "notNull": true,
1653
- "autoincrement": false,
1654
- "default": "'pending'"
1655
- },
1656
- "download_count": {
1657
- "name": "download_count",
1658
- "type": "integer",
1659
- "primaryKey": false,
1660
- "notNull": true,
1661
- "autoincrement": false,
1662
- "default": 0
1663
- },
1664
- "view_count": {
1665
- "name": "view_count",
1666
- "type": "integer",
1667
- "primaryKey": false,
1668
- "notNull": true,
1669
- "autoincrement": false,
1670
- "default": 0
1671
- },
1672
- "featured": {
1673
- "name": "featured",
1674
- "type": "integer",
1675
- "primaryKey": false,
1676
- "notNull": true,
1677
- "autoincrement": false,
1678
- "default": false
1679
- },
1680
- "screenshot_url": {
1681
- "name": "screenshot_url",
1682
- "type": "text",
1683
- "primaryKey": false,
1684
- "notNull": false,
1685
- "autoincrement": false
1686
- },
1687
- "site_urls": {
1688
- "name": "site_urls",
1689
- "type": "text",
1690
- "primaryKey": false,
1691
- "notNull": false,
1692
- "autoincrement": false
1693
- },
1694
- "tags": {
1695
- "name": "tags",
1696
- "type": "text",
1697
- "primaryKey": false,
1698
- "notNull": false,
1699
- "autoincrement": false
1700
- },
1701
- "commands": {
1702
- "name": "commands",
1703
- "type": "text",
1704
- "primaryKey": false,
1705
- "notNull": false,
1706
- "autoincrement": false
1707
- },
1708
- "reject_reason": {
1709
- "name": "reject_reason",
1710
- "type": "text",
1711
- "primaryKey": false,
1712
- "notNull": false,
1713
- "autoincrement": false
1714
- },
1715
- "created_at": {
1716
- "name": "created_at",
1717
- "type": "integer",
1718
- "primaryKey": false,
1719
- "notNull": true,
1720
- "autoincrement": false,
1721
- "default": "(unixepoch() * 1000)"
1722
- },
1723
- "updated_at": {
1724
- "name": "updated_at",
1725
- "type": "integer",
1726
- "primaryKey": false,
1727
- "notNull": true,
1728
- "autoincrement": false,
1729
- "default": "(unixepoch() * 1000)"
1730
- }
1731
- },
1732
- "indexes": {
1733
- "plugins_slug_unique": {
1734
- "name": "plugins_slug_unique",
1735
- "columns": ["slug"],
1736
- "isUnique": true
1737
- }
1738
- },
1739
- "foreignKeys": {},
1740
- "compositePrimaryKeys": {},
1741
- "uniqueConstraints": {},
1742
- "checkConstraints": {}
1743
- },
1744
- "tenants": {
1745
- "name": "tenants",
1746
- "columns": {
1747
- "id": {
1748
- "name": "id",
1749
- "type": "integer",
1750
- "primaryKey": true,
1751
- "notNull": true,
1752
- "autoincrement": true
1753
- },
1754
- "name": {
1755
- "name": "name",
1756
- "type": "text",
1757
- "primaryKey": false,
1758
- "notNull": true,
1759
- "autoincrement": false
1760
- },
1761
- "slug": {
1762
- "name": "slug",
1763
- "type": "text",
1764
- "primaryKey": false,
1765
- "notNull": true,
1766
- "autoincrement": false
1767
- },
1768
- "status": {
1769
- "name": "status",
1770
- "type": "text",
1771
- "primaryKey": false,
1772
- "notNull": true,
1773
- "autoincrement": false,
1774
- "default": "'trial'"
1775
- },
1776
- "plan": {
1777
- "name": "plan",
1778
- "type": "text",
1779
- "primaryKey": false,
1780
- "notNull": true,
1781
- "autoincrement": false,
1782
- "default": "'free'"
1783
- },
1784
- "max_users": {
1785
- "name": "max_users",
1786
- "type": "integer",
1787
- "primaryKey": false,
1788
- "notNull": true,
1789
- "autoincrement": false,
1790
- "default": 5
1791
- },
1792
- "settings": {
1793
- "name": "settings",
1794
- "type": "text",
1795
- "primaryKey": false,
1796
- "notNull": false,
1797
- "autoincrement": false
1798
- },
1799
- "created_at": {
1800
- "name": "created_at",
1801
- "type": "text",
1802
- "primaryKey": false,
1803
- "notNull": true,
1804
- "autoincrement": false
1805
- },
1806
- "updated_at": {
1807
- "name": "updated_at",
1808
- "type": "text",
1809
- "primaryKey": false,
1810
- "notNull": true,
1811
- "autoincrement": false
1812
- }
1813
- },
1814
- "indexes": {
1815
- "tenants_slug_unique": {
1816
- "name": "tenants_slug_unique",
1817
- "columns": ["slug"],
1818
- "isUnique": true
1819
- }
1820
- },
1821
- "foreignKeys": {},
1822
- "compositePrimaryKeys": {},
1823
- "uniqueConstraints": {},
1824
- "checkConstraints": {}
1825
- }
1826
- },
1827
- "views": {},
1828
- "enums": {},
1829
- "_meta": {
1830
- "schemas": {},
1831
- "tables": {},
1832
- "columns": {}
1833
- },
1834
- "internal": {
1835
- "indexes": {}
1836
- }
1837
- }