Strategizer Server moved to old repos

This commit is contained in:
Luis Fernando Molina committed 2020-11-20 19:38:56 +01:00
1 parent dc50cfa303
commit b91b7a20dd
36 files changed

No files matched your search

@@ -0,0 +1,24 @@
import mongoose, { Schema } from 'mongoose';
const tradingSystemSchema = new Schema(
{
fbSlug: {
type: String,
required: true,
unique: true,
dropDups: true,
},
data: Object,
history: [{
updatedAt: Date,
data: Object,
}],
},
{
timestamps: true,
},
);
const TradingSystem = mongoose.model('TradingSystem', tradingSystemSchema);
export default TradingSystem;