Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added lister for listings.

  • Loading branch information...
commit 845268922385c6ff702a6507280a6610eb14c344 1 parent a513ba9
Alex McCausland authored

Showing 2 changed files with 32 additions and 3 deletions. Show diff stats Hide diff stats

  1. +9 2 data_test.coffee
  2. +23 1 db/schema.json
11 data_test.coffee
@@ -14,9 +14,16 @@ graph.connect('couch', {
14 14 })
15 15
16 16 graph.set(
17   - _id: "/listing/teambuy_28133394",
18   - type: "/type/listing",
  17 + _id: "/card/teambuy"
  18 + type: "/type/card"
  19 + fn: "TeamBuy"
  20 +)
  21 +
  22 +graph.set(
  23 + _id: "/listing/teambuy_28133394"
  24 + type: "/type/listing"
19 25 item_info: "Textbook Rental"
  26 + lister: "/card/teambuy"
20 27 )
21 28
22 29 graph.merge( seed, { dirty: true } )
24 db/schema.json
@@ -8,10 +8,32 @@
8 8 "unique": false,
9 9 "type": "string",
10 10 "required": true
  11 + },
  12 + "lister": {
  13 + "name": "lister",
  14 + "unique": false,
  15 + "type": "/type/card",
  16 + "required": true
  17 + }
  18 + },
  19 + "indexes": {
  20 + "key": ["item_info", "lister"]
  21 + }
  22 + },
  23 + "/type/card": {
  24 + "_id": "/type/card",
  25 + "type": "/type/type",
  26 + "name": "hCard",
  27 + "properties": {
  28 + "fn": {
  29 + "name": "Full Name",
  30 + "unique": true,
  31 + "type": "string",
  32 + "required": true
11 33 }
12 34 },
13 35 "indexes": {
14   - "key": ["item_info"]
  36 + "key": ["fn"]
15 37 }
16 38 }
17 39 }

0 comments on commit 8452689

Please sign in to comment.
Something went wrong with that request. Please try again.