mirror of
https://github.com/Foltik/Shimapan
synced 2024-11-15 17:18:05 -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); |