import uuid
from logging import getLogger
from typing import Optional

from fastapi import UploadFile
from sqlmodel import select, Session

from .models import User

logger = getLogger("uvicorn.error")


def get_user(username: str, session: Session) -> Optional[User]:
    statement = 