create enum with fields