mirror of
https://github.com/Foltik/Shimapan
synced 2024-11-30 22:41:47 -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); |