deduce automatically table fields