How does mongoose match the original document

  node.js, question

There is already a document area in my database like this

bracket
 "_id" : NumberInt(3452),
 "code" : NumberInt(653022),
 "pcode" : NumberInt(653000),
 "name": "Akto County"
 bracket
 bracket
 "_id" : NumberInt(3453),
 "code" : NumberInt(653023),
 "pcode" : NumberInt(653000),
 "name": "Akqi County"
 bracket
 bracket
 "_id" : NumberInt(3454),
 "code" : NumberInt(653024),
 "pcode" : NumberInt(653000),
 "name": "Wuqia County"
 bracket

What I write like this does not match

const AreaSchema=new Schema({
 code:{type:Number},
 pcode:{type:Number},
 name:{type:String}
 });
 
 module.exports={
 Area:mongoose.model('Area', AreaSchema)
 };

How do you write the Schema to match it?

var mongoose=require('mongoose');
 const AreaSchema=new mongoose.Schema({
 code:{type:Number},
 pcode:{type:Number},
 name:{type:String}
 });
 
 module.exports=mongoose.model('Area',AreaSchema);