gfw-api/gfw-subscription-api

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

Summary

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

const { Schema } = mongoose;

const LastUpdate = new Schema({
    dataset: { type: String, required: true, trim: true },
    date: { type: String, required: true, trim: true }
});

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