Fix SQLAlchemy unmapped annotation error

This commit is contained in:
TronoSfera 2026-01-19 11:17:28 +03:00
parent b2a3b895ba
commit e68920550d

View file

@ -35,10 +35,11 @@ from sqlalchemy import (
Text, Text,
func, func,
) )
from sqlalchemy.orm import declarative_base, relationship from sqlalchemy.orm import DeclarativeBase, relationship
Base = declarative_base() class Base(DeclarativeBase):
__allow_unmapped__ = True
class User(Base): class User(Base):