refactoring
This commit is contained in:
0
app/db/__init__.py
Normal file
0
app/db/__init__.py
Normal file
8
app/db/database.py
Normal file
8
app/db/database.py
Normal file
@ -0,0 +1,8 @@
|
||||
from motor.motor_asyncio import AsyncIOMotorClient
|
||||
from app.core.config import MONGO_URI
|
||||
|
||||
client = AsyncIOMotorClient(MONGO_URI)
|
||||
db = client["minecraft_auth"]
|
||||
|
||||
users_collection = db["users"]
|
||||
sessions_collection = db["sessions"]
|
Reference in New Issue
Block a user