mardi 5 janvier 2016

Logical Approach to tackling Database Structure (Django)

I need a bit of help on how to tackle this database structure. I have two models with similar fields (shown below).

Database Models Structure:

  • Teacher - Name, Salary, Modules, Address, Postcode, Email & Phone
  • Student - Name, Year, Address, Postcode, Email & Phone

Now my question is if I should keep the models same or should I move the similar fields to their own entities?

Aucun commentaire:

Enregistrer un commentaire