A table stores teachers data. Each teacher has a degree: specialist, master, doctor, postdoctor and others.
Another table present in the database is posts . Each publication can (or does not) have a certain type: book, periodical, event, tcc and others.
It is true that in each table there will be a column (attribute) to keep the type of the given record.
Below are two suggestions for the value of these attributes:
abbreviations (strings)
teacher.type = 'month' || teacher.type = 'dr' || teacher.type = 'esp'
publication.tipo = 'liv' || Publication Type = 'tcc' || publication.type = 'evt'
integers
teacher.type = 1 || teacher.type = 2 || teacher.type = 3
publication.tipo = 1 || Publication Type = 2 || publication.type = 3
My question is: Is there a convention for these attributes or is it the responsibility of the project developer (s)?