Last active
August 29, 2015 14:15
-
-
Save axross/55c886dd720b9a0bd47f to your computer and use it in GitHub Desktop.
Isomorphic_model
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 Post = Model.createModel({ | |
id: { | |
type: Number, | |
validators: ['isNumber'], | |
}, | |
body: { | |
type: String, | |
validators: ['isString'] | |
}, | |
user: { | |
type: Model.classes.User, | |
}, | |
}, { | |
createdAt: true, | |
modifiedAt: true, | |
deletedAt: true, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment