diff --git a/src/models/transfer.js b/src/models/transfer.js index d1cf4802b..ca77421f7 100644 --- a/src/models/transfer.js +++ b/src/models/transfer.js @@ -1,12 +1,16 @@ -const mongoose = require("mongoose"); +const mongoose = require('mongoose') const transferSchema = new mongoose.Schema({ - sender_id: { type: mongoose.Schema.Types.ObjectId, ref: "User", required: true }, + sender_id: { + type: mongoose.Schema.Types.ObjectId, + ref: 'User', + required: true + }, receiver_account_id: { type: String, required: true }, amount: { type: Number, required: true }, - transaction_hash: { type: String }, -}); + transaction_hash: { type: String } +}) -const Transfer = mongoose.model("Transfer", transferSchema); +const Transfer = mongoose.model('Transfer', transferSchema) -module.exports = Transfer; +module.exports = Transfer