Archived
2

Add prediction model

This commit is contained in:
2021-02-03 14:45:41 +01:00
parent b189c62840
commit 67d59cedfe
2 changed files with 10 additions and 0 deletions

8
src/models/prediction.ts Normal file
View File

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