Edited README.md via GitHub

This commit is contained in:
Anatoliy Chakkaev 2011-10-06 11:26:26 +04:00
parent c7ee4b73cf
commit 098fa9897f
1 changed files with 3 additions and 1 deletions

View File

@ -18,9 +18,10 @@ var Post = schema.define('Post', {
date: { type: Date, detault: Date.now },
published: { type: Boolean, default: false }
});
// simplier way to describe model
var User = schema.define('User', {
name: String,
bio: Text,
bio: Schema.Text,
approved: Boolean,
joinedAt: Date,
age: Number
@ -118,6 +119,7 @@ If you have found a bug please write unit test, and make sure all other tests st
### Common:
+ transparent interface to APIs
+ validations
+ -before and -after hooks on save, update, destroy
+ default values