summaryrefslogtreecommitdiff
path: root/app/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/index.js')
-rw-r--r--app/index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/index.js b/app/index.js
index 2de4f1b..963bfd0 100644
--- a/app/index.js
+++ b/app/index.js
@@ -118,7 +118,10 @@ OKCMS.prototype._createSchemas = function(schemaConfig) {
return Object.keys(schemaConfig).reduce(function(cache, key) {
var spec = schemaConfig[key];
// All resources have an autoincrementing index so we can order them suckas
+ // TODO Screw the __ prefix, just consider 'index' a reserved word
spec.__index = {type: 'meta', autoincrement: true};
+ // All resources have a dateCreated field
+ spec.dateCreated = {type: 'meta'};
cache[key] = OKSchema(spec);
return cache;
}, {});