发布网友 发布时间:2022-04-10 23:42
共2个回答
懂视网 时间:2022-04-11 04:03
SET FOREIGN_KEY_CHECKS=0; 2 3 -- ---------------------------- 4 -- Table structure for auth_group_permissions 5 -- ---------------------------- 6 DROP TABLE IF EXISTS `auth_group_permissions`; 7 CREATE TABLE `auth_group_permissions` ( 8 `id` int(11) NOT NULL AUTO_INCREMENT, 9 `group_id` int(11) NOT NULL, 10 `permission_id` int(11) NOT NULL, 11 PRIMARY KEY (`id`), 12 UNIQUE KEY `auth_group_permissions_group_id_permission_id_0cd325b0_uniq` (`group_id`,`permission_id`), 13 KEY `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` (`permission_id`), 14 CONSTRAINT `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`), 15 CONSTRAINT `auth_group_permissions_group_id_b120cbf9_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`) 16 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
auth_group
1 SET FOREIGN_KEY_CHECKS=0; 2 3 -- ---------------------------- 4 -- Table structure for auth_group 5 -- ---------------------------- 6 DROP TABLE IF EXISTS `auth_group`; 7 CREATE TABLE `auth_group` ( 8 `id` int(11) NOT NULL AUTO_INCREMENT, 9 `name` varchar(150) NOT NULL, 10 PRIMARY KEY (`id`), 11 UNIQUE KEY `name` (`name`) 12 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
auth_permission
1 SET FOREIGN_KEY_CHECKS=0; 2 3 -- ---------------------------- 4 -- Table structure for auth_permission 5 -- ---------------------------- 6 DROP TABLE IF EXISTS `auth_permission`; 7 CREATE TABLE `auth_permission` ( 8 `id` int(11) NOT NULL AUTO_INCREMENT, 9 `name` varchar(255) NOT NULL, 10 `content_type_id` int(11) NOT NULL, 11 `codename` varchar(100) NOT NULL, 12 PRIMARY KEY (`id`), 13 UNIQUE KEY `auth_permission_content_type_id_codename_01ab375a_uniq` (`content_type_id`,`codename`), 14 CONSTRAINT `auth_permission_content_type_id_2f476e4b_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`) 15 ) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=utf8;
django_content_type
1 SET FOREIGN_KEY_CHECKS=0; 2 3 -- ---------------------------- 4 -- Table structure for django_content_type 5 -- ---------------------------- 6 DROP TABLE IF EXISTS `django_content_type`; 7 CREATE TABLE `django_content_type` ( 8 `id` int(11) NOT NULL AUTO_INCREMENT, 9 `app_label` varchar(100) NOT NULL, 10 `model` varchar(100) NOT NULL, 11 PRIMARY KEY (`id`), 12 UNIQUE KEY `django_content_type_app_label_model_76bd3d3b_uniq` (`app_label`,`model`) 13 ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;
django_admin_log
1 SET FOREIGN_KEY_CHECKS=0; 2 3 -- ---------------------------- 4 -- Table structure for django_admin_log 5 -- ---------------------------- 6 DROP TABLE IF EXISTS `django_admin_log`; 7 CREATE TABLE `django_admin_log` ( 8 `id` int(11) NOT NULL AUTO_INCREMENT, 9 `action_time` datetime(6) NOT NULL, 10 `object_id` longtext, 11 `object_repr` varchar(200) NOT NULL, 12 `action_flag` smallint(5) unsigned NOT NULL, 13 `change_message` longtext NOT NULL, 14 `content_type_id` int(11) DEFAULT NULL, 15 `user_id` int(11) NOT NULL, 16 PRIMARY KEY (`id`), 17 KEY `django_admin_log_content_type_id_c4bce8eb_fk_django_co` (`content_type_id`), 18 KEY `django_admin_log_user_id_c564eba6_fk_auth_user_id` (`user_id`), 19 CONSTRAINT `django_admin_log_content_type_id_c4bce8eb_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`), 20 CONSTRAINT `django_admin_log_user_id_c564eba6_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`) 21 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
数据库转模型
标签:not 数据 span long create ica object primary perm
热心网友 时间:2022-04-11 01:11
在数据库上 右键-在数据库创建数据库架构HTML...。 选择你要表,再点击创建。就会生成一个html格式的数据字典。 需要excel或者word,那就只能自己手动创建excel,word文件, 然后复制整个表格,贴上去。