Browse files

Improve doc on types

  • Loading branch information...
1 parent 5d50d83 commit 70fa96469b6515ae5fe66f635fbbc886474ae120 @wdavidw committed Mar 5, 2012
Showing with 15 additions and 0 deletions.
  1. +15 −0 lib/
@@ -6,6 +6,21 @@ Schema
Define a new schema.
+`ron` Reference to the Ron instance
+`options` Schema definition. Options include:
+* `name` Name of the schema.
+* `properties` Properties definition, an object or an array.
+Record properties may be defined by the following keys:
+* `type` Use to cast the value inside Redis, one of `string`, `int` or `date`.
+* `identifier` Mark this property as the identifier, only one property may be an identifier.
+* `index` Create an index on the property.
+* `unique` Create a unique index on the property.
+* `email` Validate the string as an email.

0 comments on commit 70fa964

Please sign in to comment.