Last active
August 29, 2015 14:06
-
-
Save dazld/e6a04574ef10e81fe9ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Model = require('ampersand-model'); | |
var Items = require('../collections/items'); | |
module.exports = Model.extend({ | |
props: { | |
'entry':'string', | |
'created_at':'date' | |
}, | |
children: { | |
items: Items | |
} | |
}); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Collection = require('ampersand-collection'); | |
var Item = require('../models/item'); | |
module.exports = Collection.extend({ | |
model: Item | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment