完善相关介绍,添加数据库文件

This commit is contained in:
柏码の讲师 2023-08-07 00:05:48 +08:00
parent 4a88d2337e
commit 1401117edf
2 changed files with 48 additions and 0 deletions

View File

@ -18,3 +18,9 @@
* 项目整体结构清晰,职责明确,注释全面,开箱即用
### 前端功能与技术点
用户注册、用户登录、重置密码等界面,以及一个简易的主页
* 采用Vue-Router作为路由
* 采用Axios作为异步请求框架
* 采用Element-Plus作为UI组件库
* 使用VueUse适配深色模式切换
* 使用unplugin-auto-import按需引入减少打包后体积

42
database.sql Normal file
View File

@ -0,0 +1,42 @@
/*
Navicat MySQL Data Transfer
Source Server :
Source Server Type : MySQL
Source Server Version : 80034 (8.0.34)
Source Host : localhost:3306
Source Schema : test
Target Server Type : MySQL
Target Server Version : 80034 (8.0.34)
File Encoding : 65001
Date: 07/08/2023 00:03:19
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for db_account
-- ----------------------------
DROP TABLE IF EXISTS `db_account`;
CREATE TABLE `db_account` (
`id` int NOT NULL AUTO_INCREMENT,
`username` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`password` varchar(255) DEFAULT NULL,
`role` varchar(255) DEFAULT NULL,
`register_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_email` (`email`),
UNIQUE KEY `unique_username` (`username`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Records of db_account
-- ----------------------------
BEGIN;
COMMIT;
SET FOREIGN_KEY_CHECKS = 1;