A simple file sharing site with an easy to use API and online panel.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
404B

  1. var mongoose = require('mongoose');
  2. var KeySchema = mongoose.Schema({
  3. key: String,
  4. identifier: {
  5. type: String,
  6. required: true
  7. },
  8. scope: [String],
  9. uploadCount: {
  10. type: Number,
  11. default: 0
  12. },
  13. uploadSize: {
  14. type: Number,
  15. default: 0
  16. },
  17. username: String,
  18. date: Date
  19. });
  20. module.exports = mongoose.model('Key', KeySchema);