zgo/backend/models/country.js

10 lines
221 B
JavaScript
Raw Normal View History

2022-04-11 14:48:34 +00:00
const mongoose = require('mongoose');
const countrySchema = mongoose.Schema({
name: {type: String, required: true},
code: {type: Number, required: true}
});
module.exports = mongoose.model('Country', countrySchema);