79445580

Date: 2025-02-17 13:48:59
Score: 1
Natty:
Report link

Below seems to work but I'm new to SQLAlchemy, so I don't know what kind of problems this will cause:

class Base(DeclarativeBase, MappedAsDataclass):

    @classmethod
    def __init_subclass__(cls, **kwargs):
        cls.__tablename__ = cls.__name__.lower()
        super().__init_subclass__(**kwargs)

Atleast you don't need to create with functions

Reasons:
  • RegEx Blacklisted phrase (1.5): I'm new
  • Has code block (-0.5):
Posted by: Inyoung Kim 김인영