feat: 初始化项目
This commit is contained in:
20
.cursor/rules/database-module.mdc
Normal file
20
.cursor/rules/database-module.mdc
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
description:
|
||||
globs:
|
||||
alwaysApply: false
|
||||
---
|
||||
# 数据库模块 (Database Module)
|
||||
|
||||
数据库模块负责配置和管理与MySQL数据库的连接,使用Sequelize ORM。
|
||||
|
||||
## 主要文件
|
||||
- 模块定义: [src/database/database.module.ts](mdc:src/database/database.module.ts) - 配置Sequelize连接
|
||||
|
||||
## 使用说明
|
||||
- 该模块通过NestJS的ConfigService从环境变量获取数据库配置
|
||||
- 支持的环境变量:
|
||||
- DB_HOST: 数据库主机
|
||||
- DB_PORT: 数据库端口
|
||||
- DB_USERNAME: 数据库用户名
|
||||
- DB_PASSWORD: 数据库密码
|
||||
- DB_DATABASE: 数据库名称
|
||||
Reference in New Issue
Block a user