Files
flask_example/app/models/__init__.py
T
2026-09-23 13:56:49 +08:00

9 lines
324 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""
模型统一导出模块
- Alembic(Flask-Migrate 底层)通过扫描此文件发现所有模型
- 新增模型后必须在此处添加 import,否则 `flask db migrate` 无法检测到新表
- __all__ 明确声明公开接口,避免意外导入内部模块
"""
from app.models.user import User
__all__ = ['User']