mongoose-unix-timestamp
Features
- create created_at column for auto generate time while create this document in unix format
- create updated_at column for auto generate time while update this document in unix format
Tech
Mongoose-unix-timestamp uses a number of open source projects to work properly:
- [node.js] - evented I/O for the backend
- [Express] - fast node.js network app framework
And of course this is open source and open to contribute on GitHub.
Installation
$ cd /path/to/your/app$ npm install mongoose-unix-timestamp
Usage
const mongoose = ;const Schema = mongooseSchema;const unixTimestamp = ; const user = full_name: String email: String; user; const model = mongoose;