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.

30 line
474B

  1. const mongoose = require('mongoose');
  2. const ViewSchema = mongoose.Schema({
  3. uid: {
  4. type: String,
  5. required: true
  6. },
  7. uploader: {
  8. type: String,
  9. required: true
  10. },
  11. remoteAddress: {
  12. type: String,
  13. required: true
  14. },
  15. userAgent: {
  16. type: String,
  17. required: true
  18. },
  19. date: {
  20. type: Date,
  21. default: Date.now
  22. }
  23. });
  24. module.exports = mongoose.model('View', ViewSchema);