sql for mysql version of the table struct