text: import mongoose from "mongoose";
  const Schema = mongoose.Schema;
  
  const transactionSchema = new Schema({
  
      bankId: {
          type: String
      },
  
      saleId: {
          type: String,
          default: ""
      },
  
      transferId: {
          type: String,
          default: ""
      },
  
      expenseId: {
          type: String,
          default: ""
      },
  
      paymentId: {
          type: String,
          default: ""
      },
  
      amount:{
          type: Number
      },
  
      transactionType:{
          type: String
      },
  
      balance:{
          type: Number
      },
  
      description: {
          type: String
      },
  
      date:{
          type: Date
      }
  
  
  
  
  }, {timestamps: true})
  
  const BankTransaction = mongoose.model('bank_transactions', transactionSchema);
  export default BankTransaction;