Unique together behavior for custom doctype

Hello

is there any way to set some sort of Unique property for a doctype using two fields

I’m working with frappe and a custom app:
Doctype: Custom Rate
Fields: Customer and Product, both are Link Field

Its possible to Customer and Product acts are unique Together

So, Only one row can be created for certain customer and certain product?

Best regards