/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

DROP DATABASE IF EXISTS `xiaohh_vue`;
CREATE DATABASE `xiaohh_vue` CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_unicode_ci';
USE `xiaohh_vue`;

/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `vue_notice` (
  `notice_id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '消息ID',
  `notice_title` varchar(256) NOT NULL COMMENT '通知标题',
  `notice_content` varchar(1024) NOT NULL COMMENT '通知内容',
  `notice_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '通知发送时间',
  PRIMARY KEY (`notice_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='通知消息表';
/*!40101 SET character_set_client = @saved_cs_client */;

LOCK TABLES `vue_notice` WRITE;
/*!40000 ALTER TABLE `vue_notice` DISABLE KEYS */;
INSERT INTO `vue_notice` VALUES (1,'重磅消息','就是不告诉你',SYSDATE()),(2,'重磅消息2','就是不告诉你2',SYSDATE()),(3,'重磅消息3','就是不告诉你3',SYSDATE()),(4,'重磅消息4','就是不告诉你4',SYSDATE());
/*!40000 ALTER TABLE `vue_notice` ENABLE KEYS */;
UNLOCK TABLES;

/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `vue_user` (
  `user_id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '用户ID',
  `username` varchar(128) NOT NULL COMMENT '用户名',
  `birthday` date DEFAULT NULL COMMENT '生日',
  `gender` tinyint unsigned NOT NULL DEFAULT '3' COMMENT '性别；1=男,2=女,3=保密',
  `introduce` varchar(1024) NOT NULL DEFAULT '' COMMENT '自我介绍',
  PRIMARY KEY (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='用户表';
/*!40101 SET character_set_client = @saved_cs_client */;

LOCK TABLES `vue_user` WRITE;
/*!40000 ALTER TABLE `vue_user` DISABLE KEYS */;
INSERT INTO `vue_user` VALUES (1,'XiaoHH','2000-02-10',1,'最帅的一个帅小伙'),(2,'DaHH','1998-02-10',1,'第二帅的一个帅小伙'),(3,'Luna','2002-02-10',2,'非常漂亮的一个小姑凉');
/*!40000 ALTER TABLE `vue_user` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
