1
I am learning relational databases, so I decided to create a school administration system, I made a table only to keep all the student’s school history (all the newsletters with other information). In the table, each column of a newsletter is of the type JSON, these files will have a predefined format, I thought it would be a good use JSON but now I was left with a foot behind.
Finally, it is recommended IN MY CASE type JSON in the columns?
[Below is a part of the table as I imagine in Mysql]
'''
CREATE TABLE historico_esc_aluno (
boletim1SerieF1 JSON NOT NULL,
boletim2SerieF1 JSON NOT NULL,
boletim3SerieF1 JSON NOT NULL,
boletim4SerieF1 JSON NOT NULL,
boletim5SerieF2 JSON NOT NULL,
boletim6SerieF2 JSON NOT NULL,
boletim7SerieF2 JSON NOT NULL,
boletim8SerieF2 JSON NOT NULL,
boletim1SerieM1 JSON NOT NULL,
boletim2SerieM2 JSON NOT NULL,
boletim3SerieM3 JSON NOT NULL,
) DEFAULT charset = utf8;
'''
I thought about using Mongodb (to do the history only), but I saw a video that said it is not the best practice when you want to save information in the long term (data that cannot be lost).
Thanks for the help! I was distancing myself from the goal of learning relational databases.
– Ismael Silva Limq