Strategizer Server moved to old repos
This commit is contained in:
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;
|
||||
Reference in new issue
Block a user