automatic generate table fields