feat(database): 优化数据库模型和连接管理

- 添加cryptography依赖用于加密功能
- 重构数据库模型字段类型和约束
- 增加数据库自动创建功能
- 改进数据库连接管理和错误处理
- 更新相关依赖文件(pyproject.toml, requirements.txt)
This commit is contained in:
persist-1
2025-09-06 06:08:28 +08:00
parent 0965bd6c96
commit b04f5bcd6f
6 changed files with 392 additions and 241 deletions

View File

@@ -18,4 +18,8 @@ parsel==1.9.1
pyexecjs==1.5.1
pandas==2.2.3
aiosqlite==0.21.0
pyhumps==3.8.0
pyhumps==3.8.0
cryptography>=45.0.7
alembic>=1.16.5
asyncmy>=0.2.10
sqlalchemy>=2.0.43