hi,
i've use, severals years ago, meta-data on tables.
It was a oracle oci8 but i think the mysql provide quite the same service.
For each table you've got a meta-table which can indicate all you need on the table.
i hope this will help you
good luck