Denna sida fungerar bättre med Javascript igång.
Startsida
Utforska
lain.church
Hjälp
Registrera dig
Logga in
foltik
/
shimapan
spegling av
https://github.com/Foltik/Shimapan
Bevaka
1
Stjärnmärk
0
Förgrening
0
Kod
Ärenden
0
Släpp
0
Wiki
Aktiviteter
Bläddra i källkod
Add View model
production
Jack Foltz
5 år sedan
förälder
1139ff7f10
incheckning
2783c10259
Signerad av:
foltik
<jack@foltz.io>
GPG-nyckel ID:
303F88F996E95541
1 ändrade filer
med
31 tillägg
och
0 borttagningar
Delad Vy
Diff Options
Show Stats
Download Patch File
Download Diff File
+31
-0
app/models/View.js
+ 31
- 0
app/models/View.js
Visa fil
@@ -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
Förhandsgranska
Laddar…
Avbryt
Spara