config_database.py 221 B

12345678910
  1. from pydantic_settings import BaseSettings
  2. class DatabaseConfig(BaseSettings):
  3. """数据库配置"""
  4. host: str = "localhost"
  5. port: int = 3306
  6. user: str = "root"
  7. password: str = ""
  8. name: str = ""