mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-10-02 16:37:57 +00:00
* WIP: add rbac authorization * Perform pre-commit fixes * add rbac route whitelist * add init test data user role associations * Restore database table id naming to fix generic crud base * Add database section value uniqueness settings * Update the test directory to tests * Update route_name file name to health_check * Split user auth and user action interfaces * Fix conflict between merge and current branch * Add pymysql dependencies * Fix RBAC authentication method * Add the select serialisation tool * Fix missing return messages due to global exception handler slicing * Update the user interface with associated relationships * Add items to be completed * Perform pre-commit fixes * Add pre-made routers * Paging data return structure optimisation * Split user auth and user interface tests * Fix user register test data structure error * Fix duplicate named test classes
14 lines
500 B
Python
14 lines
500 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
"""
|
|
# 导入所有模型,并将 Base 放在最前面, 以便 Base 拥有它们
|
|
# imported by Alembic
|
|
"""
|
|
from backend.app.database.base_class import MappedBase # F401
|
|
from backend.app.models.sys_api import Api
|
|
from backend.app.models.sys_casbin_rule import CasbinRule
|
|
from backend.app.models.sys_dept import Dept
|
|
from backend.app.models.sys_menu import Menu
|
|
from backend.app.models.sys_role import Role
|
|
from backend.app.models.sys_user import User
|