2026.06.04 frontend építés közben

This commit is contained in:
Roo
2026-06-04 07:26:22 +00:00
parent 7adf6cc3e3
commit 59a30ac428
3302 changed files with 24091 additions and 1771 deletions

16
backend/check_db.py Normal file
View File

@@ -0,0 +1,16 @@
import asyncio
from sqlalchemy import select
from app.db.session import AsyncSessionLocal
from app.models.identity import User
from app.models.marketplace.organization import Organization
async def check():
async with AsyncSessionLocal() as db:
u = (await db.execute(select(User).limit(5))).scalars().all()
o = (await db.execute(select(Organization).limit(5))).scalars().all()
print(f"Users: {len(u)}")
print(f"Orgs: {len(o)}")
if u: print(u[0].id)
if o: print(o[0].id)
asyncio.run(check())