-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathseahub_migrate_without_superuser.sql
2318 lines (1986 loc) · 102 KB
/
seahub_migrate_without_superuser.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
-- MySQL dump 10.13 Distrib 8.0.33, for macos13.3 (arm64)
--
-- Host: localhost Database: ccnet
-- ------------------------------------------------------
-- Server version 8.0.33
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Current Database: `ccnet`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `ccnet` /*!40100 DEFAULT CHARACTER SET utf8mb3 */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `ccnet`;
--
-- Current Database: `seafile`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `seafile` /*!40100 DEFAULT CHARACTER SET utf8mb3 */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `seafile`;
--
-- Current Database: `seahub`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `seahub` /*!40100 DEFAULT CHARACTER SET utf8mb3 */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `seahub`;
--
-- Table structure for table `abuse_reports_abusereport`
--
DROP TABLE IF EXISTS `abuse_reports_abusereport`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `abuse_reports_abusereport` (
`id` int NOT NULL AUTO_INCREMENT,
`reporter` longtext,
`repo_id` varchar(36) NOT NULL,
`repo_name` varchar(255) NOT NULL,
`file_path` longtext,
`abuse_type` varchar(255) NOT NULL,
`description` longtext,
`handled` tinyint(1) NOT NULL,
`time` datetime(6) NOT NULL,
PRIMARY KEY (`id`),
KEY `abuse_reports_abusereport_abuse_type_703d5335` (`abuse_type`),
KEY `abuse_reports_abusereport_handled_94b8304c` (`handled`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `abuse_reports_abusereport`
--
LOCK TABLES `abuse_reports_abusereport` WRITE;
/*!40000 ALTER TABLE `abuse_reports_abusereport` DISABLE KEYS */;
/*!40000 ALTER TABLE `abuse_reports_abusereport` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `admin_log_adminlog`
--
DROP TABLE IF EXISTS `admin_log_adminlog`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `admin_log_adminlog` (
`id` int NOT NULL AUTO_INCREMENT,
`email` varchar(254) NOT NULL,
`operation` varchar(255) NOT NULL,
`detail` longtext NOT NULL,
`datetime` datetime(6) NOT NULL,
PRIMARY KEY (`id`),
KEY `admin_log_adminlog_email_7213c993` (`email`),
KEY `admin_log_adminlog_operation_4bad7bd1` (`operation`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `admin_log_adminlog`
--
LOCK TABLES `admin_log_adminlog` WRITE;
/*!40000 ALTER TABLE `admin_log_adminlog` DISABLE KEYS */;
/*!40000 ALTER TABLE `admin_log_adminlog` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `api2_token`
--
DROP TABLE IF EXISTS `api2_token`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `api2_token` (
`key` varchar(40) NOT NULL,
`user` varchar(255) NOT NULL,
`created` datetime(6) NOT NULL,
PRIMARY KEY (`key`),
UNIQUE KEY `user` (`user`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `api2_token`
--
LOCK TABLES `api2_token` WRITE;
/*!40000 ALTER TABLE `api2_token` DISABLE KEYS */;
/*!40000 ALTER TABLE `api2_token` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `api2_tokenv2`
--
DROP TABLE IF EXISTS `api2_tokenv2`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `api2_tokenv2` (
`key` varchar(40) NOT NULL,
`user` varchar(255) NOT NULL,
`platform` varchar(32) NOT NULL,
`device_id` varchar(40) NOT NULL,
`device_name` varchar(40) NOT NULL,
`platform_version` varchar(16) NOT NULL,
`client_version` varchar(16) NOT NULL,
`last_accessed` datetime(6) NOT NULL,
`last_login_ip` char(39) DEFAULT NULL,
`created_at` datetime(6) NOT NULL,
`wiped_at` datetime(6) DEFAULT NULL,
PRIMARY KEY (`key`),
UNIQUE KEY `api2_tokenv2_user_platform_device_id_37005c24_uniq` (`user`,`platform`,`device_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `api2_tokenv2`
--
LOCK TABLES `api2_tokenv2` WRITE;
/*!40000 ALTER TABLE `api2_tokenv2` DISABLE KEYS */;
/*!40000 ALTER TABLE `api2_tokenv2` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_group`
--
DROP TABLE IF EXISTS `auth_group`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `auth_group` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(150) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_group`
--
LOCK TABLES `auth_group` WRITE;
/*!40000 ALTER TABLE `auth_group` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_group` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_group_permissions`
--
DROP TABLE IF EXISTS `auth_group_permissions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `auth_group_permissions` (
`id` int NOT NULL AUTO_INCREMENT,
`group_id` int NOT NULL,
`permission_id` int NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_group_permissions_group_id_permission_id_0cd325b0_uniq` (`group_id`,`permission_id`),
KEY `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` (`permission_id`),
CONSTRAINT `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
CONSTRAINT `auth_group_permissions_group_id_b120cbf9_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_group_permissions`
--
LOCK TABLES `auth_group_permissions` WRITE;
/*!40000 ALTER TABLE `auth_group_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_group_permissions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_permission`
--
DROP TABLE IF EXISTS `auth_permission`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `auth_permission` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`content_type_id` int NOT NULL,
`codename` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_permission_content_type_id_codename_01ab375a_uniq` (`content_type_id`,`codename`),
CONSTRAINT `auth_permission_content_type_id_2f476e4b_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=314 DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_permission`
--
LOCK TABLES `auth_permission` WRITE;
/*!40000 ALTER TABLE `auth_permission` DISABLE KEYS */;
INSERT INTO `auth_permission` VALUES (1,'Can add content type',1,'add_contenttype'),(2,'Can change content type',1,'change_contenttype'),(3,'Can delete content type',1,'delete_contenttype'),(4,'Can view content type',1,'view_contenttype'),(5,'Can change config',2,'change_config'),(6,'Can add session',3,'add_session'),(7,'Can change session',3,'change_session'),(8,'Can delete session',3,'delete_session'),(9,'Can view session',3,'view_session'),(10,'Can add client login token',4,'add_clientlogintoken'),(11,'Can change client login token',4,'change_clientlogintoken'),(12,'Can delete client login token',4,'delete_clientlogintoken'),(13,'Can view client login token',4,'view_clientlogintoken'),(14,'Can add commands last check',5,'add_commandslastcheck'),(15,'Can change commands last check',5,'change_commandslastcheck'),(16,'Can delete commands last check',5,'delete_commandslastcheck'),(17,'Can view commands last check',5,'view_commandslastcheck'),(18,'Can add device token',6,'add_devicetoken'),(19,'Can change device token',6,'change_devicetoken'),(20,'Can delete device token',6,'delete_devicetoken'),(21,'Can view device token',6,'view_devicetoken'),(22,'Can add file comment',7,'add_filecomment'),(23,'Can change file comment',7,'change_filecomment'),(24,'Can delete file comment',7,'delete_filecomment'),(25,'Can view file comment',7,'view_filecomment'),(26,'Can add user last login',8,'add_userlastlogin'),(27,'Can change user last login',8,'change_userlastlogin'),(28,'Can delete user last login',8,'delete_userlastlogin'),(29,'Can view user last login',8,'view_userlastlogin'),(30,'Can add user starred files',9,'add_userstarredfiles'),(31,'Can change user starred files',9,'change_userstarredfiles'),(32,'Can delete user starred files',9,'delete_userstarredfiles'),(33,'Can view user starred files',9,'view_userstarredfiles'),(34,'Can add repo secret key',10,'add_reposecretkey'),(35,'Can change repo secret key',10,'change_reposecretkey'),(36,'Can delete repo secret key',10,'delete_reposecretkey'),(37,'Can view repo secret key',10,'view_reposecretkey'),(38,'Can add external department',11,'add_externaldepartment'),(39,'Can change external department',11,'change_externaldepartment'),(40,'Can delete external department',11,'delete_externaldepartment'),(41,'Can view external department',11,'view_externaldepartment'),(42,'Can add social auth user',12,'add_socialauthuser'),(43,'Can change social auth user',12,'change_socialauthuser'),(44,'Can delete social auth user',12,'delete_socialauthuser'),(45,'Can view social auth user',12,'view_socialauthuser'),(46,'Can add user monitored repos',13,'add_usermonitoredrepos'),(47,'Can change user monitored repos',13,'change_usermonitoredrepos'),(48,'Can delete user monitored repos',13,'delete_usermonitoredrepos'),(49,'Can view user monitored repos',13,'view_usermonitoredrepos'),(50,'Can add permission',14,'add_permission'),(51,'Can change permission',14,'change_permission'),(52,'Can delete permission',14,'delete_permission'),(53,'Can view permission',14,'view_permission'),(54,'Can add group',15,'add_group'),(55,'Can change group',15,'change_group'),(56,'Can delete group',15,'delete_group'),(57,'Can view group',15,'view_group'),(58,'Can add user',16,'add_user'),(59,'Can change user',16,'change_user'),(60,'Can delete user',16,'delete_user'),(61,'Can view user',16,'view_user'),(62,'Can add registration profile',17,'add_registrationprofile'),(63,'Can change registration profile',17,'change_registrationprofile'),(64,'Can delete registration profile',17,'delete_registrationprofile'),(65,'Can view registration profile',17,'view_registrationprofile'),(66,'Can add captcha store',18,'add_captchastore'),(67,'Can change captcha store',18,'change_captchastore'),(68,'Can delete captcha store',18,'delete_captchastore'),(69,'Can view captcha store',18,'view_captchastore'),(70,'Can add constance',19,'add_constance'),(71,'Can change constance',19,'change_constance'),(72,'Can delete constance',19,'delete_constance'),(73,'Can view constance',19,'view_constance'),(74,'Can add Terms and Conditions',20,'add_termsandconditions'),(75,'Can change Terms and Conditions',20,'change_termsandconditions'),(76,'Can delete Terms and Conditions',20,'delete_termsandconditions'),(77,'Can view Terms and Conditions',20,'view_termsandconditions'),(78,'Can add User Terms and Conditions',21,'add_usertermsandconditions'),(79,'Can change User Terms and Conditions',21,'change_usertermsandconditions'),(80,'Can delete User Terms and Conditions',21,'delete_usertermsandconditions'),(81,'Can view User Terms and Conditions',21,'view_usertermsandconditions'),(82,'Can add token',22,'add_token'),(83,'Can change token',22,'change_token'),(84,'Can delete token',22,'delete_token'),(85,'Can view token',22,'view_token'),(86,'Can add token v2',23,'add_tokenv2'),(87,'Can change token v2',23,'change_tokenv2'),(88,'Can delete token v2',23,'delete_tokenv2'),(89,'Can view token v2',23,'view_tokenv2'),(90,'Can add avatar',24,'add_avatar'),(91,'Can change avatar',24,'change_avatar'),(92,'Can delete avatar',24,'delete_avatar'),(93,'Can view avatar',24,'view_avatar'),(94,'Can add group avatar',25,'add_groupavatar'),(95,'Can change group avatar',25,'change_groupavatar'),(96,'Can delete group avatar',25,'delete_groupavatar'),(97,'Can view group avatar',25,'view_groupavatar'),(98,'Can add contact',26,'add_contact'),(99,'Can change contact',26,'change_contact'),(100,'Can delete contact',26,'delete_contact'),(101,'Can view contact',26,'view_contact'),(102,'Can add draft',27,'add_draft'),(103,'Can change draft',27,'change_draft'),(104,'Can delete draft',27,'delete_draft'),(105,'Can view draft',27,'view_draft'),(106,'Can add draft reviewer',28,'add_draftreviewer'),(107,'Can change draft reviewer',28,'change_draftreviewer'),(108,'Can delete draft reviewer',28,'delete_draftreviewer'),(109,'Can view draft reviewer',28,'view_draftreviewer'),(110,'Can add institution',29,'add_institution'),(111,'Can change institution',29,'change_institution'),(112,'Can delete institution',29,'delete_institution'),(113,'Can view institution',29,'view_institution'),(114,'Can add institution admin',30,'add_institutionadmin'),(115,'Can change institution admin',30,'change_institutionadmin'),(116,'Can delete institution admin',30,'delete_institutionadmin'),(117,'Can view institution admin',30,'view_institutionadmin'),(118,'Can add institution quota',31,'add_institutionquota'),(119,'Can change institution quota',31,'change_institutionquota'),(120,'Can delete institution quota',31,'delete_institutionquota'),(121,'Can view institution quota',31,'view_institutionquota'),(122,'Can add invitation',32,'add_invitation'),(123,'Can change invitation',32,'change_invitation'),(124,'Can delete invitation',32,'delete_invitation'),(125,'Can view invitation',32,'view_invitation'),(126,'Can add repo share invitation',33,'add_reposhareinvitation'),(127,'Can change repo share invitation',33,'change_reposhareinvitation'),(128,'Can delete repo share invitation',33,'delete_reposhareinvitation'),(129,'Can view repo share invitation',33,'view_reposhareinvitation'),(130,'Can add wiki',34,'add_wiki'),(131,'Can change wiki',34,'change_wiki'),(132,'Can delete wiki',34,'delete_wiki'),(133,'Can view wiki',34,'view_wiki'),(134,'Can add notification',35,'add_notification'),(135,'Can change notification',35,'change_notification'),(136,'Can delete notification',35,'delete_notification'),(137,'Can view notification',35,'view_notification'),(138,'Can add user notification',36,'add_usernotification'),(139,'Can change user notification',36,'change_usernotification'),(140,'Can delete user notification',36,'delete_usernotification'),(141,'Can view user notification',36,'view_usernotification'),(142,'Can add user options',37,'add_useroptions'),(143,'Can change user options',37,'change_useroptions'),(144,'Can delete user options',37,'delete_useroptions'),(145,'Can view user options',37,'view_useroptions'),(146,'Can add only office doc key',38,'add_onlyofficedockey'),(147,'Can change only office doc key',38,'change_onlyofficedockey'),(148,'Can delete only office doc key',38,'delete_onlyofficedockey'),(149,'Can view only office doc key',38,'view_onlyofficedockey'),(150,'Can add detailed profile',39,'add_detailedprofile'),(151,'Can change detailed profile',39,'change_detailedprofile'),(152,'Can delete detailed profile',39,'delete_detailedprofile'),(153,'Can view detailed profile',39,'view_detailedprofile'),(154,'Can add profile',40,'add_profile'),(155,'Can change profile',40,'change_profile'),(156,'Can delete profile',40,'delete_profile'),(157,'Can view profile',40,'view_profile'),(158,'Can add anonymous share',41,'add_anonymousshare'),(159,'Can change anonymous share',41,'change_anonymousshare'),(160,'Can delete anonymous share',41,'delete_anonymousshare'),(161,'Can view anonymous share',41,'view_anonymousshare'),(162,'Can add extra groups share permission',42,'add_extragroupssharepermission'),(163,'Can change extra groups share permission',42,'change_extragroupssharepermission'),(164,'Can delete extra groups share permission',42,'delete_extragroupssharepermission'),(165,'Can view extra groups share permission',42,'view_extragroupssharepermission'),(166,'Can add extra share permission',43,'add_extrasharepermission'),(167,'Can change extra share permission',43,'change_extrasharepermission'),(168,'Can delete extra share permission',43,'delete_extrasharepermission'),(169,'Can view extra share permission',43,'view_extrasharepermission'),(170,'Can add file share',44,'add_fileshare'),(171,'Can change file share',44,'change_fileshare'),(172,'Can delete file share',44,'delete_fileshare'),(173,'Can view file share',44,'view_fileshare'),(174,'Can add org file share',45,'add_orgfileshare'),(175,'Can change org file share',45,'change_orgfileshare'),(176,'Can delete org file share',45,'delete_orgfileshare'),(177,'Can view org file share',45,'view_orgfileshare'),(178,'Can add private file dir share',46,'add_privatefiledirshare'),(179,'Can change private file dir share',46,'change_privatefiledirshare'),(180,'Can delete private file dir share',46,'delete_privatefiledirshare'),(181,'Can view private file dir share',46,'view_privatefiledirshare'),(182,'Can add upload link share',47,'add_uploadlinkshare'),(183,'Can change upload link share',47,'change_uploadlinkshare'),(184,'Can delete upload link share',47,'delete_uploadlinkshare'),(185,'Can view upload link share',47,'view_uploadlinkshare'),(186,'Can add custom share permissions',48,'add_customsharepermissions'),(187,'Can change custom share permissions',48,'change_customsharepermissions'),(188,'Can delete custom share permissions',48,'delete_customsharepermissions'),(189,'Can view custom share permissions',48,'view_customsharepermissions'),(190,'Can add admin log',49,'add_adminlog'),(191,'Can change admin log',49,'change_adminlog'),(192,'Can delete admin log',49,'delete_adminlog'),(193,'Can view admin log',49,'view_adminlog'),(194,'Can add file tag',50,'add_filetag'),(195,'Can change file tag',50,'change_filetag'),(196,'Can delete file tag',50,'delete_filetag'),(197,'Can view file tag',50,'view_filetag'),(198,'Can add file uuid map',51,'add_fileuuidmap'),(199,'Can change file uuid map',51,'change_fileuuidmap'),(200,'Can delete file uuid map',51,'delete_fileuuidmap'),(201,'Can view file uuid map',51,'view_fileuuidmap'),(202,'Can add tags',52,'add_tags'),(203,'Can change tags',52,'change_tags'),(204,'Can delete tags',52,'delete_tags'),(205,'Can view tags',52,'view_tags'),(206,'Can add revision tags',53,'add_revisiontags'),(207,'Can change revision tags',53,'change_revisiontags'),(208,'Can delete revision tags',53,'delete_revisiontags'),(209,'Can view revision tags',53,'view_revisiontags'),(210,'Can add tags',54,'add_tags'),(211,'Can change tags',54,'change_tags'),(212,'Can delete tags',54,'delete_tags'),(213,'Can view tags',54,'view_tags'),(214,'Can add phone device',55,'add_phonedevice'),(215,'Can change phone device',55,'change_phonedevice'),(216,'Can delete phone device',55,'delete_phonedevice'),(217,'Can view phone device',55,'view_phonedevice'),(218,'Can add static device',56,'add_staticdevice'),(219,'Can change static device',56,'change_staticdevice'),(220,'Can delete static device',56,'delete_staticdevice'),(221,'Can view static device',56,'view_staticdevice'),(222,'Can add static token',57,'add_statictoken'),(223,'Can change static token',57,'change_statictoken'),(224,'Can delete static token',57,'delete_statictoken'),(225,'Can view static token',57,'view_statictoken'),(226,'Can add TOTP device',58,'add_totpdevice'),(227,'Can change TOTP device',58,'change_totpdevice'),(228,'Can delete TOTP device',58,'delete_totpdevice'),(229,'Can view TOTP device',58,'view_totpdevice'),(230,'Can add admin role',59,'add_adminrole'),(231,'Can change admin role',59,'change_adminrole'),(232,'Can delete admin role',59,'delete_adminrole'),(233,'Can view admin role',59,'view_adminrole'),(234,'Can add trusted ip',60,'add_trustedip'),(235,'Can change trusted ip',60,'change_trustedip'),(236,'Can delete trusted ip',60,'delete_trustedip'),(237,'Can view trusted ip',60,'view_trustedip'),(238,'Can add repo tags',61,'add_repotags'),(239,'Can change repo tags',61,'change_repotags'),(240,'Can delete repo tags',61,'delete_repotags'),(241,'Can view repo tags',61,'view_repotags'),(242,'Can add file tags',62,'add_filetags'),(243,'Can change file tags',62,'change_filetags'),(244,'Can delete file tags',62,'delete_filetags'),(245,'Can view file tags',62,'view_filetags'),(246,'Can add related files',63,'add_relatedfiles'),(247,'Can change related files',63,'change_relatedfiles'),(248,'Can delete related files',63,'delete_relatedfiles'),(249,'Can view related files',63,'view_relatedfiles'),(250,'Can add file participant',64,'add_fileparticipant'),(251,'Can change file participant',64,'change_fileparticipant'),(252,'Can delete file participant',64,'delete_fileparticipant'),(253,'Can view file participant',64,'view_fileparticipant'),(254,'Can add repo api tokens',65,'add_repoapitokens'),(255,'Can change repo api tokens',65,'change_repoapitokens'),(256,'Can delete repo api tokens',65,'delete_repoapitokens'),(257,'Can view repo api tokens',65,'view_repoapitokens'),(258,'Can add abuse report',66,'add_abusereport'),(259,'Can change abuse report',66,'change_abusereport'),(260,'Can delete abuse report',66,'delete_abusereport'),(261,'Can view abuse report',66,'view_abusereport'),(262,'Can add repo auto delete',67,'add_repoautodelete'),(263,'Can change repo auto delete',67,'change_repoautodelete'),(264,'Can delete repo auto delete',67,'delete_repoautodelete'),(265,'Can view repo auto delete',67,'view_repoautodelete'),(266,'Can add ocm share',68,'add_ocmshare'),(267,'Can change ocm share',68,'change_ocmshare'),(268,'Can delete ocm share',68,'delete_ocmshare'),(269,'Can view ocm share',68,'view_ocmshare'),(270,'Can add ocm share received',69,'add_ocmsharereceived'),(271,'Can change ocm share received',69,'change_ocmsharereceived'),(272,'Can delete ocm share received',69,'delete_ocmsharereceived'),(273,'Can view ocm share received',69,'view_ocmsharereceived'),(274,'Can add received shares',70,'add_receivedshares'),(275,'Can change received shares',70,'change_receivedshares'),(276,'Can delete received shares',70,'delete_receivedshares'),(277,'Can view received shares',70,'view_receivedshares'),(278,'Can add user login log',71,'add_userloginlog'),(279,'Can change user login log',71,'change_userloginlog'),(280,'Can delete user login log',71,'delete_userloginlog'),(281,'Can view user login log',71,'view_userloginlog'),(282,'Can add org member quota',72,'add_orgmemberquota'),(283,'Can change org member quota',72,'change_orgmemberquota'),(284,'Can delete org member quota',72,'delete_orgmemberquota'),(285,'Can view org member quota',72,'view_orgmemberquota'),(286,'Can add org settings',73,'add_orgsettings'),(287,'Can change org settings',73,'change_orgsettings'),(288,'Can delete org settings',73,'delete_orgsettings'),(289,'Can view org settings',73,'view_orgsettings'),(290,'Can add org saml config',74,'add_orgsamlconfig'),(291,'Can change org saml config',74,'change_orgsamlconfig'),(292,'Can delete org saml config',74,'delete_orgsamlconfig'),(293,'Can view org saml config',74,'view_orgsamlconfig'),(294,'Can add org admin settings',75,'add_orgadminsettings'),(295,'Can change org admin settings',75,'change_orgadminsettings'),(296,'Can delete org admin settings',75,'delete_orgadminsettings'),(297,'Can view org admin settings',75,'view_orgadminsettings'),(298,'Can add proxy granting ticket',76,'add_proxygrantingticket'),(299,'Can change proxy granting ticket',76,'change_proxygrantingticket'),(300,'Can delete proxy granting ticket',76,'delete_proxygrantingticket'),(301,'Can view proxy granting ticket',76,'view_proxygrantingticket'),(302,'Can add session ticket',77,'add_sessionticket'),(303,'Can change session ticket',77,'change_sessionticket'),(304,'Can delete session ticket',77,'delete_sessionticket'),(305,'Can view session ticket',77,'view_sessionticket'),(306,'Can add seadoc history name',78,'add_seadochistoryname'),(307,'Can change seadoc history name',78,'change_seadochistoryname'),(308,'Can delete seadoc history name',78,'delete_seadochistoryname'),(309,'Can view seadoc history name',78,'view_seadochistoryname'),(310,'Can add seadoc draft',79,'add_seadocdraft'),(311,'Can change seadoc draft',79,'change_seadocdraft'),(312,'Can delete seadoc draft',79,'delete_seadocdraft'),(313,'Can view seadoc draft',79,'view_seadocdraft');
/*!40000 ALTER TABLE `auth_permission` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_user`
--
DROP TABLE IF EXISTS `auth_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `auth_user` (
`id` int NOT NULL AUTO_INCREMENT,
`password` varchar(128) NOT NULL,
`last_login` datetime(6) DEFAULT NULL,
`is_superuser` tinyint(1) NOT NULL,
`username` varchar(150) NOT NULL,
`first_name` varchar(150) NOT NULL,
`last_name` varchar(150) NOT NULL,
`email` varchar(254) NOT NULL,
`is_staff` tinyint(1) NOT NULL,
`is_active` tinyint(1) NOT NULL,
`date_joined` datetime(6) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_user`
--
LOCK TABLES `auth_user` WRITE;
/*!40000 ALTER TABLE `auth_user` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_user_groups`
--
DROP TABLE IF EXISTS `auth_user_groups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `auth_user_groups` (
`id` int NOT NULL AUTO_INCREMENT,
`user_id` int NOT NULL,
`group_id` int NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_user_groups_user_id_group_id_94350c0c_uniq` (`user_id`,`group_id`),
KEY `auth_user_groups_group_id_97559544_fk_auth_group_id` (`group_id`),
CONSTRAINT `auth_user_groups_group_id_97559544_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`),
CONSTRAINT `auth_user_groups_user_id_6a12ed8b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_user_groups`
--
LOCK TABLES `auth_user_groups` WRITE;
/*!40000 ALTER TABLE `auth_user_groups` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user_groups` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_user_user_permissions`
--
DROP TABLE IF EXISTS `auth_user_user_permissions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `auth_user_user_permissions` (
`id` int NOT NULL AUTO_INCREMENT,
`user_id` int NOT NULL,
`permission_id` int NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_user_user_permissions_user_id_permission_id_14a6b632_uniq` (`user_id`,`permission_id`),
KEY `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` (`permission_id`),
CONSTRAINT `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
CONSTRAINT `auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_user_user_permissions`
--
LOCK TABLES `auth_user_user_permissions` WRITE;
/*!40000 ALTER TABLE `auth_user_user_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user_user_permissions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `avatar_avatar`
--
DROP TABLE IF EXISTS `avatar_avatar`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `avatar_avatar` (
`id` int NOT NULL AUTO_INCREMENT,
`emailuser` varchar(255) NOT NULL,
`primary` tinyint(1) NOT NULL,
`avatar` varchar(1024) NOT NULL,
`date_uploaded` datetime(6) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `avatar_avatar`
--
LOCK TABLES `avatar_avatar` WRITE;
/*!40000 ALTER TABLE `avatar_avatar` DISABLE KEYS */;
/*!40000 ALTER TABLE `avatar_avatar` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `avatar_groupavatar`
--
DROP TABLE IF EXISTS `avatar_groupavatar`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `avatar_groupavatar` (
`id` int NOT NULL AUTO_INCREMENT,
`group_id` varchar(255) NOT NULL,
`avatar` varchar(1024) NOT NULL,
`date_uploaded` datetime(6) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `avatar_groupavatar`
--
LOCK TABLES `avatar_groupavatar` WRITE;
/*!40000 ALTER TABLE `avatar_groupavatar` DISABLE KEYS */;
/*!40000 ALTER TABLE `avatar_groupavatar` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `base_clientlogintoken`
--
DROP TABLE IF EXISTS `base_clientlogintoken`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `base_clientlogintoken` (
`token` varchar(32) NOT NULL,
`username` varchar(255) NOT NULL,
`timestamp` datetime(6) NOT NULL,
PRIMARY KEY (`token`),
KEY `base_clientlogintoken_username_4ad5d42c` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `base_clientlogintoken`
--
LOCK TABLES `base_clientlogintoken` WRITE;
/*!40000 ALTER TABLE `base_clientlogintoken` DISABLE KEYS */;
/*!40000 ALTER TABLE `base_clientlogintoken` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `base_commandslastcheck`
--
DROP TABLE IF EXISTS `base_commandslastcheck`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `base_commandslastcheck` (
`id` int NOT NULL AUTO_INCREMENT,
`command_type` varchar(100) NOT NULL,
`last_check` datetime(6) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `base_commandslastcheck`
--
LOCK TABLES `base_commandslastcheck` WRITE;
/*!40000 ALTER TABLE `base_commandslastcheck` DISABLE KEYS */;
/*!40000 ALTER TABLE `base_commandslastcheck` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `base_devicetoken`
--
DROP TABLE IF EXISTS `base_devicetoken`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `base_devicetoken` (
`id` int NOT NULL AUTO_INCREMENT,
`token` varchar(80) NOT NULL,
`user` varchar(255) NOT NULL,
`platform` varchar(32) NOT NULL,
`version` varchar(16) NOT NULL,
`pversion` varchar(16) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `base_devicetoken_token_user_38535636_uniq` (`token`,`user`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `base_devicetoken`
--
LOCK TABLES `base_devicetoken` WRITE;
/*!40000 ALTER TABLE `base_devicetoken` DISABLE KEYS */;
/*!40000 ALTER TABLE `base_devicetoken` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `base_filecomment`
--
DROP TABLE IF EXISTS `base_filecomment`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `base_filecomment` (
`id` int NOT NULL AUTO_INCREMENT,
`author` varchar(255) NOT NULL,
`comment` longtext NOT NULL,
`created_at` datetime(6) NOT NULL,
`updated_at` datetime(6) NOT NULL,
`uuid_id` char(32) NOT NULL,
`detail` longtext NOT NULL DEFAULT (_utf8mb3'b\'\''),
`resolved` tinyint(1) NOT NULL,
PRIMARY KEY (`id`),
KEY `base_filecomment_uuid_id_4f9a2ca2_fk_tags_fileuuidmap_uuid` (`uuid_id`),
KEY `base_filecomment_author_8a4d7e91` (`author`),
KEY `base_filecomment_resolved_e0717eca` (`resolved`),
CONSTRAINT `base_filecomment_uuid_id_4f9a2ca2_fk_tags_fileuuidmap_uuid` FOREIGN KEY (`uuid_id`) REFERENCES `tags_fileuuidmap` (`uuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `base_filecomment`
--
LOCK TABLES `base_filecomment` WRITE;
/*!40000 ALTER TABLE `base_filecomment` DISABLE KEYS */;
/*!40000 ALTER TABLE `base_filecomment` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `base_reposecretkey`
--
DROP TABLE IF EXISTS `base_reposecretkey`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `base_reposecretkey` (
`id` int NOT NULL AUTO_INCREMENT,
`repo_id` varchar(36) NOT NULL,
`secret_key` varchar(44) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `repo_id` (`repo_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `base_reposecretkey`
--
LOCK TABLES `base_reposecretkey` WRITE;
/*!40000 ALTER TABLE `base_reposecretkey` DISABLE KEYS */;
/*!40000 ALTER TABLE `base_reposecretkey` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `base_userlastlogin`
--
DROP TABLE IF EXISTS `base_userlastlogin`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `base_userlastlogin` (
`id` int NOT NULL AUTO_INCREMENT,
`username` varchar(255) NOT NULL,
`last_login` datetime(6) NOT NULL,
PRIMARY KEY (`id`),
KEY `base_userlastlogin_username_270de06f` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `base_userlastlogin`
--
LOCK TABLES `base_userlastlogin` WRITE;
/*!40000 ALTER TABLE `base_userlastlogin` DISABLE KEYS */;
/*!40000 ALTER TABLE `base_userlastlogin` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `base_usermonitoredrepos`
--
DROP TABLE IF EXISTS `base_usermonitoredrepos`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `base_usermonitoredrepos` (
`id` int NOT NULL AUTO_INCREMENT,
`email` varchar(254) NOT NULL,
`repo_id` varchar(36) NOT NULL,
`timestamp` datetime(6) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `base_usermonitoredrepos_email_repo_id_b4ab00e4_uniq` (`email`,`repo_id`),
KEY `base_usermonitoredrepos_email_55ead1b9` (`email`),
KEY `base_usermonitoredrepos_repo_id_00e624c3` (`repo_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `base_usermonitoredrepos`
--
LOCK TABLES `base_usermonitoredrepos` WRITE;
/*!40000 ALTER TABLE `base_usermonitoredrepos` DISABLE KEYS */;
/*!40000 ALTER TABLE `base_usermonitoredrepos` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `base_userstarredfiles`
--
DROP TABLE IF EXISTS `base_userstarredfiles`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `base_userstarredfiles` (
`id` int NOT NULL AUTO_INCREMENT,
`email` varchar(254) NOT NULL,
`org_id` int NOT NULL,
`repo_id` varchar(36) NOT NULL,
`path` longtext NOT NULL,
`is_dir` tinyint(1) NOT NULL,
PRIMARY KEY (`id`),
KEY `base_userstarredfiles_email_29e69053` (`email`),
KEY `base_userstarredfiles_repo_id_f5ecc00a` (`repo_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `base_userstarredfiles`
--
LOCK TABLES `base_userstarredfiles` WRITE;
/*!40000 ALTER TABLE `base_userstarredfiles` DISABLE KEYS */;
/*!40000 ALTER TABLE `base_userstarredfiles` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `captcha_captchastore`
--
DROP TABLE IF EXISTS `captcha_captchastore`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `captcha_captchastore` (
`id` int NOT NULL AUTO_INCREMENT,
`challenge` varchar(32) NOT NULL,
`response` varchar(32) NOT NULL,
`hashkey` varchar(40) NOT NULL,
`expiration` datetime(6) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `hashkey` (`hashkey`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `captcha_captchastore`
--
LOCK TABLES `captcha_captchastore` WRITE;
/*!40000 ALTER TABLE `captcha_captchastore` DISABLE KEYS */;
/*!40000 ALTER TABLE `captcha_captchastore` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `constance_config`
--
DROP TABLE IF EXISTS `constance_config`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `constance_config` (
`id` int NOT NULL AUTO_INCREMENT,
`constance_key` varchar(255) NOT NULL,
`value` longtext,
PRIMARY KEY (`id`),
UNIQUE KEY `constance_key` (`constance_key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `constance_config`
--
LOCK TABLES `constance_config` WRITE;
/*!40000 ALTER TABLE `constance_config` DISABLE KEYS */;
/*!40000 ALTER TABLE `constance_config` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `contacts_contact`
--
DROP TABLE IF EXISTS `contacts_contact`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `contacts_contact` (
`id` int NOT NULL AUTO_INCREMENT,
`user_email` varchar(255) NOT NULL,
`contact_email` varchar(255) NOT NULL,
`contact_name` varchar(255) DEFAULT NULL,
`note` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `contacts_contact_user_email_149035d4` (`user_email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `contacts_contact`
--
LOCK TABLES `contacts_contact` WRITE;
/*!40000 ALTER TABLE `contacts_contact` DISABLE KEYS */;
/*!40000 ALTER TABLE `contacts_contact` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `custom_share_permission`
--
DROP TABLE IF EXISTS `custom_share_permission`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `custom_share_permission` (
`id` int NOT NULL AUTO_INCREMENT,
`repo_id` varchar(36) NOT NULL,
`name` varchar(255) NOT NULL,
`description` varchar(500) NOT NULL,
`permission` longtext NOT NULL,
PRIMARY KEY (`id`),
KEY `custom_share_permission_repo_id_578fe49f` (`repo_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `custom_share_permission`
--
LOCK TABLES `custom_share_permission` WRITE;
/*!40000 ALTER TABLE `custom_share_permission` DISABLE KEYS */;
/*!40000 ALTER TABLE `custom_share_permission` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_cas_ng_proxygrantingticket`
--
DROP TABLE IF EXISTS `django_cas_ng_proxygrantingticket`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `django_cas_ng_proxygrantingticket` (
`id` int NOT NULL AUTO_INCREMENT,
`session_key` varchar(255) DEFAULT NULL,
`pgtiou` varchar(255) DEFAULT NULL,
`pgt` varchar(255) DEFAULT NULL,
`date` datetime(6) NOT NULL,
`user` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `django_cas_ng_proxygrant_session_key_user_id_4cd2ea19_uniq` (`session_key`,`user`),
KEY `django_cas_ng_proxyg_user_id_f833edd2_fk_auth_user` (`user`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_cas_ng_proxygrantingticket`
--
LOCK TABLES `django_cas_ng_proxygrantingticket` WRITE;
/*!40000 ALTER TABLE `django_cas_ng_proxygrantingticket` DISABLE KEYS */;
/*!40000 ALTER TABLE `django_cas_ng_proxygrantingticket` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_cas_ng_sessionticket`
--
DROP TABLE IF EXISTS `django_cas_ng_sessionticket`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `django_cas_ng_sessionticket` (
`id` int NOT NULL AUTO_INCREMENT,
`session_key` varchar(255) NOT NULL,
`ticket` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_cas_ng_sessionticket`
--
LOCK TABLES `django_cas_ng_sessionticket` WRITE;
/*!40000 ALTER TABLE `django_cas_ng_sessionticket` DISABLE KEYS */;
/*!40000 ALTER TABLE `django_cas_ng_sessionticket` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_content_type`
--
DROP TABLE IF EXISTS `django_content_type`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `django_content_type` (
`id` int NOT NULL AUTO_INCREMENT,
`app_label` varchar(100) NOT NULL,
`model` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `django_content_type_app_label_model_76bd3d3b_uniq` (`app_label`,`model`)
) ENGINE=InnoDB AUTO_INCREMENT=80 DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_content_type`
--
LOCK TABLES `django_content_type` WRITE;
/*!40000 ALTER TABLE `django_content_type` DISABLE KEYS */;
INSERT INTO `django_content_type` VALUES (66,'abuse_reports','abusereport'),(49,'admin_log','adminlog'),(22,'api2','token'),(23,'api2','tokenv2'),(15,'auth','group'),(14,'auth','permission'),(16,'auth','user'),(24,'avatar','avatar'),(25,'avatar','groupavatar'),(4,'base','clientlogintoken'),(5,'base','commandslastcheck'),(6,'base','devicetoken'),(11,'base','externaldepartment'),(7,'base','filecomment'),(10,'base','reposecretkey'),(12,'base','socialauthuser'),(8,'base','userlastlogin'),(13,'base','usermonitoredrepos'),(9,'base','userstarredfiles'),(18,'captcha','captchastore'),(2,'constance','config'),(26,'contacts','contact'),(1,'contenttypes','contenttype'),(19,'database','constance'),(76,'django_cas_ng','proxygrantingticket'),(77,'django_cas_ng','sessionticket'),(27,'drafts','draft'),(28,'drafts','draftreviewer'),(64,'file_participants','fileparticipant'),(62,'file_tags','filetags'),(29,'institutions','institution'),(30,'institutions','institutionadmin'),(31,'institutions','institutionquota'),(32,'invitations','invitation'),(33,'invitations','reposhareinvitation'),(35,'notifications','notification'),(36,'notifications','usernotification'),(68,'ocm','ocmshare'),(69,'ocm','ocmsharereceived'),(70,'ocm_via_webdav','receivedshares'),(38,'onlyoffice','onlyofficedockey'),(37,'options','useroptions'),(75,'organizations','orgadminsettings'),(72,'organizations','orgmemberquota'),(74,'organizations','orgsamlconfig'),(73,'organizations','orgsettings'),(39,'profile','detailedprofile'),(40,'profile','profile'),(17,'registration','registrationprofile'),(63,'related_files','relatedfiles'),(65,'repo_api_tokens','repoapitokens'),(67,'repo_auto_delete','repoautodelete'),(61,'repo_tags','repotags'),(53,'revision_tag','revisiontags'),(54,'revision_tag','tags'),(59,'role_permissions','adminrole'),(79,'seadoc','seadocdraft'),(78,'seadoc','seadochistoryname'),(3,'sessions','session'),(41,'share','anonymousshare'),(48,'share','customsharepermissions'),(42,'share','extragroupssharepermission'),(43,'share','extrasharepermission'),(44,'share','fileshare'),(45,'share','orgfileshare'),(46,'share','privatefiledirshare'),(47,'share','uploadlinkshare'),(71,'sysadmin_extra','userloginlog'),(50,'tags','filetag'),(51,'tags','fileuuidmap'),(52,'tags','tags'),(20,'termsandconditions','termsandconditions'),(21,'termsandconditions','usertermsandconditions'),(60,'trusted_ip','trustedip'),(55,'two_factor','phonedevice'),(56,'two_factor','staticdevice'),(57,'two_factor','statictoken'),(58,'two_factor','totpdevice'),(34,'wiki','wiki');
/*!40000 ALTER TABLE `django_content_type` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_migrations`
--
DROP TABLE IF EXISTS `django_migrations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `django_migrations` (
`id` int NOT NULL AUTO_INCREMENT,
`app` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`applied` datetime(6) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=89 DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_migrations`
--
LOCK TABLES `django_migrations` WRITE;
/*!40000 ALTER TABLE `django_migrations` DISABLE KEYS */;
INSERT INTO `django_migrations` VALUES (1,'abuse_reports','0001_initial','2023-07-06 06:09:47.373173'),(2,'admin_log','0001_initial','2023-07-06 06:09:47.382858'),(3,'api2','0001_initial','2023-07-06 06:09:47.394236'),(4,'contenttypes','0001_initial','2023-07-06 06:09:47.399825'),(5,'contenttypes','0002_remove_content_type_name','2023-07-06 06:09:47.409612'),(6,'auth','0001_initial','2023-07-06 06:09:47.471919'),(7,'auth','0002_alter_permission_name_max_length','2023-07-06 06:09:47.481243'),(8,'auth','0003_alter_user_email_max_length','2023-07-06 06:09:47.489348'),(9,'auth','0004_alter_user_username_opts','2023-07-06 06:09:47.491372'),(10,'auth','0005_alter_user_last_login_null','2023-07-06 06:09:47.497969'),(11,'auth','0006_require_contenttypes_0002','2023-07-06 06:09:47.498431'),(12,'auth','0007_alter_validators_add_error_messages','2023-07-06 06:09:47.500367'),(13,'auth','0008_alter_user_username_max_length','2023-07-06 06:09:47.508253'),(14,'auth','0009_alter_user_last_name_max_length','2023-07-06 06:09:47.516604'),(15,'auth','0010_alter_group_name_max_length','2023-07-06 06:09:47.524310'),(16,'auth','0011_update_proxy_permissions','2023-07-06 06:09:47.527358'),(17,'auth','0012_alter_user_first_name_max_length','2023-07-06 06:09:47.535921'),(18,'avatar','0001_initial','2023-07-06 06:09:47.540393'),(19,'tags','0001_initial','2023-07-06 06:09:47.565181'),(20,'group','0001_initial','2023-07-06 06:09:47.588504'),(21,'base','0001_initial','2023-07-06 06:09:47.650407'),(22,'base','0002_reposecretkey','2023-07-06 06:09:47.655230'),(23,'base','0003_auto_20181016_1242','2023-07-06 06:09:47.671570'),(24,'base','0004_externaldepartment_socialauthuser_usermonitoredrepos_and_more','2023-07-06 06:09:47.729251'),(25,'captcha','0001_initial','2023-07-06 06:09:47.734010'),(26,'captcha','0002_alter_captchastore_id','2023-07-06 06:09:47.736422'),(27,'contacts','0001_initial','2023-07-06 06:09:47.742294'),(28,'contacts','0002_alter_contact_contact_name_alter_contact_note','2023-07-06 06:09:47.745291'),(29,'database','0001_initial','2023-07-06 06:09:47.749053'),(30,'database','0002_auto_20190129_2304','2023-07-06 06:09:47.754727'),(31,'django_cas_ng','0001_initial','2023-07-06 06:09:47.773665'),(32,'django_cas_ng','0002_auto_20180410_0948','2023-07-06 06:09:47.793413'),(33,'drafts','0001_initial','2023-07-06 06:09:47.882824'),(34,'drafts','0002_draftreview_author','2023-07-06 06:09:47.903216'),(35,'drafts','0003_auto_20190301_0648','2023-07-06 06:09:48.005810'),(36,'drafts','0004_auto_20190610_0628','2023-07-06 06:09:48.025303'),(37,'file_participants','0001_initial','2023-07-06 06:09:48.041994'),(38,'repo_tags','0001_initial','2023-07-06 06:09:48.052127'),(39,'file_tags','0001_initial','2023-07-06 06:09:48.074422'),(40,'file_tags','0002_remove_filetags_parent_folder_uuid','2023-07-06 06:09:48.089593'),(41,'group','0002_remove_messageattachment_group_message_and_more','2023-07-06 06:09:48.116818'),(42,'institutions','0001_initial','2023-07-06 06:09:48.130529'),(43,'institutions','0002_institutionquota','2023-07-06 06:09:48.140519'),(44,'institutions','0003_auto_20180426_0710','2023-07-06 06:09:48.148490'),(45,'invitations','0001_initial','2023-07-06 06:09:48.155197'),(46,'invitations','0002_invitation_invite_type','2023-07-06 06:09:48.161055'),(47,'invitations','0003_auto_20160510_1703','2023-07-06 06:09:48.170239'),(48,'invitations','0004_auto_20160629_1610','2023-07-06 06:09:48.177614'),(49,'invitations','0005_auto_20160629_1614','2023-07-06 06:09:48.180540'),(50,'invitations','0006_reposhareinvitation','2023-07-06 06:09:48.191868'),(51,'notifications','0001_initial','2023-07-06 06:09:48.204070'),(52,'notifications','0002_auto_20180426_0710','2023-07-06 06:09:48.208275'),(53,'notifications','0003_auto_20181115_0825','2023-07-06 06:09:48.211954'),(54,'notifications','0004_alter_usernotification_seen','2023-07-06 06:09:48.213613'),(55,'ocm','0001_initial','2023-07-06 06:09:48.245487'),(56,'ocm_via_webdav','0001_initial','2023-07-06 06:09:48.284401'),(57,'ocm_via_webdav','0002_auto_20210926_1503','2023-07-06 06:09:48.299969'),(58,'ocm_via_webdav','0003_auto_20210926_1505','2023-07-06 06:09:48.319330'),(59,'ocm_via_webdav','0004_receivedshares_is_dir','2023-07-06 06:09:48.326894'),(60,'onlyoffice','0001_initial','2023-07-06 06:09:48.334119'),(61,'options','0001_initial','2023-07-06 06:09:48.339670'),(62,'options','0002_auto_20181107_0811','2023-07-06 06:09:48.342763'),(63,'organizations','0001_initial','2023-07-06 06:09:48.347173'),(64,'organizations','0002_orgsettings','2023-07-06 06:09:48.351897'),(65,'organizations','0003_auto_20190116_0323','2023-07-06 06:09:48.358713'),(66,'organizations','0004_orgsamlconfig_orgadminsettings','2023-07-06 06:09:48.369084'),(67,'profile','0001_initial','2023-07-06 06:09:48.385716'),(68,'profile','0002_auto_20190122_0225','2023-07-06 06:09:48.393920'),(69,'profile','0003_alter_profile_institution','2023-07-06 06:09:48.395194'),(70,'registration','0001_initial','2023-07-06 06:09:48.398328'),(71,'related_files','0001_initial','2023-07-06 06:09:48.413111'),(72,'repo_api_tokens','0001_initial','2023-07-06 06:09:48.421181'),(73,'repo_auto_delete','0001_initial','2023-07-06 06:09:48.424172'),(74,'revision_tag','0001_initial','2023-07-06 06:09:48.442402'),(75,'revision_tag','0002_alter_revisiontags_path','2023-07-06 06:09:48.446619'),(76,'role_permissions','0001_initial','2023-07-06 06:09:48.450658'),(77,'sessions','0001_initial','2023-07-06 06:09:48.456590'),(78,'share','0001_initial','2023-07-06 06:09:48.516605'),(79,'share','0002_customsharepermissions_alter_fileshare_permission_and_more','2023-07-06 06:09:48.528717'),(80,'sysadmin_extra','0001_initial','2023-07-06 06:09:48.535820'),(81,'termsandconditions','0001_initial','2023-07-06 06:09:48.556963'),(82,'termsandconditions','0002_alter_termsandconditions_date_active_and_more','2023-07-06 06:09:48.563397'),(83,'trusted_ip','0001_initial','2023-07-06 06:09:48.568623'),(84,'two_factor','0001_initial','2023-07-06 06:09:48.586405'),(85,'wiki','0001_initial','2023-07-06 06:09:48.591948'),(86,'wiki','0002_auto_20180326_0548','2023-07-06 06:09:48.602540'),(87,'wiki','0003_auto_20180428_0619','2023-07-06 06:09:48.606512'),(88,'wiki','0004_delete_groupwiki_delete_personalwiki','2023-07-06 06:09:48.609760');
/*!40000 ALTER TABLE `django_migrations` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_session`
--
DROP TABLE IF EXISTS `django_session`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `django_session` (
`session_key` varchar(40) NOT NULL,
`session_data` longtext NOT NULL,
`expire_date` datetime(6) NOT NULL,
PRIMARY KEY (`session_key`),
KEY `django_session_expire_date_a5c62663` (`expire_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_session`
--
LOCK TABLES `django_session` WRITE;
/*!40000 ALTER TABLE `django_session` DISABLE KEYS */;
/*!40000 ALTER TABLE `django_session` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `drafts_draft`
--
DROP TABLE IF EXISTS `drafts_draft`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `drafts_draft` (
`id` int NOT NULL AUTO_INCREMENT,
`created_at` datetime(6) NOT NULL,
`updated_at` datetime(6) NOT NULL,
`username` varchar(255) NOT NULL,
`origin_repo_id` varchar(36) NOT NULL,
`origin_file_version` varchar(100) NOT NULL,
`draft_file_path` varchar(1024) NOT NULL,
`origin_file_uuid` char(32) NOT NULL,
`publish_file_version` varchar(100) DEFAULT NULL,
`status` varchar(20) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `drafts_draft_origin_file_uuid_7c003c98_uniq` (`origin_file_uuid`),
KEY `drafts_draft_created_at_e9f4523f` (`created_at`),
KEY `drafts_draft_updated_at_0a144b05` (`updated_at`),
KEY `drafts_draft_username_73e6738b` (`username`),
KEY `drafts_draft_origin_repo_id_8978ca2c` (`origin_repo_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `drafts_draft`
--
LOCK TABLES `drafts_draft` WRITE;
/*!40000 ALTER TABLE `drafts_draft` DISABLE KEYS */;
/*!40000 ALTER TABLE `drafts_draft` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `drafts_draftreviewer`
--
DROP TABLE IF EXISTS `drafts_draftreviewer`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `drafts_draftreviewer` (
`id` int NOT NULL AUTO_INCREMENT,
`reviewer` varchar(255) NOT NULL,
`draft_id` int NOT NULL,
PRIMARY KEY (`id`),
KEY `drafts_draftreviewer_draft_id_4ea59775_fk_drafts_draft_id` (`draft_id`),
KEY `drafts_draftreviewer_reviewer_e4c777ac` (`reviewer`),
CONSTRAINT `drafts_draftreviewer_draft_id_4ea59775_fk_drafts_draft_id` FOREIGN KEY (`draft_id`) REFERENCES `drafts_draft` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `drafts_draftreviewer`
--
LOCK TABLES `drafts_draftreviewer` WRITE;
/*!40000 ALTER TABLE `drafts_draftreviewer` DISABLE KEYS */;
/*!40000 ALTER TABLE `drafts_draftreviewer` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `external_department`
--
DROP TABLE IF EXISTS `external_department`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `external_department` (
`id` int NOT NULL AUTO_INCREMENT,
`group_id` int NOT NULL,
`provider` varchar(32) NOT NULL,
`outer_id` bigint NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `group_id` (`group_id`),
UNIQUE KEY `external_department_provider_outer_id_32f31347_uniq` (`provider`,`outer_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `external_department`
--
LOCK TABLES `external_department` WRITE;
/*!40000 ALTER TABLE `external_department` DISABLE KEYS */;
/*!40000 ALTER TABLE `external_department` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `file_participants_fileparticipant`
--
DROP TABLE IF EXISTS `file_participants_fileparticipant`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `file_participants_fileparticipant` (
`id` int NOT NULL AUTO_INCREMENT,
`username` varchar(255) NOT NULL,
`uuid_id` char(32) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `file_participants_fileparticipant_uuid_id_username_c747dd36_uniq` (`uuid_id`,`username`),
CONSTRAINT `file_participants_fi_uuid_id_861b7339_fk_tags_file` FOREIGN KEY (`uuid_id`) REFERENCES `tags_fileuuidmap` (`uuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `file_participants_fileparticipant`
--
LOCK TABLES `file_participants_fileparticipant` WRITE;
/*!40000 ALTER TABLE `file_participants_fileparticipant` DISABLE KEYS */;
/*!40000 ALTER TABLE `file_participants_fileparticipant` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `file_tags_filetags`
--
DROP TABLE IF EXISTS `file_tags_filetags`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `file_tags_filetags` (
`id` int NOT NULL AUTO_INCREMENT,
`file_uuid_id` char(32) NOT NULL,
`repo_tag_id` int NOT NULL,
PRIMARY KEY (`id`),
KEY `file_tags_filetags_file_uuid_id_e30f0ec8_fk_tags_file` (`file_uuid_id`),
KEY `file_tags_filetags_repo_tag_id_c39660cb_fk_repo_tags_repotags_id` (`repo_tag_id`),
CONSTRAINT `file_tags_filetags_file_uuid_id_e30f0ec8_fk_tags_file` FOREIGN KEY (`file_uuid_id`) REFERENCES `tags_fileuuidmap` (`uuid`),
CONSTRAINT `file_tags_filetags_repo_tag_id_c39660cb_fk_repo_tags_repotags_id` FOREIGN KEY (`repo_tag_id`) REFERENCES `repo_tags_repotags` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `file_tags_filetags`
--
LOCK TABLES `file_tags_filetags` WRITE;
/*!40000 ALTER TABLE `file_tags_filetags` DISABLE KEYS */;
/*!40000 ALTER TABLE `file_tags_filetags` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `institutions_institution`
--
DROP TABLE IF EXISTS `institutions_institution`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `institutions_institution` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(200) NOT NULL,
`create_time` datetime(6) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `institutions_institution`
--
LOCK TABLES `institutions_institution` WRITE;
/*!40000 ALTER TABLE `institutions_institution` DISABLE KEYS */;
/*!40000 ALTER TABLE `institutions_institution` ENABLE KEYS */;
UNLOCK TABLES;