Models for contingency tables specified by linear contraints on two types of odds ratios