zgo/backend/models/country.js

10 lines
221 B
JavaScript
Raw Normal View History

2022-01-19 20:50:00 +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);