How to create Unique field on a database?

Mert, have you managed to make it work?