Skip to content

Commit

Permalink
add user module account module
Browse files Browse the repository at this point in the history
  • Loading branch information
niziming committed Jul 7, 2022
1 parent 7c2a998 commit a8f6f82
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
- knife4j
- mybatis-plus
- SpringBoot
- sql path:
- trip-web-server/trip-web-api/src/main/resources/trip_web-202207071144.sql


## 2019年春
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ DROP TABLE IF EXISTS `base_user`;
CREATE TABLE `base_user` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
`name` varchar(32) DEFAULT NULL COMMENT '名称',
`avatar` varchar(800) DEFAULT NULL COMMENT '头像',
`avatar` varchar(800) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '头像',
`intro` text COMMENT '简介',
`phone` int(11) DEFAULT NULL COMMENT '电话号码',
PRIMARY KEY (`id`)
Expand All @@ -59,6 +59,7 @@ CREATE TABLE `bus_comments` (
`parent_id` bigint(20) DEFAULT NULL COMMENT '父评论id',
`content` text COMMENT '内容',
`like` int(11) DEFAULT NULL COMMENT '点赞',
`datetime` datetime DEFAULT NULL COMMENT '评论时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='业务评论表';
/*!40101 SET character_set_client = @saved_cs_client */;
Expand Down Expand Up @@ -93,9 +94,45 @@ CREATE TABLE `rela_user_comments` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='关联用户评论表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Temporary view structure for view `view_user_account`
--

DROP TABLE IF EXISTS `view_user_account`;
/*!50001 DROP VIEW IF EXISTS `view_user_account`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8mb4;
/*!50001 CREATE VIEW `view_user_account` AS SELECT
1 AS `id`,
1 AS `name`,
1 AS `avatar`,
1 AS `phone`,
1 AS `intro`,
1 AS `username`,
1 AS `password`*/;
SET character_set_client = @saved_cs_client;

--
-- Dumping routines for database 'trip_web'
--

--
-- Final view structure for view `view_user_account`
--

/*!50001 DROP VIEW IF EXISTS `view_user_account`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
/*!50001 SET @saved_col_connection = @@collation_connection */;
/*!50001 SET character_set_client = utf8mb4 */;
/*!50001 SET character_set_results = utf8mb4 */;
/*!50001 SET collation_connection = utf8mb4_0900_ai_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `view_user_account` AS select `rua`.`id` AS `id`,`bu`.`name` AS `name`,`bu`.`avatar` AS `avatar`,`bu`.`phone` AS `phone`,`bu`.`intro` AS `intro`,`ba`.`username` AS `username`,`ba`.`password` AS `password` from ((`base_user` `bu` join `rela_user_account` `rua` on((`bu`.`id` = `rua`.`user_id`))) join `base_account` `ba` on((`ba`.`id` = `rua`.`account_id`))) */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
Expand All @@ -106,4 +143,4 @@ CREATE TABLE `rela_user_comments` (
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2022-07-07 9:28:32
-- Dump completed on 2022-07-07 11:44:17

0 comments on commit a8f6f82

Please sign in to comment.