full
This commit is contained in:
24
models/DeletedAccountTombstoneModel.js
Normal file
24
models/DeletedAccountTombstoneModel.js
Normal file
@@ -0,0 +1,24 @@
|
||||
const mongoose = require('mongoose')
|
||||
const timestamp = require('mongoose-timestamp')
|
||||
|
||||
const tombstoneSchema = new mongoose.Schema({
|
||||
mobile_hash: {
|
||||
type: String,
|
||||
required: false,
|
||||
index: true
|
||||
},
|
||||
user_name_hash: {
|
||||
type: String,
|
||||
required: false,
|
||||
index: true
|
||||
},
|
||||
expires_at: {
|
||||
type: Date,
|
||||
required: true,
|
||||
index: true
|
||||
}
|
||||
})
|
||||
|
||||
tombstoneSchema.plugin(timestamp)
|
||||
|
||||
module.exports = mongoose.model('DeletedAccountTombstone', tombstoneSchema)
|
||||
Reference in New Issue
Block a user