重命名

This commit is contained in:
赵鑫 2022-08-26 23:32:31 +08:00
parent 15321afae2
commit dce08a43a4
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File