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