mirror of
https://github.com/Foltik/Shimapan
synced 2024-11-14 08:49:51 -05:00
30 lines
474 B
JavaScript
30 lines
474 B
JavaScript
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); |