A simple file sharing site with an easy to use API and online panel.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

31 lines
496B

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