diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-10 09:35:40 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-10 09:35:40 +0200 |
commit | a15eb4dbdaed2a6d72ef2a0cb6db49ac578ab752 (patch) | |
tree | 72465fe3d0fe847d47bf2472a057f3e905f39202 /models/pPost.js | |
parent | Moved group.png to img folder (diff) | |
download | Divid-a15eb4dbdaed2a6d72ef2a0cb6db49ac578ab752.tar.gz |
added 'when'-field to Schema
Diffstat (limited to 'models/pPost.js')
-rw-r--r-- | models/pPost.js | 3 |
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 } }); |