Fixed the Git model
- added back object relation
- added a few missing constraints