I have the following database model in 4 tables. The first, "person", with the following elements: id, name, surname, ID, email. The second, called "user", with id, id_person, id_department, id_sede, name, password, type. The third, called "headquarters", with id and name and the last one, called "department", with id, id_sede and name.
What would be the way to do it well, if I'm doing it wrong? I start to do the design, but I'm not very good as you see.
My doubt as such is that if doing so would take me less time to make a code to effectively search the data you enter it.