aaronpowell/db.js — pull request #35 by robsonperassoli (2013-05-29 20:06:40+00:00)
Title: Updating schema creation

Hello aaron.

I have a different situation on schema creation, i made the changes i need, if this is usefull to you i'm glad to help.

This is my schema model:

schema: {
1: {
cliente: {
key: {keyPath: 'id', autoIncrement: true},
indexes: {
codigo: {}
}
},
produto: {
key: {keyPath: 'id', autoIncrement: true},
indexes: {
codigo: {}
}
}
},
2: {
pedido: {
key: {keyPath: 'id', autoIncrement: true},
indexes: {
numero: {}
}
}
}
}

thanks