This website works better with JavaScript.
首頁
探索
lain.church
說明
註冊
登入
foltik
/
shimapan
镜像来自
https://github.com/Foltik/Shimapan
關註
1
收藏
0
複製
0
程式碼
問題管理
0
版本發佈
0
Wiki
Activity
瀏覽代碼
Add View model
production
Jack Foltz
5 年之前
父節點
1139ff7f10
當前提交
2783c10259
簽署人:
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…
取消
儲存