Your linked fields
document.AuthorId are not defined the same way.
From the docs:
Corresponding columns in the foreign key and the referenced key must have similar data types. The size and sign of integer types must be the same. The length of string types need not be the same.
So make them both varchar(10) NOT NULL - or whatever you need.