From dce08a43a43012d59f7e8bc99236a298264d09ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=91=AB?= <7176466@qq.com> Date: Fri, 26 Aug 2022 23:32:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/{File.js => Filesharing.js} | 4 ++-- public/client.js | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename models/{File.js => Filesharing.js} (80%) delete mode 100644 public/client.js diff --git a/models/File.js b/models/Filesharing.js similarity index 80% rename from models/File.js rename to models/Filesharing.js index fd98ddb..1915b33 100644 --- a/models/File.js +++ b/models/Filesharing.js @@ -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) diff --git a/public/client.js b/public/client.js deleted file mode 100644 index e69de29..0000000