impr: add ReprHelper for models

This commit is contained in:
2023-08-26 22:11:26 +08:00
parent 8f30906e1b
commit 511b9f72c0
5 changed files with 55 additions and 18 deletions

View File

@ -3,6 +3,8 @@ from typing import Optional
from sqlalchemy import TEXT, ForeignKey
from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column
from .common import ReprHelper
__all__ = [
"SongsBase",
"Pack",
@ -15,7 +17,7 @@ __all__ = [
]
class SongsBase(DeclarativeBase):
class SongsBase(DeclarativeBase, ReprHelper):
pass