diff --git a/config.py b/config.py index 587d216..316c934 100644 --- a/config.py +++ b/config.py @@ -2,5 +2,11 @@ import pymongo client = pymongo.MongoClient("mongodb://localhost:27017") db = client["bank"] users_collection = db["users"] + + + + + + account_collection = db["accounts"] transaction_collection = db["transactions"] \ No newline at end of file diff --git a/models.py b/models.py index 635d561..2f03b65 100644 --- a/models.py +++ b/models.py @@ -12,6 +12,10 @@ class User: def __init__(self): self.created_at = get_current_time() + + + + def get_current_time(): return datetime.now(timezone.utc)