3 ms·
I'm actually using table inheritance at the moment for a project and it works quite well. I use the table inheritance to manage common fields in the database m
by zaarn 8y ago
I'm actually using table inheritance at the moment for a project and it works quite well.
I use the table inheritance to manage common fields in the database more easily instead of having to define a separate table and reference it
For example the base model, which includes fields for external objects the row might reference and certain option fields or a ratings table that allows an object to include all the necessary fields for rating a product. This way I can also copy a lot of code since the structs on the other side also can share a lot of code and data.