Download server/models/Report.js from algorembrant/mt5-analyzer: direct link, hf CLI and curl.
- Browser
- Download file 635 Bytes
-
https://huggingface.co/algorembrant/mt5-analyzer/resolve/main/server/models/Report.js
- Command line
-
hf download hf://algorembrant/mt5-analyzer/server/models/Report.js
-
curl -L -o Report.js https://huggingface.co/algorembrant/mt5-analyzer/resolve/main/server/models/Report.js
635 Bytes
| const mongoose = require('mongoose'); | |
| const DealSchema = new mongoose.Schema({ | |
| time: String, | |
| deal: String, | |
| symbol: String, | |
| type: String, | |
| direction: String, | |
| volume: Number, | |
| price: Number, | |
| order: String, | |
| commission: Number, | |
| swap: Number, | |
| profit: Number, | |
| balance: Number, | |
| comment: String, | |
| }); | |
| const ReportSchema = new mongoose.Schema({ | |
| accountId: String, | |
| uploadDate: { type: Date, default: Date.now }, | |
| deals: [DealSchema], // Stores the parsed table data | |
| images: [String], // Stores paths/base64 of uploaded PNGs | |
| }); | |
| module.exports = mongoose.model('Report', ReportSchema); |