Adding assignment controller and gorm object