import {model, Schema, Document} from "mongoose";

const SEQUENCE_EVALUATOR_SCHEMA: Schema = new Schema({
    webSiteId: {type: String, required: true},
    description: {type: String},
    stepList: {type: Array}
},
{
    timestamps: true,
});

export interface EvaluatorDocument extends Document {
    _id: string,
    webSiteId: string,
    description: string,
    stepList: {
        name: string,
        expression: string,
        forbiddenInteractionList: string[],
    }[],
  }

export const sequenceEvaluatorModel = model<EvaluatorDocument>("Objective", SEQUENCE_EVALUATOR_SCHEMA);
