open-zaak / open-zaak

Open Zaak is a modern, open-source data- and services-layer to enable zaakgericht werken, a Dutch approach to case management.
Other
38 stars 36 forks source link

As developer, I want to have FK-relations between core resources #5

Closed joeribekker closed 5 years ago

joeribekker commented 5 years ago

... so I can rely on a consistent data structure.

Description Currently, relations are on API-level using URLs to relate one object to another. For local API URLs (ie. those that point to an API that is part of OpenZaak), we should store the relationship on database level.

Hugo-ter-Doest commented 5 years ago

I think " we should store the relationship on database level" should be "we should store the relationship both as a URL and as a database relation (FK)".

sergei-maertens commented 5 years ago

URLs are generated from database values, there's no reason to store the URL as well if it's a local resource.

sergei-maertens commented 5 years ago

@annashamray I think we've got everything as FK now, right?

annashamray commented 5 years ago

Yes, I think all components have DB-relations now.

sergei-maertens commented 5 years ago

Cool, closing this one, it'll be finalized when #60 is merged.