From 41169d155f025c78a68889d36b3cc4ebb07a99cf Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Mon, 8 Jul 2024 21:35:32 +0100 Subject: Move existing models to schemas namespace This is to make room for a new ORM namespace for SQLAlchemy models --- backend/authentication/user.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'backend/authentication/user.py') diff --git a/backend/authentication/user.py b/backend/authentication/user.py index 5e99546..6ad4c63 100644 --- a/backend/authentication/user.py +++ b/backend/authentication/user.py @@ -4,8 +4,9 @@ import jwt from pymongo.database import Database from starlette.authentication import BaseUser -from backend import discord, models +from backend import discord from backend.constants import SECRET_KEY +from backend.models import dtos class User(BaseUser): @@ -15,7 +16,7 @@ class User(BaseUser): self, token: str, payload: dict[str, t.Any], - member: models.DiscordMember | None, + member: dtos.DiscordMember | None, ) -> None: self.token = token self.payload = payload -- cgit v1.2.3