Add prediction model
This commit is contained in:
8
src/models/prediction.ts
Normal file
8
src/models/prediction.ts
Normal 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);
|
Reference in New Issue
Block a user