compra v5, constraints, pk fk , indices