You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
TORTOISE_ORM = {
|
|
|
|
|
# "connections": {"default": "mysql://root:123456@127.0.0.1:3306/shceduler?charset=utf8mb4"}, # MySQL
|
|
|
|
|
# "connections": {"default": "sqlite://db.sqlite3"}, # sqlite
|
|
|
|
|
"connections": {"default": "mysql://root:123456@127.0.0.1:3306/agv?charset=utf8mb4"}, # MySQL
|
|
|
|
|
"apps": {
|
|
|
|
|
# 模型分组名字,当需要使用此app下的模型的时候,需使用 此名字.模型名称
|
|
|
|
|
"models": {
|
|
|
|
|
# 须添加"aerich.models", 此时,会在数据库中生成一个名为aerich的表用于存模型信息,以便以后做脚本迁移
|
|
|
|
|
"models": ["aerich.models", "models"], # 模型所在的py文件
|
|
|
|
|
"default_connection": "default"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|