| 123456789 |
- const mongoose = require('mongoose');
- const invoiceSchema = new mongoose.Schema({
- client: { type: String, required: true },
- dueDate: { type: Date, required: true },
- paid: { type: Boolean, default: false },
- });
- module.exports = mongoose.model('Invoice', invoiceSchema);
|