import app.models.db_base from app.core.database.db_session import SessionLocal from app.services.InventoryPosService import InventoryPosService db = SessionLocal() svc = InventoryPosService(db) terms = svc.list_terminals(None) for t in terms: print(t.terminal_id, t.code, t.name)