From 0df3290790a03ff3aa0cec99842438446e4cd718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=8F=8B=E5=A5=87?= <2689725568@qq.com> Date: Sun, 17 Feb 2019 01:11:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E8=AE=A1sql=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=EF=BC=8C=E5=B9=B6=E7=BC=96=E5=86=99sql=E8=AF=AD?= =?UTF-8?q?=E5=8F=A5=EF=BC=8C=E5=AF=B9mysql=208.1=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E4=BB=A5=E4=B8=8A=E8=BF=9B=E8=A1=8C=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/btn.sql | 87 +++++++++++++++++- ...6\345\272\223\350\256\276\350\256\241.doc" | Bin 0 -> 36864 bytes ...2\345\256\242\350\256\276\350\256\241.doc" | Bin 0 -> 19968 bytes pom.xml | 8 +- src/main/resources/application.yml | 6 +- 5 files changed, 94 insertions(+), 7 deletions(-) create mode 100644 "doc/\344\270\252\344\272\272\345\215\232\345\256\242\346\225\260\346\215\256\345\272\223\350\256\276\350\256\241.doc" create mode 100644 "doc/\344\270\252\344\272\272\345\215\232\345\256\242\350\256\276\350\256\241.doc" diff --git a/doc/btn.sql b/doc/btn.sql index 9349183..ce95ddd 100644 --- a/doc/btn.sql +++ b/doc/btn.sql @@ -1,14 +1,91 @@ DROP TABLE IF EXISTS `t_user`; CREATE TABLE `t_user` ( - `id` INT NOT NULL AUTO_INCREMENT COMMENT '用户表主键', + `id` INT NOT NULL AUTO_INCREMENT COMMENT '主键', `create_time` BIGINT DEFAULT 0 COMMENT '添加时间', `update_time` BIGINT DEFAULT 0 COMMENT '更新时间', `enabled` INT(1) DEFAULT '1' COMMENT '是否可见,0为不可见,1为可见', - `username` varchar(255) DEFAULT NULL COMMENT '用户账号', - `nick_name` varchar(255) DEFAULT NULL COMMENT '用户昵称', - `password` varchar(255) DEFAULT NULL COMMENT '密码', + `username` varchar(20) DEFAULT NULL COMMENT '用户账号', + `nick_name` varchar(10) DEFAULT NULL COMMENT '用户昵称', + `password` varchar(20) DEFAULT NULL COMMENT '密码', `phone` int(11) DEFAULT NULL COMMENT '电话', + `birthday` BIGINT DEFAULT 0 COMMENT '用户生日(第一次注册时用当前时间)', + `age` int(11) DEFAULT NULL COMMENT '用户年龄', + `profile_photo` VARBINARY(255) DEFAULT NULL COMMENT '用户头像 (头像保存路径,第一次注册使用默认头像)', + `rights` int(1) DEFAULT NULL COMMENT '用户权限:0为管理员,1为用户,', + `ip` VARBINARY(20) DEFAULT NULL COMMENT '用户所在ip', `login_end_time` VARCHAR(30) NOT NULL default '' COMMENT '最后登录时间', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='角色表'; \ No newline at end of file +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户表'; + + +DROP TABLE IF EXISTS `t_user_friends`; +CREATE TABLE `t_user_friends` ( + `id` INT NOT NULL AUTO_INCREMENT COMMENT '主键', + `create_time` BIGINT DEFAULT 0 COMMENT '添加时间', + `update_time` BIGINT DEFAULT 0 COMMENT '更新时间', + `enabled` INT(1) DEFAULT '1' COMMENT '是否可见,0为不可见,1为可见', + `user_id` INT NOT NULL COMMENT '用户ID', + `user_friend_id` INT NOT NULL COMMENT '用户好友ID', + `user_note` varchar(10) DEFAULT NULL COMMENT '备注', + `user_status` int(1) DEFAULT NULL COMMENT '好友状态 0:在线 1:离线', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='好友表'; + +DROP TABLE IF EXISTS `t_article`; +CREATE TABLE `t_article` ( + `id` INT NOT NULL AUTO_INCREMENT COMMENT '主键', + `create_time` BIGINT DEFAULT 0 COMMENT '添加时间', + `update_time` BIGINT DEFAULT 0 COMMENT '更新时间', + `enabled` INT(1) DEFAULT '1' COMMENT '是否可见,0为不可见,1为可见', + `title` varchar(20) DEFAULT NULL COMMENT '文章标题', + `content` varchar(255) DEFAULT NULL COMMENT '文章内容', + `views` int(11) DEFAULT 0 NULL COMMENT '浏览量', + `comment_count` int(11) DEFAULT 0 NULL COMMENT '评论总数', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='文章表'; + + +DROP TABLE IF EXISTS `t_views`; +CREATE TABLE `t_views` ( + `id` INT NOT NULL AUTO_INCREMENT COMMENT '主键', + `create_time` BIGINT DEFAULT 0 COMMENT '添加时间', + `update_time` BIGINT DEFAULT 0 COMMENT '更新时间', + `enabled` INT(1) DEFAULT '1' COMMENT '是否可见,0为不可见,1为可见', + `article_id` INT NOT NULL COMMENT '文章ID', + `user_id` INT NOT NULL COMMENT '浏览用户ID', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='浏览表'; + +DROP TABLE IF EXISTS `t_comment`; +CREATE TABLE `t_comment` ( + `id` INT NOT NULL AUTO_INCREMENT COMMENT '主键', + `create_time` BIGINT DEFAULT 0 COMMENT '添加时间', + `update_time` BIGINT DEFAULT 0 COMMENT '更新时间', + `enabled` INT(1) DEFAULT '1' COMMENT '是否可见,0为不可见,1为可见', + `article_id` INT NOT NULL COMMENT '文章ID', + `comment_content` varchar(255) DEFAULT NULL COMMENT '评价内容', + `user_id` INT NOT NULL COMMENT '用户ID', + `parent_comment_id` INT NOT NULL COMMENT ' 父评论ID', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='评价表'; + + +DROP TABLE IF EXISTS `t_sorts`; +CREATE TABLE `t_sorts` ( + `id` INT NOT NULL AUTO_INCREMENT COMMENT '主键', + `create_time` BIGINT DEFAULT 0 COMMENT '添加时间', + `update_time` BIGINT DEFAULT 0 COMMENT '更新时间', + `enabled` INT(1) DEFAULT '1' COMMENT '是否可见,0为不可见,1为可见', + `sorts_name` varchar(10) DEFAULT NULL COMMENT '分类名称', + `sorts_description` varchar(255) DEFAULT NULL COMMENT '分类描述', + `parent_sorts_id` INT NOT NULL COMMENT '分类父ID', + `article_id` INT NOT NULL COMMENT '文章ID', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='分类表'; + + + + + + diff --git "a/doc/\344\270\252\344\272\272\345\215\232\345\256\242\346\225\260\346\215\256\345\272\223\350\256\276\350\256\241.doc" "b/doc/\344\270\252\344\272\272\345\215\232\345\256\242\346\225\260\346\215\256\345\272\223\350\256\276\350\256\241.doc" new file mode 100644 index 0000000000000000000000000000000000000000..c9b59d349ed65a33dc714c8d00f0e8080c007a85 GIT binary patch literal 36864 zcmeI53v|@goyYIYQQV&iKsfaEeKa+V5dqIIh1jURJby zIvfs1b{fNKuj@t<_%mruY}8=_%k0MWWR`wNfj)2%q(U0>g?@kum;o>lE`~uc7>2;t zU?>cO;cy9zfJ@=)FcJbV3P!_a5QNKN3|s-}a3zd|t6&_AhY2tdLXZKI;A)r*Q(!7g zgG`tXS#S-^fNSA8m(DXJBWIq3X5qKvHRf5(_thaGy~<6|{j#)C^V1!jX;$8VK$?i)x&87ZoE_SBf$ zSg(wDZSz0fcs;UPomKj3(^DHe4=S;^M6`Z~DR$CO>PVnt>B;2$(RLDv_3ZyDTgw~I zztqWVNvl+xJ%*;E!yC`9dis3xFTWG2BXKAhlAUxSIjSzuaoK-c#6QEC8m#K0SF_?$u8<2_}<5VTu|Qs2jB9WtFCzdSE_Hfb3pBYj#mM$_8$IZJGCI& z-VL&ymqC7yfZC1Ypthp{WIvyQQwQeRY> zH7xI-?A}Q|5jm#w$SUoc+jn@lpK{0 zId`das6AO~@~OcBW&yQU8L22XrKX5hDT6bM5M;G+LcGv}TiN zt)@F`li5Fo)Q&f^@HK@a;|V>5V^atlB9;)pNo>!GN=JM8lia+&{MTRZo^VP3Z~ry= z8~4Y3IqXYpvF~;E)q?byn48f;q=IXi zCh1N2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0$H4Hyoad2w z+%;pfW;fPM%e-J}hJrpcsV5Hg!odj8hiASHBOw5zU^H9?*pj&%Fh1;5)?t`iO8PeD zDi{ajVFFA9$xin?H0~{VX#7iKAj+Svg_IBFA%xcq(3elH2E7441*XC@$OJF`9oIPV zHBmeDrTL2?+fkF(o8(JONc8#=9@^xjyVmi5pD;(|7BiWXre)J~ZFwy3X1U0ja7o(D0+B;)hQVcfXK)7^H8Y2%$ebxzT_2H%m%*qxni{ncvcQqEe*6o(~^%k}J= z7IaeFFVXAuCiuJw;R&XGbI=@=D&M~&)y@P~x&jCoP@o&Wj_ITb}Snf#4|GTkkuHRbCB-l~)ffK+vObDN=hQ__xA327p zL_|haa4RM<3ey;eDP);z%uMqQbD!C3eq`SC{@gn_FeET6aA{ynVCra3$Q$y75<@AW zi$ZCkexU)O!J)5(JYjD*Ih+zs4fhQX4_^`<8NN209bO*(MtDWIKJ1*j3;)v1GP9Yq z4-Je6_(Od{siD51{-HskAt68MyC%FW{G0HHF{jF({8Zu#X1DQtbD+w@m+uaK@#jW` zwRNt1?Yy!f+|OfztnWRG*XZD_KVIai^_WX3IzrCF&s}$ys=#zuW%fgG-R*s+oADD1 z2b71_4EXKL=ZB3e{Lf+kk@L{lwTn(n``ei_%QlVvhdW*={Lww~-&ikHYhAOOQO7g{ zv|*AORMB~fT%AbaTCLNm>}R|Uo7mak_%$h4!~?16XM7FPL_d?zknRLZY3R?grSqCT zPB`Ttk%RKD8gXFbevfiSt#`G#s6hqz6_3XZaH=K0ndy@_RQJw>Vo)|NF5D6RPHi}w L&0hBvlED81{~v0V literal 0 HcmV?d00001 diff --git "a/doc/\344\270\252\344\272\272\345\215\232\345\256\242\350\256\276\350\256\241.doc" "b/doc/\344\270\252\344\272\272\345\215\232\345\256\242\350\256\276\350\256\241.doc" new file mode 100644 index 0000000000000000000000000000000000000000..3c289f487e2b20b4d6c35b7c2de902809d407169 GIT binary patch literal 19968 zcmeHP4RloHnSSs5Wrob;ho2aJT1Ps@ltL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6aAm@=lN$%Rf4vlJ?IR2g6TnDFf*7PoDjSqsHiqI zP4%c=HA9_*vk4cfUsem%W$JP@qV~q$UrxwzZd3VEB^x1ou78T(9UK$%1~YorAot1(CO~z<+l$JuXJy+7Pv2yMI@nG5dqNMjxjRzG4|N4PTkXycD=cO-1=~`eL f&2.0.0 + + + + + mysql mysql-connector-java - 5.1.25 + 8.0.15 + org.springframework.boot spring-boot-starter-test diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index f84b6d3..823ab8a 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -6,12 +6,16 @@ spring: datasource: readSize: 1 type: com.alibaba.druid.pool.DruidDataSource - driver-class-name: com.mysql.jdbc.Driver + #mysql 8.0以下 +# driver-class-name: com.mysql.jdbc.Driver + #mysql 8.0以上 + driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://localhost:3306/btn username: root password: 123456 + ## 该配置节点为独立的节点,有容易将这个配置放在spring的节点下,导致配置无法被识别 #注意:一定要对应mapper映射xml文件的所在路径 mybatis: -- Gitee