# community **Repository Path**: LiuTianyong/community ## Basic Information - **Project Name**: community - **Description**: MMNS community - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-02-21 - **Last Updated**: 2020-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # spring boot开始了 加油加油加油 # 脚本 ## 创建user表 ```sql CREATE TABLE `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `account_id` varchar(100) DEFAULT NULL, `name` varchar(50) DEFAULT NULL, `token` varchar(36) DEFAULT NULL, `gmt_create` bigint(255) DEFAULT NULL, `gmt_modified` bigint(255) DEFAULT NULL, `bio` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 ``` ## 创建Question表 ```sql CREATE TABLE `question` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(50) DEFAULT NULL, `description` text, `gmt_create` bigint(255) DEFAULT NULL, `gmt_modified` bigint(255) DEFAULT NULL, `creator` int(255) DEFAULT NULL, `comment_count` int(255) DEFAULT '0', `view_count` int(255) DEFAULT '0', `like_count` int(255) DEFAULT '0', `tag` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 ``` ```sql mvn flyway:migrate mvn -Dmybatis.generator.overwrite=true mybatis-generator:generate ```