修改创建时间字段名
This commit is contained in:
parent
c34c1a2d38
commit
a81b7c0a37
@ -7,6 +7,6 @@ const FileshareSchema = new mongoose.Schema({
|
||||
filename: { type: String, require: true },
|
||||
password: { type: String, require: true },
|
||||
downloads: { type: Number, default: 0 },
|
||||
timestamp: { type: Date, default: Date.now },
|
||||
createdAt: { type: Date, default: Date.now },
|
||||
})
|
||||
module.exports = mongoose.model('Fileshare', FileshareSchema)
|
||||
|
Loading…
Reference in New Issue
Block a user