/*
Navicat Premium Data Transfer
Source Server : blog
Source Server Type : MySQL
Source Server Version : 50718
Source Host : cdb-bofjolwg.cd.tencentcdb.com:10073
Source Schema : blog
Target Server Type : MySQL
Target Server Version : 50718
File Encoding : 65001
Date: 22/04/2020 21:04:37
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for article
-- ----------------------------
DROP TABLE IF EXISTS `article`;
CREATE TABLE `article` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(10) NOT NULL,
`title` char(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
`abstract` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL,
`abstractImageSrc` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL,
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`cid` int(11) NOT NULL,
`state` int(1) NOT NULL COMMENT '1發(fā)布2草稿3刪除',
`hits` int(7) NOT NULL DEFAULT 0 COMMENT '閱讀次數(shù)',
`createdtime` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
`updatetime` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0),
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 39 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for category
-- ----------------------------
DROP TABLE IF EXISTS `category`;
CREATE TABLE `category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`name` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
`createtime` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
`updatetime` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新時(shí)間',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 45 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for collect
-- ----------------------------
DROP TABLE IF EXISTS `collect`;
CREATE TABLE `collect` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`aid` int(11) NOT NULL,
`status` int(11) NOT NULL,
`createTime` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
`updateTime` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新時(shí)間',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 17 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for comment
-- ----------------------------
DROP TABLE IF EXISTS `comment`;
CREATE TABLE `comment` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`aid` int(11) NOT NULL COMMENT '綁定文章ID',
`uid` int(11) NOT NULL COMMENT '綁定用戶ID',
`content` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
`createtime` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 36 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for follow
-- ----------------------------
DROP TABLE IF EXISTS `follow`;
CREATE TABLE `follow` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`follow_id` int(11) NOT NULL,
`createtime` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
`status` int(1) NOT NULL,
`updateTime` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新時(shí)間',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for love
-- ----------------------------
DROP TABLE IF EXISTS `love`;
CREATE TABLE `love` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`loveid` int(11) NOT NULL COMMENT '對(duì)應(yīng)的作品或評(píng)論的id',
`type` int(11) NOT NULL COMMENT '點(diǎn)贊類型 1作品點(diǎn)贊 2 評(píng)論點(diǎn)贊',
`status` int(1) NOT NULL COMMENT '無(wú)狀態(tài)0點(diǎn)贊1點(diǎn)砸2',
`uid` int(11) NOT NULL COMMENT '用戶id',
`createtime` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for reply
-- ----------------------------
DROP TABLE IF EXISTS `reply`;
CREATE TABLE `reply` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`cid` int(11) NOT NULL COMMENT '綁定評(píng)論ID',
`reply_id` int(11) NOT NULL COMMENT '回復(fù)目標(biāo)ID',
`content` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
`from_userid` int(11) NOT NULL COMMENT '回復(fù)用戶id',
`to_userid` int(11) NOT NULL COMMENT '目標(biāo)用戶id',
`createtime` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 19 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(5) NOT NULL AUTO_INCREMENT,
`username` char(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT '佚名',
`profileSrc` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT 'https://b-gold-cdn.xitu.io/v3/static/img/default-avatar.e30559a.svg',
`personalResume` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL,
`gender` int(1) NOT NULL DEFAULT 0 COMMENT '女性0男性1保密3',
`email` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
`password` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
`createdtime` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
`updateTime` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP(0),
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1;
數(shù)據(jù)庫(kù)數(shù)據(jù)
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
- 文/潘曉璐 我一進(jìn)店門荐糜,熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái)巷怜,“玉大人,你說(shuō)我怎么就攤上這事暴氏⊙铀埽” “怎么了?”我有些...
- 文/不壞的土叔 我叫張陵答渔,是天一觀的道長(zhǎng)关带。 經(jīng)常有香客問(wèn)我,道長(zhǎng)沼撕,這世上最難降的妖魔是什么宋雏? 我笑而不...
- 正文 為了忘掉前任,我火速辦了婚禮务豺,結(jié)果婚禮上磨总,老公的妹妹穿的比我還像新娘。我一直安慰自己笼沥,他們只是感情好蚪燕,可當(dāng)我...
- 文/花漫 我一把揭開(kāi)白布娶牌。 她就那樣靜靜地躺著,像睡著了一般馆纳。 火紅的嫁衣襯著肌膚如雪诗良。 梳的紋絲不亂的頭發(fā)上,一...
- 那天厕诡,我揣著相機(jī)與錄音累榜,去河邊找鬼。 笑死灵嫌,一個(gè)胖子當(dāng)著我的面吹牛壹罚,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播寿羞,決...
- 文/蒼蘭香墨 我猛地睜開(kāi)眼猖凛,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼!你這毒婦竟也來(lái)了绪穆?” 一聲冷哼從身側(cè)響起辨泳,我...
- 序言:老撾萬(wàn)榮一對(duì)情侶失蹤,失蹤者是張志新(化名)和其女友劉穎玖院,沒(méi)想到半個(gè)月后菠红,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
- 正文 獨(dú)居荒郊野嶺守林人離奇死亡难菌,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
- 正文 我和宋清朗相戀三年试溯,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片郊酒。...
- 正文 年R本政府宣布褐健,位于F島的核電站付鹿,受9級(jí)特大地震影響,放射性物質(zhì)發(fā)生泄漏蚜迅。R本人自食惡果不足惜舵匾,卻給世界環(huán)境...
- 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望慢叨。 院中可真熱鬧纽匙,春花似錦务蝠、人聲如沸拍谐。這莊子的主人今日做“春日...
- 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)轩拨。三九已至践瓷,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間亡蓉,已是汗流浹背晕翠。 一陣腳步聲響...
- 正文 我出身青樓,卻偏偏與公主長(zhǎng)得像爸邢,于是被迫代替她去往敵國(guó)和親樊卓。 傳聞我的和親對(duì)象是個(gè)殘疾皇子,可洞房花燭夜當(dāng)晚...
推薦閱讀更多精彩內(nèi)容
- 對(duì)于一個(gè)國(guó)家來(lái)說(shuō)待诅,數(shù)據(jù)庫(kù)的建設(shè)規(guī)模叹坦、數(shù)據(jù)庫(kù)信息量的大小和使用頻率已經(jīng)成為衡量這個(gè)國(guó)家信息化程度的重要標(biāo)志。 一咱士、數(shù)...
- 快到期末了道盏,現(xiàn)在也要開(kāi)始復(fù)習(xí)數(shù)據(jù)庫(kù)了。文捶。荷逞。。粹排。种远。數(shù)據(jù)、數(shù)據(jù)庫(kù)顽耳、數(shù)據(jù)庫(kù)管理系統(tǒng)坠敷、數(shù)據(jù)庫(kù)系統(tǒng)這4個(gè)是數(shù)據(jù)庫(kù)的基本概念妙同,...
- 第01章 緒論一限次、選擇題1芒涡、應(yīng)用數(shù)據(jù)庫(kù)的主要目的是(C)A、解決保密的問(wèn)題 B卖漫、解決數(shù)據(jù)量大的問(wèn)題C费尽、...
- 親愛(ài)的兒子: 今天早上你5點(diǎn)多起床鸯两,來(lái)敲我們的房門闷旧,提醒我起來(lái)和你一起去買菜,采購(gòu)食材钧唐,做你念叨很久的咖喱土豆年糕...