Open
Description
Environment
- DiffSync version: latest
Proposed Functionality
Allow for models to have a model of their own type as children.
Use Case
When modelling locations for example, a location of type country might have locations of type city as its children. Example (assuming #222 is implemented):
class Location(DiffSyncModel):
_modelname = "location"
_identifiers = ("name", "location_type", "$parent")
_children = {"location": "location_children"}
name: str
location_type: str
location_children: List['Location'] = []