overlookmotel/sequelize-definer — pull request #3 by SimonDegraeve (2014-12-12 03:06:02+00:00)
Title: Refactor primary key option

- Replace `primaryKey` and `primaryKeyType` with a `primaryKey` object.
- Add `defaultValue` to `primaryKey` object.

Example:
From
```
{
...,
primaryKey: 'id',
primaryKeyType: Sequelize.STRING
}
```

To
```
{
...,
primaryKey: {
name: 'id',
type: Sequelize.STRING,
defaultValue: functionToGenerateCustomId
}
}
```