1. In Class rule form you can see an option "Automatically generate a unique ID for records of this type". This helps if you want the system to automatically supply a globally unique value for new instances, select this check box. Selecting this check box also changes the key name to pyGUID.
2. You can also perform auto increment from Database side, by creating the column as AUTO_INCREMENT.