forked from welliamcao/OpsManage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sql
2400 lines (2081 loc) · 101 KB
/
init.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 5.6.47, for Linux (x86_64)
--
-- Host: localhost Database: opsmanage
-- ------------------------------------------------------
-- Server version 5.6.47-log
/*!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 */;
/*!40101 SET NAMES utf8 */;
/*!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 */;
--
-- Table structure for table `auth_group`
--
DROP TABLE IF EXISTS `auth_group`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_group` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(80) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!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 */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_group_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`group_id` int(11) NOT NULL,
`permission_id` int(11) 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=utf8;
/*!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 */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_permission` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`content_type_id` int(11) 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=189 DEFAULT CHARSET=utf8;
/*!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 log entry',1,'add_logentry'),(2,'Can change log entry',1,'change_logentry'),(3,'Can delete log entry',1,'delete_logentry'),(4,'Can view log entry',1,'view_logentry'),(5,'Can add permission',2,'add_permission'),(6,'Can change permission',2,'change_permission'),(7,'Can delete permission',2,'delete_permission'),(8,'Can view permission',2,'view_permission'),(9,'Can add group',3,'add_group'),(10,'Can change group',3,'change_group'),(11,'Can delete group',3,'delete_group'),(12,'Can view group',3,'view_group'),(13,'Can add user',4,'add_user'),(14,'Can change user',4,'change_user'),(15,'Can delete user',4,'delete_user'),(16,'Can view user',4,'view_user'),(17,'Can add content type',5,'add_contenttype'),(18,'Can change content type',5,'change_contenttype'),(19,'Can delete content type',5,'delete_contenttype'),(20,'Can view content type',5,'view_contenttype'),(21,'Can add session',6,'add_session'),(22,'Can change session',6,'change_session'),(23,'Can delete session',6,'delete_session'),(24,'Can view session',6,'view_session'),(25,'读取站内导航权限',9,'nav_read_nav_type'),(26,'更改站内导航权限',9,'nav_change_nav_type'),(27,'添加站内导航权限',9,'nav_add_nav_type'),(28,'删除站内导航权限',9,'nav_delete_nav_type'),(29,'读取站内导航详情权限',10,'nav_read_nav_number'),(30,'更改站内导航详情权限',10,'nav_change_nav_number'),(31,'添加站内导航详情权限',10,'nav_add_nav_number'),(32,'删除站内导航详情权限',10,'nav_delete_nav_number'),(33,'读取高危SQL表权限',11,'database_read_custom_high_risk_sql'),(34,'更改高危SQL表权限',11,'database_change_custom_high_risk_sql'),(35,'添加高危SQL表权限',11,'database_add_custom_high_risk_sql'),(36,'删除高危SQL表权限',11,'database_delete_custom_high_risk_sql'),(37,'读取数据库信息表权限',14,'database_read_database_server_config'),(38,'更改数据库信息表权限',14,'database_change_database_server_config'),(39,'添加数据库信息表权限',14,'database_add_database_server_config'),(40,'删除数据库信息表权限',14,'database_delete_database_server_config'),(41,'数据库查询查询权限',14,'database_query_database_server_config'),(42,'数据库执行DML语句权限',14,'databases_dml_database_server_config'),(43,'数据库Binglog解析权限',14,'database_binlog_database_server_config'),(44,'数据库表结构查询权限',14,'database_schema_database_server_config'),(45,'数据库SQL优化建议权限',14,'database_optimize_database_server_config'),(46,'读取SQL执行历史表权限',17,'database_read_sql_execute_histroy'),(47,'更改SQL执行历史表权限',17,'database_change_sql_execute_histroy'),(48,'添加SQL执行历史表权限',17,'database_add_sql_execute_histroy'),(49,'删除SQL执行历史表权限',17,'database_delete_sql_execute_histroy'),(50,'读取资产权限',18,'assets_read_assets'),(51,'更改资产权限',18,'assets_change_assets'),(52,'添加资产权限',18,'assets_add_assets'),(53,'删除资产权限',18,'assets_delete_assets'),(54,'导出资产权限',18,'assets_dumps_assets'),(55,'读取业务资产权限',20,'assets_read_business'),(56,'编辑业务资产权限',20,'assets_change_business'),(57,'添加业务资产权限',20,'assets_add_business'),(58,'删除业务资产权限',20,'assets_delete_business'),(59,'读取磁盘资产权限',22,'assets_read_disk'),(60,'更改磁盘资产权限',22,'assets_change_disk'),(61,'添加磁盘资产权限',22,'assets_add_disk'),(62,'删除磁盘资产权限',22,'assets_delete_disk'),(63,'读取出口线路资产权限',25,'assets_read_line'),(64,'更改出口线路资产权限',25,'assets_change_line'),(65,'添加出口线路资产权限',25,'assets_add_line'),(66,'删除出口线路资产权限',25,'assets_delete_line'),(67,'读取网络资产权限',26,'assets_read_network'),(68,'更改网络资产权限',26,'assets_change_network'),(69,'添加网络资产权限',26,'assets_add_network'),(70,'删除网络资产权限',26,'assets_delete_network'),(71,'读取Raid资产权限',28,'assets_read_raid'),(72,'更改Raid资产权限',28,'assets_change_raid'),(73,'添加Raid资产权限',28,'assets_add_raid'),(74,'删除Raid资产权限',28,'assets_delete_raid'),(75,'读取内存资产权限',29,'assets_read_ram'),(76,'更改内存资产权限',29,'assets_change_ram'),(77,'添加内存资产权限',29,'assets_add_ram'),(78,'删除内存资产权限',29,'assets_delete_ram'),(79,'读取服务器资产权限',30,'assets_read_server'),(80,'更改服务器资产权限',30,'assets_change_server'),(81,'添加服务器资产权限',30,'assets_add_server'),(82,'删除服务器资产权限',30,'assets_delete_server'),(83,'登陆服务器资产权限',30,'assets_webssh_server'),(84,'读取标签资产权限',31,'assets_read_tags'),(85,'更改标签资产权限',31,'assets_change_tags'),(86,'添加标签资产权限',31,'assets_add_tags'),(87,'删除标签资产权限',31,'assets_delete_tags'),(88,'读取资产树权限',31,'assets_read_tree'),(89,'读取区域机房权限',34,'assets_read_zone'),(90,'更改区域机房权限',34,'assets_change_zone'),(91,'添加区域机房权限',34,'assets_add_zone'),(92,'删除区域机房权限',34,'assets_delete_zone'),(93,'读取部署资产权限',37,'deploy_read_deploy_inventory'),(94,'修改部署资产权限',37,'deploy_change_deploy_inventory'),(95,'添加部署资产权限',37,'deploy_add_deploy_inventory'),(96,'删除部署资产权限',37,'deploy_delete_deploy_inventory'),(97,'读取部署剧本权限',40,'deploy_read_deploy_playbook'),(98,'修改部署剧本权限',40,'deploy_change_deploy_playbook'),(99,'添加部署剧本权限',40,'deploy_add_deploy_playbook'),(100,'删除部署剧本权限',40,'deploy_delete_deploy_playbook'),(101,'执行部署剧本权限',40,'deploy_exec_deploy_playbook'),(102,'读取部署脚本权限',41,'deploy_read_deploy_script'),(103,'修改部署脚本权限',41,'deploy_change_deploy_script'),(104,'添加部署脚本权限',41,'deploy_add_deploy_script'),(105,'删除部署脚本权限',41,'deploy_delete_deploy_script'),(106,'执行部署脚本权限',41,'deploy_exec_deploy_script'),(107,'执行部署模块权限',41,'deploy_exec_deploy_model'),(108,'读取部署模块权限',41,'deploy_read_deploy_model'),(109,'读取部署模块执行记录权限',42,'deploy_read_log_deploy_model'),(110,'修改部署模块执行记录权限',42,'deploy_change_log_deploy_model'),(111,'添加部署模块执行记录权限',42,'deploy_add_log_deploy_model'),(112,'删除部署模块执行记录权限',42,'deploy_delete_log_deploy_model'),(113,'读取部署剧本执行记录权限',43,'deploy_read_log_deploy_playbook'),(114,'修改部署剧本执行记录权限',43,'deploy_change_log_deploy_playbook'),(115,'添加部署剧本执行记录权限',43,'deploy_add_log_deploy_playbook'),(116,'删除部署剧本执行记录权限',43,'deploy_delete_log_deploy_playbook'),(117,'读取工单通知配置表权限',44,'orders_read_notice_config'),(118,'更改工单通知配置表权限',44,'orders_change_notice_config'),(119,'添加工单通知配置表权限',44,'orders_add_notice_config'),(120,'删除工单通知配置表权限',44,'orders_delete_notice_config'),(121,'读取工单系统权限',45,'orders_read_order_system'),(122,'更改工单系统权限',45,'orders_change_order_systemr'),(123,'添加工单系统权限',45,'orders_add_order_system'),(124,'删除工单系统权限',45,'orders_delete_order_system'),(125,'读取SQL审核工单权限',46,'orders_read_sql_audit_order'),(126,'更改SQL审核工单权限',46,'orders_change_sql_audit_order'),(127,'添加SQL审核工单权限',46,'orders_add_sql_audit_order'),(128,'删除SQL审核工单权限',46,'orders_delete_sql_audit_order'),(129,'读取分类权限',48,'wiki_can_read_wiki_category'),(130,'更改分类权限',48,'wiki_can_change_wiki_category'),(131,'添加分类权限',48,'wiki_can_add_wiki_category'),(132,'删除分类权限',48,'wiki_can_delete_wiki_category'),(133,'读取评论权限',49,'wiki_can_read_wiki_comment'),(134,'更改评论权限',49,'wiki_can_change_wiki_comment'),(135,'添加评论权限',49,'wiki_can_add_wiki_comment'),(136,'删除评论权限',49,'wiki_can_delete_wiki_comment'),(137,'读取文章权限',50,'wiki_can_read_wiki_post'),(138,'更改文章权限',50,'wiki_can_change_wiki_post'),(139,'添加文章权限',50,'wiki_can_add_wiki_post'),(140,'删除文章权限',50,'wiki_can_delete_wiki_post'),(141,'读取标签权限',51,'wiki_can_read_wiki_tag'),(142,'更改标签权限',51,'wiki_can_change_wiki_tag'),(143,'添加标签权限',51,'wiki_can_add_wiki_tag'),(144,'删除标签权限',51,'wiki_can_delete_wiki_tag'),(145,'读取文件下载审核工单权限',52,'filemanage_read_filedownload_audit_order'),(146,'更改文件下载审核工单权限',52,'filemanage_change_filedownload_audit_order'),(147,'添加文件下载审核工单权限',52,'filemanage_add_filedownload_audit_order'),(148,'删除文件下载审核工单权限',52,'filemanage_delete_filedownload_audit_order'),(149,'读取文件上传审核工单权限',53,'filemanage_read_fileupload_audit_order'),(150,'更改文件上传审核工单权限',53,'filemanage_change_fileupload_audit_order'),(151,'添加文件上传审核工单权限',53,'filemanage_add_fileupload_audit_order'),(152,'删除文件上传审核工单权限',53,'filemanage_delete_fileupload_audit_order'),(153,'读取项目部署权限',57,'project_read_project_config'),(154,'更改项目部署权限',57,'project_change_project_config'),(155,'添加项目部署权限',57,'project_add_project_config'),(156,'删除项目部署权限',57,'project_delete_project_config'),(157,'读取任务配置权限',59,'sched_can_read_cron_config'),(158,'更改任务配置权限',59,'sched_can_change_cron_config'),(159,'添加任务配置权限',59,'sched_can_add_cron_config'),(160,'删除任务配置权限',59,'sched_can_delete_cron_config'),(161,'Can add crontab',64,'add_crontabschedule'),(162,'Can change crontab',64,'change_crontabschedule'),(163,'Can delete crontab',64,'delete_crontabschedule'),(164,'Can view crontab',64,'view_crontabschedule'),(165,'Can add interval',65,'add_intervalschedule'),(166,'Can change interval',65,'change_intervalschedule'),(167,'Can delete interval',65,'delete_intervalschedule'),(168,'Can view interval',65,'view_intervalschedule'),(169,'Can add periodic task',66,'add_periodictask'),(170,'Can change periodic task',66,'change_periodictask'),(171,'Can delete periodic task',66,'delete_periodictask'),(172,'Can view periodic task',66,'view_periodictask'),(173,'Can add periodic tasks',67,'add_periodictasks'),(174,'Can change periodic tasks',67,'change_periodictasks'),(175,'Can delete periodic tasks',67,'delete_periodictasks'),(176,'Can view periodic tasks',67,'view_periodictasks'),(177,'Can add solar event',68,'add_solarschedule'),(178,'Can change solar event',68,'change_solarschedule'),(179,'Can delete solar event',68,'delete_solarschedule'),(180,'Can view solar event',68,'view_solarschedule'),(181,'Can add task result',69,'add_taskresult'),(182,'Can change task result',69,'change_taskresult'),(183,'Can delete task result',69,'delete_taskresult'),(184,'Can view task result',69,'view_taskresult'),(185,'读取IPVS信息表权限',70,'ipvs_read_ipvs_config'),(186,'更改IPVS信息表权限',70,'ipvs_change_ipvs_config'),(187,'添加IPVS信息表权限',70,'ipvs_add_ipvs_config'),(188,'删除IPVS信息表权限',70,'ipvs_delete_ipvs_config');
/*!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 */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_user` (
`id` int(11) 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(30) 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 AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!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 */;
INSERT INTO `auth_user` VALUES (1,'pbkdf2_sha256$120000$9PiCiK5uvdv6$RDZOkSQniHGcw2KnzKACzKsVrLZeYbmaP/bePXISlnQ=',NULL,1,'admin','','','[email protected]',1,1,'2020-03-14 20:36:04.020915');
/*!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 */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_user_groups` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`group_id` int(11) 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=utf8;
/*!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 */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_user_user_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`permission_id` int(11) 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=utf8;
/*!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 `django_admin_log`
--
DROP TABLE IF EXISTS `django_admin_log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_admin_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`action_time` datetime(6) NOT NULL,
`object_id` longtext,
`object_repr` varchar(200) NOT NULL,
`action_flag` smallint(5) unsigned NOT NULL,
`change_message` longtext NOT NULL,
`content_type_id` int(11) DEFAULT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `django_admin_log_content_type_id_c4bce8eb_fk_django_co` (`content_type_id`),
KEY `django_admin_log_user_id_c564eba6_fk_auth_user_id` (`user_id`),
CONSTRAINT `django_admin_log_content_type_id_c4bce8eb_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`),
CONSTRAINT `django_admin_log_user_id_c564eba6_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_admin_log`
--
LOCK TABLES `django_admin_log` WRITE;
/*!40000 ALTER TABLE `django_admin_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `django_admin_log` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_celery_beat_crontabschedule`
--
DROP TABLE IF EXISTS `django_celery_beat_crontabschedule`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_celery_beat_crontabschedule` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`minute` varchar(240) NOT NULL,
`hour` varchar(96) NOT NULL,
`day_of_week` varchar(64) NOT NULL,
`day_of_month` varchar(124) NOT NULL,
`month_of_year` varchar(64) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_celery_beat_crontabschedule`
--
LOCK TABLES `django_celery_beat_crontabschedule` WRITE;
/*!40000 ALTER TABLE `django_celery_beat_crontabschedule` DISABLE KEYS */;
/*!40000 ALTER TABLE `django_celery_beat_crontabschedule` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_celery_beat_intervalschedule`
--
DROP TABLE IF EXISTS `django_celery_beat_intervalschedule`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_celery_beat_intervalschedule` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`every` int(11) NOT NULL,
`period` varchar(24) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_celery_beat_intervalschedule`
--
LOCK TABLES `django_celery_beat_intervalschedule` WRITE;
/*!40000 ALTER TABLE `django_celery_beat_intervalschedule` DISABLE KEYS */;
/*!40000 ALTER TABLE `django_celery_beat_intervalschedule` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_celery_beat_periodictask`
--
DROP TABLE IF EXISTS `django_celery_beat_periodictask`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_celery_beat_periodictask` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(200) NOT NULL,
`task` varchar(200) NOT NULL,
`args` longtext NOT NULL,
`kwargs` longtext NOT NULL,
`queue` varchar(200) DEFAULT NULL,
`exchange` varchar(200) DEFAULT NULL,
`routing_key` varchar(200) DEFAULT NULL,
`expires` datetime(6) DEFAULT NULL,
`enabled` tinyint(1) NOT NULL,
`last_run_at` datetime(6) DEFAULT NULL,
`total_run_count` int(10) unsigned NOT NULL,
`date_changed` datetime(6) NOT NULL,
`description` longtext NOT NULL,
`crontab_id` int(11) DEFAULT NULL,
`interval_id` int(11) DEFAULT NULL,
`solar_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`),
KEY `django_celery_beat_p_crontab_id_d3cba168_fk_django_ce` (`crontab_id`),
KEY `django_celery_beat_p_interval_id_a8ca27da_fk_django_ce` (`interval_id`),
KEY `django_celery_beat_p_solar_id_a87ce72c_fk_django_ce` (`solar_id`),
CONSTRAINT `django_celery_beat_p_crontab_id_d3cba168_fk_django_ce` FOREIGN KEY (`crontab_id`) REFERENCES `django_celery_beat_crontabschedule` (`id`),
CONSTRAINT `django_celery_beat_p_interval_id_a8ca27da_fk_django_ce` FOREIGN KEY (`interval_id`) REFERENCES `django_celery_beat_intervalschedule` (`id`),
CONSTRAINT `django_celery_beat_p_solar_id_a87ce72c_fk_django_ce` FOREIGN KEY (`solar_id`) REFERENCES `django_celery_beat_solarschedule` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_celery_beat_periodictask`
--
LOCK TABLES `django_celery_beat_periodictask` WRITE;
/*!40000 ALTER TABLE `django_celery_beat_periodictask` DISABLE KEYS */;
/*!40000 ALTER TABLE `django_celery_beat_periodictask` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_celery_beat_periodictasks`
--
DROP TABLE IF EXISTS `django_celery_beat_periodictasks`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_celery_beat_periodictasks` (
`ident` smallint(6) NOT NULL,
`last_update` datetime(6) NOT NULL,
PRIMARY KEY (`ident`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_celery_beat_periodictasks`
--
LOCK TABLES `django_celery_beat_periodictasks` WRITE;
/*!40000 ALTER TABLE `django_celery_beat_periodictasks` DISABLE KEYS */;
/*!40000 ALTER TABLE `django_celery_beat_periodictasks` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_celery_beat_solarschedule`
--
DROP TABLE IF EXISTS `django_celery_beat_solarschedule`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_celery_beat_solarschedule` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`event` varchar(24) NOT NULL,
`latitude` decimal(9,6) NOT NULL,
`longitude` decimal(9,6) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `django_celery_beat_solar_event_latitude_longitude_ba64999a_uniq` (`event`,`latitude`,`longitude`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_celery_beat_solarschedule`
--
LOCK TABLES `django_celery_beat_solarschedule` WRITE;
/*!40000 ALTER TABLE `django_celery_beat_solarschedule` DISABLE KEYS */;
/*!40000 ALTER TABLE `django_celery_beat_solarschedule` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_celery_results_taskresult`
--
DROP TABLE IF EXISTS `django_celery_results_taskresult`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_celery_results_taskresult` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`task_id` varchar(255) NOT NULL,
`status` varchar(50) NOT NULL,
`content_type` varchar(128) NOT NULL,
`content_encoding` varchar(64) NOT NULL,
`result` longtext,
`date_done` datetime(6) NOT NULL,
`traceback` longtext,
`hidden` tinyint(1) NOT NULL,
`meta` longtext,
`task_args` longtext,
`task_kwargs` longtext,
`task_name` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `task_id` (`task_id`),
KEY `django_celery_results_taskresult_hidden_cd77412f` (`hidden`),
KEY `django_celery_results_taskresult_date_done_49edada6` (`date_done`),
KEY `django_celery_results_taskresult_status_cbbed23a` (`status`),
KEY `django_celery_results_taskresult_task_name_90987df3` (`task_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_celery_results_taskresult`
--
LOCK TABLES `django_celery_results_taskresult` WRITE;
/*!40000 ALTER TABLE `django_celery_results_taskresult` DISABLE KEYS */;
/*!40000 ALTER TABLE `django_celery_results_taskresult` 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 */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_content_type` (
`id` int(11) 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=74 DEFAULT CHARSET=utf8;
/*!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 (1,'admin','logentry'),(70,'apply','ipvs_config'),(71,'apply','ipvs_ns_config'),(72,'apply','ipvs_ops_log'),(73,'apply','ipvs_rs_config'),(18,'asset','assets'),(19,'asset','business_env_assets'),(20,'asset','business_tree_assets'),(21,'asset','cabinet_assets'),(22,'asset','disk_assets'),(23,'asset','idc_assets'),(24,'asset','idle_assets'),(25,'asset','line_assets'),(27,'asset','networkcard_assets'),(26,'asset','network_assets'),(28,'asset','raid_assets'),(29,'asset','ram_assets'),(30,'asset','server_assets'),(31,'asset','tags_assets'),(32,'asset','tags_server_assets'),(33,'asset','user_server'),(34,'asset','zone_assets'),(3,'auth','group'),(2,'auth','permission'),(4,'auth','user'),(55,'cicd','log_project_config'),(56,'cicd','log_project_record'),(57,'cicd','project_config'),(58,'cicd','project_roles'),(5,'contenttypes','contenttype'),(11,'databases','custom_high_risk_sql'),(12,'databases','database_detail'),(13,'databases','database_group'),(14,'databases','database_server_config'),(15,'databases','database_table_detail_record'),(16,'databases','database_user'),(17,'databases','sql_execute_histroy'),(35,'deploy','deploy_callback_model_result'),(36,'deploy','deploy_callback_playbook_result'),(37,'deploy','deploy_inventory'),(38,'deploy','deploy_inventory_groups'),(39,'deploy','deploy_inventory_groups_server'),(40,'deploy','deploy_playbook'),(41,'deploy','deploy_script'),(42,'deploy','log_deploy_model'),(43,'deploy','log_deploy_playbook'),(64,'django_celery_beat','crontabschedule'),(65,'django_celery_beat','intervalschedule'),(66,'django_celery_beat','periodictask'),(67,'django_celery_beat','periodictasks'),(68,'django_celery_beat','solarschedule'),(69,'django_celery_results','taskresult'),(52,'filemanage','filedownload_audit_order'),(53,'filemanage','fileupload_audit_order'),(54,'filemanage','uploadfiles'),(7,'navbar','nav_third'),(8,'navbar','nav_third_number'),(9,'navbar','nav_type'),(10,'navbar','nav_type_number'),(44,'orders','order_notice_config'),(45,'orders','order_system'),(46,'orders','sql_audit_order'),(47,'orders','sql_order_execute_result'),(59,'sched','cron_config'),(60,'sched','log_cron_config'),(61,'sched','sched_job_config'),(62,'sched','sched_job_logs'),(63,'sched','sched_node'),(6,'sessions','session'),(48,'wiki','category'),(49,'wiki','comment'),(50,'wiki','post'),(51,'wiki','tag');
/*!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 */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_migrations` (
`id` int(11) 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=36 DEFAULT CHARSET=utf8;
/*!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,'contenttypes','0001_initial','2020-03-14 20:35:10.812240'),(2,'auth','0001_initial','2020-03-14 20:35:11.191263'),(3,'admin','0001_initial','2020-03-14 20:35:11.229026'),(4,'admin','0002_logentry_remove_auto_add','2020-03-14 20:35:11.241804'),(5,'admin','0003_logentry_add_action_flag_choices','2020-03-14 20:35:11.254908'),(6,'asset','0001_initial','2020-03-14 20:35:11.839409'),(7,'apply','0001_initial','2020-03-14 20:35:12.095716'),(8,'contenttypes','0002_remove_content_type_name','2020-03-14 20:35:12.159271'),(9,'auth','0002_alter_permission_name_max_length','2020-03-14 20:35:12.178965'),(10,'auth','0003_alter_user_email_max_length','2020-03-14 20:35:12.201769'),(11,'auth','0004_alter_user_username_opts','2020-03-14 20:35:12.217386'),(12,'auth','0005_alter_user_last_login_null','2020-03-14 20:35:12.241696'),(13,'auth','0006_require_contenttypes_0002','2020-03-14 20:35:12.243833'),(14,'auth','0007_alter_validators_add_error_messages','2020-03-14 20:35:12.260994'),(15,'auth','0008_alter_user_username_max_length','2020-03-14 20:35:12.284655'),(16,'auth','0009_alter_user_last_name_max_length','2020-03-14 20:35:12.307237'),(17,'cicd','0001_initial','2020-03-14 20:35:12.414671'),(18,'databases','0001_initial','2020-03-14 20:35:12.645148'),(19,'deploy','0001_initial','2020-03-14 20:35:12.920961'),(20,'django_celery_beat','0001_initial','2020-03-14 20:35:12.986239'),(21,'django_celery_beat','0002_auto_20161118_0346','2020-03-14 20:35:13.029669'),(22,'django_celery_beat','0003_auto_20161209_0049','2020-03-14 20:35:13.055599'),(23,'django_celery_beat','0004_auto_20170221_0000','2020-03-14 20:35:13.065789'),(24,'django_celery_beat','0005_add_solarschedule_events_choices','2020-03-14 20:35:13.078332'),(25,'django_celery_beat','0006_auto_20180210_1226','2020-03-14 20:35:13.139640'),(26,'django_celery_results','0001_initial','2020-03-14 20:35:13.166813'),(27,'django_celery_results','0002_add_task_name_args_kwargs','2020-03-14 20:35:13.246013'),(28,'django_celery_results','0003_auto_20181106_1101','2020-03-14 20:35:13.254721'),(29,'django_celery_results','0004_auto_20190516_0412','2020-03-14 20:35:13.366065'),(30,'orders','0001_initial','2020-03-14 20:35:13.497514'),(31,'filemanage','0001_initial','2020-03-14 20:35:13.617393'),(32,'navbar','0001_initial','2020-03-14 20:35:13.741675'),(33,'sched','0001_initial','2020-03-14 20:35:14.052961'),(34,'sessions','0001_initial','2020-03-14 20:35:14.085648'),(35,'wiki','0001_initial','2020-03-14 20:35:14.253188');
/*!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 */;
/*!40101 SET character_set_client = utf8 */;
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=utf8;
/*!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 `opsmanage_assets`
--
DROP TABLE IF EXISTS `opsmanage_assets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `opsmanage_assets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`assets_type` varchar(100) NOT NULL,
`name` varchar(100) NOT NULL,
`sn` varchar(100) DEFAULT NULL,
`buy_time` date DEFAULT NULL,
`expire_date` date DEFAULT NULL,
`buy_user` smallint(6) DEFAULT NULL,
`management_ip` char(39) DEFAULT NULL,
`manufacturer` varchar(100) DEFAULT NULL,
`provider` varchar(100) DEFAULT NULL,
`model` varchar(100) DEFAULT NULL,
`status` smallint(6) DEFAULT NULL,
`put_zone` smallint(6) DEFAULT NULL,
`group` smallint(6) DEFAULT NULL,
`project` smallint(6) DEFAULT NULL,
`host_vars` longtext,
`mark` longtext,
`cabinet` smallint(6) DEFAULT NULL,
`create_date` datetime(6) NOT NULL,
`update_date` datetime(6) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `opsmanage_assets`
--
LOCK TABLES `opsmanage_assets` WRITE;
/*!40000 ALTER TABLE `opsmanage_assets` DISABLE KEYS */;
/*!40000 ALTER TABLE `opsmanage_assets` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `opsmanage_assets_business_tree`
--
DROP TABLE IF EXISTS `opsmanage_assets_business_tree`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `opsmanage_assets_business_tree` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`assets_id` int(11) NOT NULL,
`business_tree_assets_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `opsmanage_assets_busines_assets_id_business_tree__b14584a6_uniq` (`assets_id`,`business_tree_assets_id`),
KEY `opsmanage_assets_bus_business_tree_assets_11d9314e_fk_opsmanage` (`business_tree_assets_id`),
CONSTRAINT `opsmanage_assets_bus_assets_id_1e61ec7e_fk_opsmanage` FOREIGN KEY (`assets_id`) REFERENCES `opsmanage_assets` (`id`),
CONSTRAINT `opsmanage_assets_bus_business_tree_assets_11d9314e_fk_opsmanage` FOREIGN KEY (`business_tree_assets_id`) REFERENCES `opsmanage_business_assets` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `opsmanage_assets_business_tree`
--
LOCK TABLES `opsmanage_assets_business_tree` WRITE;
/*!40000 ALTER TABLE `opsmanage_assets_business_tree` DISABLE KEYS */;
/*!40000 ALTER TABLE `opsmanage_assets_business_tree` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `opsmanage_business_assets`
--
DROP TABLE IF EXISTS `opsmanage_business_assets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `opsmanage_business_assets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`text` varchar(100) NOT NULL,
`env` smallint(6) DEFAULT NULL,
`manage` smallint(6) DEFAULT NULL,
`group` varchar(100) DEFAULT NULL,
`desc` varchar(200) DEFAULT NULL,
`lft` int(10) unsigned NOT NULL,
`rght` int(10) unsigned NOT NULL,
`tree_id` int(10) unsigned NOT NULL,
`level` int(10) unsigned NOT NULL,
`parent_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `opsmanage_business_assets_tree_id_72b94f2e` (`tree_id`),
KEY `opsmanage_business_assets_parent_id_18a07e9f` (`parent_id`),
CONSTRAINT `opsmanage_business_a_parent_id_18a07e9f_fk_opsmanage` FOREIGN KEY (`parent_id`) REFERENCES `opsmanage_business_assets` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `opsmanage_business_assets`
--
LOCK TABLES `opsmanage_business_assets` WRITE;
/*!40000 ALTER TABLE `opsmanage_business_assets` DISABLE KEYS */;
/*!40000 ALTER TABLE `opsmanage_business_assets` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `opsmanage_business_env_assets`
--
DROP TABLE IF EXISTS `opsmanage_business_env_assets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `opsmanage_business_env_assets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `opsmanage_business_env_assets`
--
LOCK TABLES `opsmanage_business_env_assets` WRITE;
/*!40000 ALTER TABLE `opsmanage_business_env_assets` DISABLE KEYS */;
/*!40000 ALTER TABLE `opsmanage_business_env_assets` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `opsmanage_cabinet_assets`
--
DROP TABLE IF EXISTS `opsmanage_cabinet_assets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `opsmanage_cabinet_assets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`cabinet_name` varchar(100) DEFAULT NULL,
`idc_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `opsmanage_cabinet_assets_idc_id_cabinet_name_b7871401_uniq` (`idc_id`,`cabinet_name`),
CONSTRAINT `opsmanage_cabinet_as_idc_id_5fa1e503_fk_opsmanage` FOREIGN KEY (`idc_id`) REFERENCES `opsmanage_idc_assets` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `opsmanage_cabinet_assets`
--
LOCK TABLES `opsmanage_cabinet_assets` WRITE;
/*!40000 ALTER TABLE `opsmanage_cabinet_assets` DISABLE KEYS */;
/*!40000 ALTER TABLE `opsmanage_cabinet_assets` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `opsmanage_cron_config`
--
DROP TABLE IF EXISTS `opsmanage_cron_config`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `opsmanage_cron_config` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`cron_minute` varchar(10) NOT NULL,
`cron_hour` varchar(10) NOT NULL,
`cron_day` varchar(10) NOT NULL,
`cron_week` varchar(10) NOT NULL,
`cron_month` varchar(10) NOT NULL,
`cron_user` varchar(50) NOT NULL,
`cron_name` varchar(100) NOT NULL,
`cron_log_path` varchar(500) DEFAULT NULL,
`cron_type` varchar(10) NOT NULL,
`cron_command` varchar(200) NOT NULL,
`cron_script` varchar(100) DEFAULT NULL,
`cron_script_path` varchar(100) DEFAULT NULL,
`cron_status` smallint(6) NOT NULL,
`cron_server_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `opsmanage_cron_config_cron_name_cron_server_id_86fd41fe_uniq` (`cron_name`,`cron_server_id`,`cron_user`),
KEY `opsmanage_cron_confi_cron_server_id_4fccc039_fk_opsmanage` (`cron_server_id`),
CONSTRAINT `opsmanage_cron_confi_cron_server_id_4fccc039_fk_opsmanage` FOREIGN KEY (`cron_server_id`) REFERENCES `opsmanage_assets` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `opsmanage_cron_config`
--
LOCK TABLES `opsmanage_cron_config` WRITE;
/*!40000 ALTER TABLE `opsmanage_cron_config` DISABLE KEYS */;
/*!40000 ALTER TABLE `opsmanage_cron_config` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `opsmanage_custom_high_risk_sql`
--
DROP TABLE IF EXISTS `opsmanage_custom_high_risk_sql`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `opsmanage_custom_high_risk_sql` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`sql` varchar(200) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `sql` (`sql`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `opsmanage_custom_high_risk_sql`
--
LOCK TABLES `opsmanage_custom_high_risk_sql` WRITE;
/*!40000 ALTER TABLE `opsmanage_custom_high_risk_sql` DISABLE KEYS */;
/*!40000 ALTER TABLE `opsmanage_custom_high_risk_sql` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `opsmanage_database_detail`
--
DROP TABLE IF EXISTS `opsmanage_database_detail`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `opsmanage_database_detail` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`db_name` varchar(50) NOT NULL,
`db_size` int(11) DEFAULT NULL,
`db_server_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `opsmanage_database_detail_db_server_id_db_name_3f6c7e03_uniq` (`db_server_id`,`db_name`),
CONSTRAINT `opsmanage_database_d_db_server_id_96458abb_fk_opsmanage` FOREIGN KEY (`db_server_id`) REFERENCES `opsmanage_database_server_config` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `opsmanage_database_detail`
--
LOCK TABLES `opsmanage_database_detail` WRITE;
/*!40000 ALTER TABLE `opsmanage_database_detail` DISABLE KEYS */;
/*!40000 ALTER TABLE `opsmanage_database_detail` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `opsmanage_database_group`
--
DROP TABLE IF EXISTS `opsmanage_database_group`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `opsmanage_database_group` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`db` smallint(6) NOT NULL,
`group` smallint(6) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `opsmanage_database_group_db_group_f62d70a4_uniq` (`db`,`group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `opsmanage_database_group`
--
LOCK TABLES `opsmanage_database_group` WRITE;
/*!40000 ALTER TABLE `opsmanage_database_group` DISABLE KEYS */;
/*!40000 ALTER TABLE `opsmanage_database_group` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `opsmanage_database_server_config`
--
DROP TABLE IF EXISTS `opsmanage_database_server_config`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `opsmanage_database_server_config` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`db_env` varchar(10) NOT NULL,
`db_type` varchar(10) DEFAULT NULL,
`db_business` int(11) NOT NULL,
`db_mode` varchar(10) NOT NULL,
`db_user` varchar(100) DEFAULT NULL,
`db_passwd` varchar(100) DEFAULT NULL,
`db_port` int(11) NOT NULL,
`db_version` varchar(100) DEFAULT NULL,
`db_mark` varchar(100) DEFAULT NULL,
`db_rw` varchar(20) DEFAULT NULL,
`db_assets_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `opsmanage_database_serve_db_port_db_assets_id_db__2d3b687e_uniq` (`db_port`,`db_assets_id`,`db_env`,`db_business`),
KEY `opsmanage_database_s_db_assets_id_932f23f7_fk_opsmanage` (`db_assets_id`),
CONSTRAINT `opsmanage_database_s_db_assets_id_932f23f7_fk_opsmanage` FOREIGN KEY (`db_assets_id`) REFERENCES `opsmanage_assets` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `opsmanage_database_server_config`
--
LOCK TABLES `opsmanage_database_server_config` WRITE;
/*!40000 ALTER TABLE `opsmanage_database_server_config` DISABLE KEYS */;
/*!40000 ALTER TABLE `opsmanage_database_server_config` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `opsmanage_database_table_detail`
--
DROP TABLE IF EXISTS `opsmanage_database_table_detail`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `opsmanage_database_table_detail` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`db` smallint(6) NOT NULL,
`table_name` varchar(100) DEFAULT NULL,
`table_size` int(11) DEFAULT NULL,
`table_row` int(11) DEFAULT NULL,
`last_time` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `opsmanage_database_table_detail_db_table_name_c16db963_idx` (`db`,`table_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `opsmanage_database_table_detail`
--
LOCK TABLES `opsmanage_database_table_detail` WRITE;
/*!40000 ALTER TABLE `opsmanage_database_table_detail` DISABLE KEYS */;
/*!40000 ALTER TABLE `opsmanage_database_table_detail` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `opsmanage_database_user`
--
DROP TABLE IF EXISTS `opsmanage_database_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `opsmanage_database_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`db` smallint(6) NOT NULL,
`user` smallint(6) NOT NULL,
`tables` longtext,
`privs` varchar(250) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `opsmanage_database_user_db_user_a8f95aa4_uniq` (`db`,`user`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `opsmanage_database_user`
--
LOCK TABLES `opsmanage_database_user` WRITE;
/*!40000 ALTER TABLE `opsmanage_database_user` DISABLE KEYS */;
/*!40000 ALTER TABLE `opsmanage_database_user` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `opsmanage_deploy_callback_model_result`
--
DROP TABLE IF EXISTS `opsmanage_deploy_callback_model_result`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `opsmanage_deploy_callback_model_result` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`content` longtext,
`logId_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `opsmanage_deploy_cal_logId_id_b37fad6f_fk_opsmanage` (`logId_id`),
CONSTRAINT `opsmanage_deploy_cal_logId_id_b37fad6f_fk_opsmanage` FOREIGN KEY (`logId_id`) REFERENCES `opsmanage_log_deploy_model` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `opsmanage_deploy_callback_model_result`
--
LOCK TABLES `opsmanage_deploy_callback_model_result` WRITE;
/*!40000 ALTER TABLE `opsmanage_deploy_callback_model_result` DISABLE KEYS */;
/*!40000 ALTER TABLE `opsmanage_deploy_callback_model_result` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `opsmanage_deploy_callback_playbook_result`
--
DROP TABLE IF EXISTS `opsmanage_deploy_callback_playbook_result`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `opsmanage_deploy_callback_playbook_result` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`content` longtext,
`logId_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `opsmanage_deploy_cal_logId_id_75c9da2c_fk_opsmanage` (`logId_id`),
CONSTRAINT `opsmanage_deploy_cal_logId_id_75c9da2c_fk_opsmanage` FOREIGN KEY (`logId_id`) REFERENCES `opsmanage_log_deploy_playbook` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `opsmanage_deploy_callback_playbook_result`
--
LOCK TABLES `opsmanage_deploy_callback_playbook_result` WRITE;
/*!40000 ALTER TABLE `opsmanage_deploy_callback_playbook_result` DISABLE KEYS */;
/*!40000 ALTER TABLE `opsmanage_deploy_callback_playbook_result` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `opsmanage_deploy_inventory`
--
DROP TABLE IF EXISTS `opsmanage_deploy_inventory`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `opsmanage_deploy_inventory` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(200) NOT NULL,
`desc` varchar(200) NOT NULL,
`user` smallint(6) NOT NULL,
`create_time` datetime(6) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `opsmanage_deploy_inventory`
--
LOCK TABLES `opsmanage_deploy_inventory` WRITE;
/*!40000 ALTER TABLE `opsmanage_deploy_inventory` DISABLE KEYS */;
/*!40000 ALTER TABLE `opsmanage_deploy_inventory` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `opsmanage_deploy_inventory_groups`
--
DROP TABLE IF EXISTS `opsmanage_deploy_inventory_groups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `opsmanage_deploy_inventory_groups` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`group_name` varchar(100) NOT NULL,
`ext_vars` longtext,
`inventory_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `opsmanage_deploy_invento_inventory_id_group_name_542eb7cd_uniq` (`inventory_id`,`group_name`),
CONSTRAINT `opsmanage_deploy_inv_inventory_id_45534ede_fk_opsmanage` FOREIGN KEY (`inventory_id`) REFERENCES `opsmanage_deploy_inventory` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `opsmanage_deploy_inventory_groups`
--
LOCK TABLES `opsmanage_deploy_inventory_groups` WRITE;
/*!40000 ALTER TABLE `opsmanage_deploy_inventory_groups` DISABLE KEYS */;
/*!40000 ALTER TABLE `opsmanage_deploy_inventory_groups` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `opsmanage_deploy_inventory_groups_servers`
--
DROP TABLE IF EXISTS `opsmanage_deploy_inventory_groups_servers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `opsmanage_deploy_inventory_groups_servers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`server` smallint(6) NOT NULL,
`groups_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `opsmanage_deploy_invento_groups_id_server_10234330_uniq` (`groups_id`,`server`),
CONSTRAINT `opsmanage_deploy_inv_groups_id_46853636_fk_opsmanage` FOREIGN KEY (`groups_id`) REFERENCES `opsmanage_deploy_inventory_groups` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `opsmanage_deploy_inventory_groups_servers`
--
LOCK TABLES `opsmanage_deploy_inventory_groups_servers` WRITE;
/*!40000 ALTER TABLE `opsmanage_deploy_inventory_groups_servers` DISABLE KEYS */;
/*!40000 ALTER TABLE `opsmanage_deploy_inventory_groups_servers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `opsmanage_deploy_playbook`
--
DROP TABLE IF EXISTS `opsmanage_deploy_playbook`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `opsmanage_deploy_playbook` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`playbook_name` varchar(50) NOT NULL,
`playbook_desc` varchar(200) DEFAULT NULL,
`playbook_uuid` varchar(50) NOT NULL,
`playbook_type` varchar(50) DEFAULT NULL,
`playbook_business` smallint(6) DEFAULT NULL,
`playbook_server` longtext,
`playbook_group` smallint(6) DEFAULT NULL,
`playbook_tags` smallint(6) DEFAULT NULL,
`playbook_inventory_groups` smallint(6) DEFAULT NULL,
`playbook_file` varchar(100) NOT NULL,
`playbook_vars` longtext,
`playbook_user` smallint(6) DEFAULT NULL,
`create_time` datetime(6) DEFAULT NULL,
`update_date` datetime(6) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `playbook_name` (`playbook_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;