module.exports = app => { const mongoose = app.mongoose const Schema = mongoose.Schema const IndexSchema = new Schema({ id: { type: Number, default: -1, }, sequence_value: { type: Number, default: 0, }, }) return mongoose.model('Index', IndexSchema) }