How can documents be linked?

Documents can be linked to models or objects in two ways:

Using the attributes of a model or object

Directly using the Documents tab