import e,{Schema as t}from"mongoose";let n=function(e){return e.PENDING=`pending`,e.RUNNING=`running`,e.COMPLETED=`completed`,e.FAILED=`failed`,e}({});const r=new t({jobId:{type:t.Types.ObjectId,ref:`AuditJob`,required:!0,index:!0},url:{type:String,required:!0},status:{type:String,enum:Object.values(n),default:n.PENDING},score:{type:Number},results:{type:t.Types.Mixed},error:{type:String}},{timestamps:!0});r.index({jobId:1,url:1},{unique:!0});const i=e.model(`AuditPage`,r);export{i as AuditPageModel,n as AuditPageStatus};
//# sourceMappingURL=auditPage.model.mjs.map