From e6701e557ee632d5336293e65a04f8dc04a08e35 Mon Sep 17 00:00:00 2001 From: fanxb Date: Thu, 23 Sep 2021 17:06:33 +0800 Subject: [PATCH 1/2] =?UTF-8?q?docs:=E6=96=B0=E5=A2=9E=E5=85=AC=E5=91=8A?= =?UTF-8?q?=E8=A1=A8sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../db/migration/V19__新增公告表.sql | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 bookMarkService/web/src/main/resources/db/migration/V19__新增公告表.sql diff --git a/bookMarkService/web/src/main/resources/db/migration/V19__新增公告表.sql b/bookMarkService/web/src/main/resources/db/migration/V19__新增公告表.sql new file mode 100644 index 0000000..835f067 --- /dev/null +++ b/bookMarkService/web/src/main/resources/db/migration/V19__新增公告表.sql @@ -0,0 +1,35 @@ +-- 创建公告表 +create table notify_announce +( + notifyAnnounceId int auto_increment, + senderId int not null, + title varchar(200) not null, + content text null, + createdDate bigint(20) not null, + startDate bigint(20) not null comment '公告开始时间', + endDate bigint(20) not null comment '公告结束时间', + constraint notify_announce_pk + primary key (notifyAnnounceId) +) + comment '公告表'; + +create index notify_announce_created_date_index + on notify_announce (createdDate); + +-- 创建公告用户表 +create table user_notify_announce +( + userId int not null, + notifyAnnounceId int not null, + status tinyint default 0 null comment '0:未读,1:已读', + readDate bigint(20) null comment '阅读时间', + constraint user_announce_pk + primary key (userId, notifyAnnounceId) +) + comment '用户公告表'; +create index user_notify_announce_user_status_index + on user_notify_announce (userId, status); + +-- 用户表新增上次同步时间 +alter table user + add lastSyncAnnounceDate bigint(20) default 0 not null comment '上次同步公告时间'; \ No newline at end of file From 53a85db09c41e3ca3ff4e1ec2ed4c21d1de60ca4 Mon Sep 17 00:00:00 2001 From: fanxb Date: Sun, 17 Oct 2021 11:55:39 +0800 Subject: [PATCH 2/2] =?UTF-8?q?refactor:=E5=88=A0=E9=99=A4=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/package.json | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 front/package.json diff --git a/front/package.json b/front/package.json deleted file mode 100644 index f9d776b..0000000 --- a/front/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "bookmark-world", - "version": "0.1.0", - "private": true, - "dependencies": { - "antd": "^3.19.8", - "axios": "^0.21.1", - "babel-plugin-import": "^1.12.0", - "clipboard": "^2.0.4", - "css-loader": "^2.1.1", - "customize-cra": "^0.2.14", - "less": "^3.9.0", - "less-loader": "^5.0.0", - "query-string": "^6.8.1", - "react": "^16.8.6", - "react-app-rewired": "^2.1.3", - "react-dom": "^16.8.6", - "react-redux": "^7.1.0", - "react-router-dom": "^5.0.1", - "react-scripts": "3.0.1", - "redux": "^4.0.1" - }, - "scripts": { - "start": "react-app-rewired start", - "build": "react-app-rewired build", - "test": "react-app-rewired test", - "eject": "react-app-rewired eject" - }, - "eslintConfig": { - "extends": "react-app" - }, - "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 1 chrome version", - "last 1 firefox version", - "last 1 safari version" - ] - } -}