import{Schema as e}from"mongoose";const t=new e({score:{type:Number},langTag:{type:String},htmlDir:{type:String},hreflangs:{type:[String]},hasXDefault:{type:Boolean},hasCanonical:{type:Boolean},hasLocalizedLinks:{type:Boolean},allAnchorsLocalized:{type:Boolean},robotsTxt:{accessible:{type:Boolean},disallowWithoutLocaleAlternates:{type:Boolean}},sitemapXml:{urlsDiscoveredCount:{type:Number},alternatesPresent:{type:Boolean},xDefaultPresent:{type:Boolean}}},{_id:!1}),n=new e({title:{type:String,required:!0},description:{type:String,default:``},imageUrl:{type:String,default:``},logoUrl:{type:String},websiteUrl:{type:String,required:!0,unique:!0},githubUrl:{type:String},tags:{type:[String],default:[]},upvoters:{type:[String],default:[]},downvoters:{type:[String],default:[]},isOpenSource:{type:Boolean,default:!1},createdAt:{type:Date,default:Date.now},intlayerVersion:{type:String},libsUsed:{type:[String],default:[]},packageDetails:{type:Map,of:String,default:{}},lastScanDate:{type:Date},scanDetails:{type:t},owner:{type:String},status:{type:String,enum:[`pending_scan`,`active`,`scan_failed`],default:`pending_scan`}},{timestamps:!1,toJSON:{virtuals:!0,versionKey:!1,transform(e,t){let{_id:n,...r}=t;return{...r,id:n.toString()}}},toObject:{virtuals:!0,transform(e,t){let{_id:n,...r}=t;return{...r,id:n}}}});export{n as showcaseProjectSchema};
//# sourceMappingURL=showcaseProject.schema.mjs.map