Update schema.sql

This commit is contained in:
LuChenQun 2020-04-17 08:09:41 +08:00 committed by GitHub
parent 70f166de70
commit fec9ecf03f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -69,7 +69,7 @@ CREATE TABLE `hot_bookmarks` (
`createdAt` datetime DEFAULT now(), -- 创建时间(updatetime)
`lastClick` datetime DEFAULT now(), -- 最后一次点击时间(createtime)
`snap` varchar(1024) DEFAULT NULL, -- 截图链接(imageList[0])
`icon` varchar(1024) DEFAULT NULL -- icon链接(sourceLogo)
`icon` varchar(1024) DEFAULT NULL, -- icon链接(sourceLogo)
PRIMARY KEY (`id`)
);
@ -77,10 +77,10 @@ CREATE TABLE `hot_bookmarks` (
drop table if exists notes;
CREATE TABLE `notes` (
`id` int(11) NOT NULL AUTO_INCREMENT, -- id
`userId` int(11) NOT NULL, -- 用户id
`userId` int(11) NOT NULL, -- 用户id
`content` text NOT NULL, -- 备忘内容
`tagId` int(11) NOT NULL, -- 分类id
`createdAt` datetime DEFAULT now(), -- 创建时间
`tagId` int(11) NOT NULL, -- 分类id
`createdAt` datetime DEFAULT now(), -- 创建时间
`public` tinyint(4) DEFAULT '0', -- 是否公开 1 公开0 不公开
PRIMARY KEY (`id`)
);