5
I created the following modeling:
Would you like to know what can be improved? leading in good practice considerations for database?
Explanation:
In the TBLogin
a person will create a login, which may be PessoaFisica
or PessoaJuridica
. Note: In this case a PessoaJuridica
= Empresa
In the TBPessoas
I put the fields that are common to both types of people.
TBEndereco
TBCidades
TBEstados
are for storing the location.
TBVagas
related to the TBPessoaJuridica
(Company). It would be the vacancies that this person/company would register to disclose.
TBCurriculos
All PessoaFisica
may have only one curriculum. The curriculum consists of TBIdiomas
that in the case would be the languages that the person speaks, there may be + 1.
TBEmpregos
It’s a work history of where the person has worked.
TBFormacoes
They are the formations that a person has. (College/Faculty/Courses)
TBTiposFormacoes
are the types of training. Ex: (graduate / post-graduate / master / doctorate / high school / etc)
OBS: I’m not very good with modeling, I have little knowledge of relationships of tables and stuff.
Marginal to your question, but following the bigown’s hint about diagram organization: look for aggregated root, which is a concept that addresses the determination of the 'main' branches'. More geared to when implementing the business rules that will manipulate your data, but obviously helps to organize the diagram.
– RSinohara
I updated the schematic. and tried to explain more or less how it works.
– MeuChapeu
In practice, the simpler the better. Both to understand the dynamics and to bring the relationships of the data. always try to adopt the idea that all MER can always be improved, and that in the future, it should be able to be expanded, so be as abstract as possible, never create unnecessary tables just for the purpose of expanding your architecture, be objective. In general, you can improve... Dry as much as you can. You want to know how to improve, start by making a use case first...
– Ivan Ferrer