module.exports = {
  name: 'Entry',
  schema: {
    id: {type: 'increments', primary: true},
    folderId: {type: Number},
    sourceEntry: {type: String, nullable: false},
    pageNum: {type: Number},
    data: {type: 'json', defaultTo: '{}'}
  },
  options: {
    unique: ['id', 'folderId', 'sourceEntry']
  }
};

@@ -257,55 +257,58 @@
 ns: 
-%7B%0A    unique: %5B'id', 'folderId', 'sourceEntry'%5D
+(table) =%3E %7B%0A    table.unique(%5B'folderId', 'id'%5D);
 %0A  %7D

define index correctly