重命名
This commit is contained in:
parent
15321afae2
commit
dce08a43a4
@ -1,5 +1,5 @@
|
||||
const mongoose = require('mongoose')
|
||||
const File = new mongoose.Schema({
|
||||
const Filesharing = new mongoose.Schema({
|
||||
md5: { type: String, require: true },
|
||||
size: { type: Number, require: true },
|
||||
encoding: { type: String, require: true },
|
||||
@ -9,4 +9,4 @@ const File = new mongoose.Schema({
|
||||
downloads: { type: Number, default: 0 },
|
||||
createdAt: { type: Date, default: Date.now },
|
||||
})
|
||||
module.exports = mongoose.model('File', File)
|
||||
module.exports = mongoose.model('Filesharing', Filesharing)
|
Loading…
Reference in New Issue
Block a user