Hmahwish
Hmahwish

Reputation: 2232

How can I have composite primary key schema in JugglingDB?

I have a table in mysql that has a composite primary key.How can i define this schema in jugglingDB.

var User = schemaDynamo.define('User', {
userId : { type: Number},
deptId : {type: Number} .... 

column userId and deptId together make the primary key.

Upvotes: 2

Views: 84

Answers (0)

Related Questions