A JavaScript schema for couchdb.