import{Schema as e}from"mongoose";const t=new e({name:{type:String},description:{type:String},content:{type:e.Types.Mixed,required:!0}},{timestamps:!0}),n=new e({projectIds:{type:[e.Types.ObjectId],ref:`Project`,required:!0},key:{type:String,required:!0},title:{type:String,default:``},description:{type:String,default:``},tags:{type:[String],default:[]},content:{type:Map,of:t,required:!0,default:null},creatorId:{type:e.Types.ObjectId,ref:`User`,required:!0}},{timestamps:!0,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 dictionarySchema};
//# sourceMappingURL=dictionary.schema.mjs.map