aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/models
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-05-10 09:35:40 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-05-10 09:35:40 +0200
commita15eb4dbdaed2a6d72ef2a0cb6db49ac578ab752 (patch)
tree72465fe3d0fe847d47bf2472a057f3e905f39202 /models
parentMoved group.png to img folder (diff)
downloadDivid-a15eb4dbdaed2a6d72ef2a0cb6db49ac578ab752.tar.gz
added 'when'-field to Schema
Diffstat (limited to 'models')
-rw-r--r--models/pPost.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/models/pPost.js b/models/pPost.js
index c02f863..1ce50b2 100644
--- a/models/pPost.js
+++ b/models/pPost.js
@@ -17,7 +17,8 @@ var pPostSchema = new Schema({
file: { type: String, default: '', trim: true },
currency: { type: String, default: 'kr', trim: true },
created: { type: Date, default: Date.now },
- updated: { type: Date, default: Date.now }
+ updated: { type: Date, default: Date.now },
+ when: { type: Date, default: Date.now }
});