import"../utils/validation/validateTag.mjs";import{Schema as e}from"mongoose";const t=new e({organizationId:{type:e.Types.ObjectId,ref:`Organization`,required:!0},projectId:{type:e.Types.ObjectId,ref:`Project`,required:!0},key:{type:String,required:!0,minlength:4,maxlength:20},name:{type:String,minlength:4,maxlength:50},description:{type:String},instructions:{type:String},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{t as tagSchema};
//# sourceMappingURL=tag.schema.mjs.map