TORTOISE_ORM = { "connections": { "default": { "engine": "tortoise.backends.mysql", "credentials": { "host": "8.137.37.202", "port": 3306, "user": "gitnexus", "password": "Yx3ud937", "database": "gitnexus", "minsize": 3, # 最小连接数 "maxsize": 20, # 最大连接数 "charset": "utf8mb4" } } }, "apps": { "models": { "models": ["models.gitModels"], # 包含模型文件 "default_connection": "default" } }, "use_tz": False, "timezone": "Asia/Shanghai" }