Sistema limpio
This commit is contained in:
14
check_user.py
Normal file
14
check_user.py
Normal file
@@ -0,0 +1,14 @@
|
||||
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())
|
||||
Reference in New Issue
Block a user