1 parent 6654e2e commit e9d1605Copy full SHA for e9d1605
1 file changed
app/dao/database.py
@@ -31,7 +31,7 @@ class Base(AsyncAttrs, DeclarativeBase):
31
TIMESTAMP, server_default=func.now(), onupdate=func.now()
32
)
33
34
- @declared_attr
+ @declared_attr.directive
35
def __tablename__(cls) -> str:
36
return cls.__name__.lower() + "s"
37
0 commit comments