delete variant

This commit is contained in:
2026-02-13 19:12:10 +03:30
parent afd263523d
commit 6ee18d4ae1
5 changed files with 25 additions and 0 deletions
@@ -60,6 +60,7 @@ const productVariantSchema = new Schema<IProductVariant>(
dimensions: { type: productDimensionsSchema, required: true },
sellerSpecialCode: { type: String },
themeValue: { type: Schema.Types.ObjectId, ref: "ThemeValue", required: true },
deleted: { type: Boolean, default: false },
},
{ timestamps: true, toObject: { virtuals: true, versionKey: false }, toJSON: { virtuals: true, versionKey: false }, id: false },
);