hospitalityclub / hc-django

Hospitality Club 4.0 Open Source in Django
GNU General Public License v3.0
8 stars 1 forks source link

Core App and Data model #3

Open infohata opened 5 years ago

infohata commented 5 years ago

We have an old data model consisting of 7 tables, which we can relate to the following object groups:

Geographical Objects

Connecting People

That is all it is and that is more than fine for the old system. It was functioning fast due to little joins and so on. However, the naming convention of the fields is not existing, and indexes could be improved. In python, we have a convention to write data structures and code which would be humanly readable independently from which part of the code you start to read it.

I will suggest the new data structure and implement it into hc-core Django app. It will be, in fact, the main app of the project and will be most likely the dependency to everything. However, I suggest not to make an elephant out of it and implement every function to it's own app.

We'll see how it goes. It's a start

infohata commented 5 years ago

Implemented into hc-3-core-app-data-model with these changes: