import { Schema, model, Model } from "mongoose"; export interface StormI extends Document { email: string; code: string; } interface StormModelI extends Model {} const StormSchema = new Schema( { email: { type: String, required: true, }, code: { type: String, required: true, }, }, { timestamps: true, } ); const StormModel = model("Storm", StormSchema); export default StormModel;