开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
1 Star 0 Fork 0

Carry/java-web

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
文件
master
分支 (1)
master
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
项目仓库所选许可证以仓库主分支所使用许可证为准
master
分支 (1)
master
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥
在 Gitee 上使用 SVN,请访问 使用指南
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
master
分支 (1)
master
java-web
/
sql
/
bookdb.sql
java-web
/
sql
/
bookdb.sql
bookdb.sql 7.13 KB
一键复制 编辑 原始数据 按行查看 历史
Carry 提交于 2022年06月20日 21:20 +08:00 . 数据库
-- MySQL dump 10.13 Distrib 5.7.37, for Linux (x86_64)
--
-- Host: localhost Database: bookdb
-- ------------------------------------------------------
-- Server version 5.7.37
/*!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 */;
--
-- Current Database: `bookdb`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `bookdb` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */;
USE `bookdb`;
--
-- Table structure for table `t_book`
--
DROP TABLE IF EXISTS `t_book`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_book` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`bookImg` varchar(200) NOT NULL,
`bookName` varchar(20) DEFAULT NULL,
`price` double(10,2) DEFAULT NULL,
`author` varchar(20) DEFAULT NULL,
`saleCount` int(11) DEFAULT NULL,
`bookCount` int(11) DEFAULT NULL,
`bookStatus` int(11) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `t_book`
--
LOCK TABLES `t_book` WRITE;
/*!40000 ALTER TABLE `t_book` DISABLE KEYS */;
INSERT INTO `t_book` VALUES (1,'cyuyanrumenjingdian.jpg','C语言入门经典',99.00,'亚历山大',8,197,0),(2,'santi.jpg','三体',48.95,'周杰伦',18,892,0),(3,'ailuntulingzhuan.jpg','艾伦图灵传',50.00,'刘若英',12,143,0),(4,'bainiangudu.jpg','百年孤独',40.00,'王力宏',3,98,0),(5,'biancheng.jpg','边城',30.00,'刘德华',2,99,0),(6,'jieyouzahuodian.jpg','解忧杂货店',27.00,'东野圭吾',5,100,0),(7,'zhongguozhexueshi.jpg','中国哲学史',45.00,'冯友兰',3,100,0),(8,'huranqiri.jpg','忽然七日',19.00,'劳伦',50,200,0),(9,'sudongpozhuan.jpg','苏东坡传',20.00,'林语堂',50,300,0),(10,'fusang.jpg','扶桑',20.00,'严歌岑',10,89,0),(11,'geihaizideshi.jpg','给孩子的诗',23.00,'北岛',5,99,0);
/*!40000 ALTER TABLE `t_book` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `t_cart_item`
--
DROP TABLE IF EXISTS `t_cart_item`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_cart_item` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`book` int(11) DEFAULT NULL,
`buyCount` int(11) DEFAULT NULL,
`userBean` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FK_cart_book` (`book`),
KEY `FK_cart_user` (`userBean`),
CONSTRAINT `FK_cart_book` FOREIGN KEY (`book`) REFERENCES `t_book` (`id`),
CONSTRAINT `FK_cart_user` FOREIGN KEY (`userBean`) REFERENCES `t_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `t_cart_item`
--
LOCK TABLES `t_cart_item` WRITE;
/*!40000 ALTER TABLE `t_cart_item` DISABLE KEYS */;
INSERT INTO `t_cart_item` VALUES (1,2,3,1),(2,3,4,1);
/*!40000 ALTER TABLE `t_cart_item` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `t_order`
--
DROP TABLE IF EXISTS `t_order`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`orderNo` varchar(128) NOT NULL,
`orderDate` datetime DEFAULT NULL,
`orderUser` int(11) DEFAULT NULL,
`orderMoney` double(10,2) DEFAULT NULL,
`orderStatus` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `orderNo` (`orderNo`),
KEY `FK_order_user` (`orderUser`),
CONSTRAINT `FK_order_user` FOREIGN KEY (`orderUser`) REFERENCES `t_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `t_order`
--
LOCK TABLES `t_order` WRITE;
/*!40000 ALTER TABLE `t_order` DISABLE KEYS */;
INSERT INTO `t_order` VALUES (14,'51a4bf61-af51-4161-bce3-cca43ff43f8c_122512165351','2022-06-12 16:53:51',1,90.00,0),(15,'2d77f98e-00d7-45ac-bb7a-19771c575029_122512165422','2022-06-12 16:54:22',1,90.00,0),(16,'2c1be5b8-435c-4af1-8f8d-39ee2e24db68_122512165434','2022-06-12 16:54:35',1,90.00,0),(17,'5dcf0e8f-340e-4d4f-9c77-7360ce87e171_12251216556','2022-06-12 16:55:07',1,90.00,0);
/*!40000 ALTER TABLE `t_order` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `t_order_item`
--
DROP TABLE IF EXISTS `t_order_item`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_order_item` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`book` int(11) DEFAULT NULL,
`buyCount` int(11) DEFAULT NULL,
`orderBean` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FK_detail_book` (`book`),
KEY `FK_detail_order` (`orderBean`),
CONSTRAINT `FK_detail_book` FOREIGN KEY (`book`) REFERENCES `t_book` (`id`),
CONSTRAINT `FK_detail_order` FOREIGN KEY (`orderBean`) REFERENCES `t_order` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `t_order_item`
--
LOCK TABLES `t_order_item` WRITE;
/*!40000 ALTER TABLE `t_order_item` DISABLE KEYS */;
INSERT INTO `t_order_item` VALUES (1,3,1,14),(2,4,1,14),(3,3,1,15),(4,4,1,15),(5,3,1,16),(6,4,1,16),(7,3,1,17),(8,4,1,17);
/*!40000 ALTER TABLE `t_order_item` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `t_user`
--
DROP TABLE IF EXISTS `t_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uname` varchar(20) NOT NULL,
`pwd` varchar(32) NOT NULL,
`email` varchar(100) DEFAULT NULL,
`role` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `uname` (`uname`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `t_user`
--
LOCK TABLES `t_user` WRITE;
/*!40000 ALTER TABLE `t_user` DISABLE KEYS */;
INSERT INTO `t_user` VALUES (1,'lina','ok','lina@sina.com.cn',0),(2,'kate','ok','hello_kate@126.com',1),(3,'鸠摩智','ok','jiujiu@126.com',0),(4,'宝2021','ok','bao2021@sohu.com.cn',0),(5,'宝2022','123','bao2022@sohu.com.cn',0),(6,'wanglei','123456','2239@qq.com',0);
/*!40000 ALTER TABLE `t_user` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2022年06月20日 12:56:21
Loading...
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

简介

https://www.bilibili.com/video/BV1AS4y177xJ
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
编辑仓库简介
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/carrywl/java-web.git
git@gitee.com:carrywl/java-web.git
carrywl
java-web
java-web
master
点此查找更多帮助

搜索帮助

评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册

AltStyle によって変換されたページ (->オリジナル) /