Archived
2

Allow predictions to be saved

This commit is contained in:
2021-02-24 13:59:25 +01:00
parent 67d59cedfe
commit 3bad5416a8
4 changed files with 28 additions and 6 deletions

View File

@ -2,7 +2,8 @@ import mongoose from 'mongoose';
const PredictionSchema = new mongoose.Schema({
values: [{ spectrumName: String, value: Number }]
name: String,
value: Number
});
export default mongoose.model<any, mongoose.Model<any, any>>('prediction', PredictionSchema);