Hi, I'm designing a new DataBase that at the moment has 50 Tables. For many of that tables I have to eventually store a "note" for every column of every tuple.
For now I found only 2 solutions:
For each column of tables that needs note add a "column note" so for example:
create table tab (id integer, A varchar(100), B varchar(200))
will become:
create table tab (id integer, A varchar(100), A_note varchar(300), B varchar(200), B_note varchar(300))
Add a table Note that store the notes... like that:
create table notes (id integer, table_name varchar(100), reference_id integer, reference_column varchar(100), note varchar(300)
Do you can suggest me other ways? If you are interested I'm using HsqlDB.