forked from onlytiancai/datui
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit.sql
More file actions
22 lines (21 loc) · 757 Bytes
/
init.sql
File metadata and controls
22 lines (21 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CREATE TABLE IF NOT EXISTS `Liwu_Items` (
`ItemId` bigint(20) NOT NULL,
`UserSinaUserId` bigint(20) NOT NULL,
`Text` varchar(512) NOT NULL,
`SinaUserName` varchar(64) NOT NULL,
`CreateTime` datetime NOT NULL,
`ThumbnailPic` varchar(512) NOT NULL,
`BmiddlePic` varchar(512) NOT NULL,
`OriginalPc` varchar(512) NOT NULL,
`UserHeaderPic` varchar(512) NOT NULL,
`Hits` int(11) NOT NULL,
`Sell` tinyint(1) NOT NULL,
`Recommend` tinyint(1) NOT NULL,
UNIQUE KEY `ItemId` (`ItemId`),
KEY `CreateTime` (`CreateTime`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `Liwu_Likes` (
`SinaUserId` bigint(20) NOT NULL,
`ItemId` bigint(20) NOT NULL,
KEY `SinaUserId` (`SinaUserId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;