1 Star 0 Fork 0

halftion/event

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
java_cms.sql 2.97 KB
一键复制 编辑 原始数据 按行查看 历史
halftion 提交于 2019-12-13 22:33 . 数据库结构
/*
Navicat MySQL Data Transfer
Source Server : 本地数据库
Source Server Version : 80015
Source Host : localhost:3306
Source Database : java_cms
Target Server Type : MYSQL
Target Server Version : 80015
File Encoding : 65001
Date: 2019-12-13 22:32:18
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for messages
-- ----------------------------
DROP TABLE IF EXISTS `messages`;
CREATE TABLE `messages` (
`messageid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`likeNumber` int(11) NOT NULL DEFAULT '0',
`autherid` int(10) unsigned NOT NULL,
`title` varchar(255) DEFAULT NULL,
`content` text,
`creatTime` datetime DEFAULT NULL,
`headPic` varchar(255) DEFAULT NULL,
`auther` varchar(255) NOT NULL,
`digest` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '',
PRIMARY KEY (`messageid`),
KEY `userid` (`autherid`),
CONSTRAINT `userid` FOREIGN KEY (`autherid`) REFERENCES `users` (`userid`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for replys
-- ----------------------------
DROP TABLE IF EXISTS `replys`;
CREATE TABLE `replys` (
`replyId` int(255) unsigned NOT NULL AUTO_INCREMENT,
`isRead` int(255) unsigned NOT NULL DEFAULT '0',
`messageId` int(10) unsigned NOT NULL,
`replyTo` int(255) unsigned NOT NULL DEFAULT '0',
`autherId` int(11) DEFAULT NULL,
`autherName` varchar(255) DEFAULT NULL,
`autherHeadPic` varchar(255) DEFAULT NULL,
`replyToUserName` varchar(255) DEFAULT NULL,
`content` text,
`messageTitle` varchar(255) DEFAULT NULL,
`messageDigest` varchar(255) DEFAULT NULL,
`creatTime` datetime DEFAULT NULL,
`messageAuther` varchar(255) DEFAULT NULL,
`digest` varchar(255) DEFAULT NULL,
PRIMARY KEY (`replyId`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for users
-- ----------------------------
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`userid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`sexNumber` int(10) unsigned NOT NULL,
`age` int(11) NOT NULL,
`userName` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`password` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`headPic` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`signature` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`address` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`phoneNumber` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`introduction` text CHARACTER SET utf8 COLLATE utf8_general_ci,
`profession` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`coverPic` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`control` int(255) unsigned DEFAULT '1',
`state` int(255) unsigned DEFAULT '0',
PRIMARY KEY (`userid`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/halftion/event.git
[email protected]:halftion/event.git
halftion
event
event
master

搜索帮助