 to create a small <code>model.js</code> where we define how our schema and model data looks like:</p>
<pre><code class="language-js">// model.js
const mongoose = require(&#39;mongoose&#39;);

// Configure the Mongoose plugin
mongoose.connect(process.env.MONGODB_URI || &#39;mongodb://localhost/todo&#39;);

// define the Todo schema
const TodoSchema = mongoose.Schema({
  text: { type: String, required: true },
  done: { type: Boolean, required: true, default: false },
});

module.exports = mongoose.model(&#3