How to add sql constraints for any field in odoo10
I have a char type field and for this field i want to add constraints for make this field unique. Means no record with same name should be enter by user. So, how to use sql constaints for this field uniqueness in Odoo10.
Thanks in advance.