1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-11-15 09:08:06 -05:00
shimapan/app/models/View.js

30 lines
474 B
JavaScript
Raw Normal View History

2018-09-15 18:26:14 -04:00
const mongoose = require('mongoose');
const ViewSchema = mongoose.Schema({
uid: {
type: String,
required: true
},
uploader: {
type: String,
required: true
},
remoteAddress: {
type: String,
required: true
},
userAgent: {
type: String,
required: true
},
date: {
type: Date,
default: Date.now
}
});
module.exports = mongoose.model('View', ViewSchema);