代码拉取完成,页面将自动刷新
/*
Navicat MySQL Data Transfer
Source Server : MySQLdp
Source Server Version : 50736
Source Host : localhost:3306
Source Database : mis
Target Server Type : MYSQL
Target Server Version : 50736
File Encoding : 65001
Date: 2023-01-07 03:36:37
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for bookcategory
-- ----------------------------
DROP TABLE IF EXISTS `bookcategory`;
CREATE TABLE `bookcategory` (
`Category` varchar(20) NOT NULL COMMENT '类别',
PRIMARY KEY (`Category`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for booktable
-- ----------------------------
DROP TABLE IF EXISTS `booktable`;
CREATE TABLE `booktable` (
`bookid` int(10) NOT NULL AUTO_INCREMENT COMMENT '书号',
`category` varchar(20) NOT NULL COMMENT '类别',
`bookname` varchar(100) NOT NULL COMMENT '书名',
`author` varchar(20) DEFAULT NULL COMMENT '作者',
`press` varchar(100) DEFAULT NULL COMMENT '出版社',
`state` varchar(20) NOT NULL COMMENT '状态',
PRIMARY KEY (`bookid`) USING BTREE,
KEY `category` (`category`) USING BTREE,
CONSTRAINT `booktable_ibfk_1` FOREIGN KEY (`category`) REFERENCES `bookcategory` (`Category`) ON DELETE NO ACTION ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for borrowrecords
-- ----------------------------
DROP TABLE IF EXISTS `borrowrecords`;
CREATE TABLE `borrowrecords` (
`id` int(10) NOT NULL AUTO_INCREMENT COMMENT '借书序列',
`user` varchar(20) NOT NULL COMMENT '用户名',
`bookid` int(10) NOT NULL COMMENT '书号',
`bookname` varchar(50) NOT NULL COMMENT '书名',
`borrowtime` date NOT NULL COMMENT '借书时间',
`returntime` date DEFAULT NULL COMMENT '还书时间',
`status` varchar(20) NOT NULL COMMENT '状态',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for usertable
-- ----------------------------
DROP TABLE IF EXISTS `usertable`;
CREATE TABLE `usertable` (
`user` varchar(20) NOT NULL COMMENT '用户名',
`studentid` varchar(20) NOT NULL COMMENT '学号',
`name` varchar(20) NOT NULL COMMENT '姓名',
`password` varchar(20) NOT NULL COMMENT '密码',
`admin` int(10) NOT NULL COMMENT '是否为管理员账户 1为管理员,0为普通用户,默认为0',
PRIMARY KEY (`user`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。