10 lines
221 B
JavaScript
10 lines
221 B
JavaScript
|
const mongoose = require('mongoose');
|
||
|
|
||
|
const countrySchema = mongoose.Schema({
|
||
|
name: {type: String, required: true},
|
||
|
code: {type: Number, required: true}
|
||
|
});
|
||
|
|
||
|
|
||
|
module.exports = mongoose.model('Country', countrySchema);
|