try to use Enum to definition of table columns

try to use Enum to definition of table columns