(self)
| 31 | __abstract__ = True |
| 32 | |
| 33 | def to_dict(self): |
| 34 | result = {c.name: getattr(self, c.name) for c in self.__table__.columns} |
| 35 | for k, v in result.items(): |
| 36 | if hasattr(v, "isoformat"): |
| 37 | result[k] = v.isoformat() |
| 38 | return result |
| 39 | |
| 40 | |
| 41 | class User(BaseModel): |
no outgoing calls
no test coverage detected