I am building a wrapper around an API, and as such I want to hold information that the API itself holds (I want any updated api information to be held on my server as well). This being the case, I need to build models that anticipate the data I will be receiving.
So I started building these models. Let us assume they look like this:
class ModelForAPI(models.model):
#model fields here
Now this data is going to steadily be collected and updated accordingly when it is needed to. Let's then assume that in addition to the models ive built to hold the api data, I have more data that is related but that is relevant on my server only. The question becomes: how is the best way to "extend" this data?
I feel that there a few possible options, either I extend the api model like such:
class Model(models.Model):
api_information = ForeignKey(ModelForAPI)
Or I subclass it like such:
class Model(ModelForAPI):
#model fields here
Since I am dealing with API information that is going to be updated frequently with new information, I am not sure which would make my life easier in terms of model architecture. Any pointers would be much appreciated.