Completed ORM mapping of contratti tables.