Added ability to specify primaryKey.

Added ability to specify unqiqueness constraints.