gfw-api/gfw-geostore-api

View on GitHub
app/src/models/idConnection.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
const mongoose = require('mongoose');

const { Schema } = mongoose;

const IdConnection = new Schema({
    hash: { type: String, required: true, trim: true },
    oldId: { type: String, required: true, trim: true }

});
IdConnection.index({ oldId: 1 });

module.exports = mongoose.model('IdConnection', IdConnection);