15 lines
425 B
Python
15 lines
425 B
Python
import asyncio
|
|
from app.core.database import AsyncSessionLocal
|
|
from app.models.user import User
|
|
from sqlalchemy import select
|
|
import uuid
|
|
|
|
async def check():
|
|
async with AsyncSessionLocal() as db:
|
|
result = await db.execute(select(User))
|
|
users = result.scalars().all()
|
|
for u in users:
|
|
print(f"ID: {u.id} | Email: {u.email} | Tenant: {u.tenant_id} | Rol: {u.role}")
|
|
|
|
asyncio.run(check())
|