billingRecordModel.js
unknown
plain_text
2 years ago
734 B
9
Indexable
const mongoose = require('mongoose');
const billingRecordSchema = new mongoose.Schema({
description: {
type: String,
required: [true, 'Please provide description of the billing']
},
agentName: {
type: String,
required: [true , 'Please provide agent name'],
},
creationDate: {
type: Date,
required: true,
default: Date.now
},
amount: {
type: Number,
required: [true , 'Please provide amount']
},
status: {
type: String,
required: [true, 'Please provide status']
}
})
const BillingRecord = mongoose.model('BillingRecord', billingRecordSchema);
module.exports = BillingRecord;Editor is loading...
Leave a Comment