Open aminiun opened 4 months ago
# Model class User(SerializableModel, Base): __tablename__ = "user_account" id: Mapped[int] = mapped_column(primary_key=True) name: Mapped[str] = mapped_column(String(30))
API Response:
[{"id":1,"name":"a"},{"id":2,"name":"b"}]
# Model class User(SerializableModel, Base): __tablename__ = "user_account" serializable_fields = ( "name", ) id: Mapped[int] = mapped_column(primary_key=True) name: Mapped[str] = mapped_column(String(30))
[{"name":"a"},{"name":"b"}]
Sample 1:
API Response:
Sample 2:
API Response: