Skip to content

Use inheritance to define data models #89

@chriscarrollsmith

Description

@chriscarrollsmith

SQLModel best practice is to define a base model that your table model can inherit from, and then you can also have Create and Read models that inherit from it as well. https://sqlmodel.tiangolo.com/tutorial/fastapi/multiple-models/#multiple-models-with-inheritance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions