This website works better with JavaScript.
Почетна
Преглед
lain.church
Помоћ
Регистрација
Пријавите Се
foltik
/
shimapan
огледало од
https://github.com/Foltik/Shimapan
Прати
1
Волим
0
Креирај огранак
0
Код
Дискусије
0
Издања
0
Вики
Activity
Преглед изворни кода
Add View model
production
Jack Foltz
пре 5 година
родитељ
1139ff7f10
комит
2783c10259
Signed by:
foltik
<jack@foltz.io>
GPG Key ID:
303F88F996E95541
1 измењених фајлова
са
31 додато
и
0 уклоњено
Подељен поглед
Diff Options
Show Stats
Download Patch File
Download Diff File
+31
-0
app/models/View.js
+ 31
- 0
app/models/View.js
Прегледај датотеку
@@ -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…
Откажи
Сачувај