import time
import os
from typing import Optional

from sqlalchemy.exc import OperationalError
from sqlalchemy.engine import URL
from sqlmodel import Field, Session, SQLModel, create_engine, select

from loguru import logger


class Hero(SQLModel, table=True):
    id: Optional[int] = 