The partitioning docs have this to say;
All columns used in the partitioning expression for a partitioned table must be part of every unique key that the table may have.
In other words, it will work as long as you're partitioning on customerid
, orderid
or both, otherwise your unique key is invalid.