rename table and add enum type to entity