# database.py
from pymongo import MongoClient

MONGO_URI = "mongodb://localhost:27017/"
DB_NAME = "ecommerce_db_clone"

client = MongoClient(MONGO_URI)
db = client[DB_NAME]

users_collection = db["users"]
categories_collection = db["categories"]
products_collection = db["products"]
transactions_collection = db["transactions"]
tickets_collection = db["tickets"]
orders_collection = db["orders"]
import_logs_collection = db["import_logs"]
blogs_collection = db["blogs"]
tier_settings_collection = db["tier_settings"]

access_tokens = db["access_tokens"]