This website works better with JavaScript.
Home
Explore
lain.church
Help
Register
Sign In
foltik
/
shimapan
mirror of
https://github.com/Foltik/Shimapan
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
Add View model
production
Jack Foltz
5 years ago
parent
1139ff7f10
commit
2783c10259
Signed by:
foltik
<jack@foltz.io>
GPG Key ID:
303F88F996E95541
1 changed files
with
31 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+31
-0
app/models/View.js
+ 31
- 0
app/models/View.js
View File
@@ -0,0 +1,31 @@
const mongoose = require('mongoose');
const ViewSchema = mongoose.Schema({
uid: {
type: String,
unique: true,
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);
Write
Preview
Loading…
Cancel
Save