I know the Data Model is basically two types ER-Model and Relational Model & Database schema is also two type Physical and logical.
But I can not understand what
A schema can have multiple models related with it and each model can have multiple instances related with it.
for eg.
animalSchema{name:String, type:String}
mongoose.model('carnivores', animalSchema)
It simply means that carnivores is a model that is based on animalSchema.
mongoose.model('herbivores', animalSchema).
It simple means that herbivores is a model that is also based on animalSchema.
const lion = new carnivores();
const tiger = new carnivores();
These both are the instances of the carnivores model of the schema animalSchema
const deer = new herbivores();
const cow = new herbivores();
These both are the instances of the herbivores model of the schema animalSchema