import mongoose, { Schema } from 'mongoose'; const cashTransaction = new Schema({ 'raw': String, 'day': Number, 'month': Number, 'year': Number, 'amount': Number, 'type': Number, 'company': String, }); const CashTransaction = mongoose.model('cashTransaction', cashTransaction); export default CashTransaction;