初始版本

This commit is contained in:
z66
2025-12-26 13:42:22 +08:00
parent ddb90d6c20
commit b495bc1dca
43 changed files with 2179 additions and 20 deletions
+21
View File
@@ -0,0 +1,21 @@
# 初始数据模块
此目录用于存放数据库初始化时的示例数据脚本。
## 使用说明
在数据库初始化后,可以运行此模块中的脚本来插入示例数据,方便开发和测试。
## 示例
```python
from app.db.session import SessionLocal
from app.models.user import User
from app.core.security import get_password_hash
def init_data():
db = SessionLocal()
# 创建示例用户等
...
```
+5
View File
@@ -0,0 +1,5 @@
"""
初始数据模块
用于数据库初始化时插入示例数据
"""