Permalink
Browse files

Added lister for listings.

  • Loading branch information...
1 parent a513ba9 commit 845268922385c6ff702a6507280a6610eb14c344 @amccausl committed Sep 13, 2011
Showing with 32 additions and 3 deletions.
  1. +9 −2 data_test.coffee
  2. +23 −1 db/schema.json
View
@@ -14,9 +14,16 @@ graph.connect('couch', {
})
graph.set(
- _id: "/listing/teambuy_28133394",
- type: "/type/listing",
+ _id: "/card/teambuy"
+ type: "/type/card"
+ fn: "TeamBuy"
+)
+
+graph.set(
+ _id: "/listing/teambuy_28133394"
+ type: "/type/listing"
item_info: "Textbook Rental"
+ lister: "/card/teambuy"
)
graph.merge( seed, { dirty: true } )
View
@@ -8,10 +8,32 @@
"unique": false,
"type": "string",
"required": true
+ },
+ "lister": {
+ "name": "lister",
+ "unique": false,
+ "type": "/type/card",
+ "required": true
+ }
+ },
+ "indexes": {
+ "key": ["item_info", "lister"]
+ }
+ },
+ "/type/card": {
+ "_id": "/type/card",
+ "type": "/type/type",
+ "name": "hCard",
+ "properties": {
+ "fn": {
+ "name": "Full Name",
+ "unique": true,
+ "type": "string",
+ "required": true
}
},
"indexes": {
- "key": ["item_info"]
+ "key": ["fn"]
}
}
}

0 comments on commit 8452689

Please sign in to comment.