fix: update product variant model to include variant_attribute_name and remove product_option_id

This commit is contained in:
hosseintaromi 2025-08-01 14:38:46 +03:30
parent f63dd99e89
commit d10b52924c
1 changed files with 1 additions and 3 deletions

View File

@ -18,7 +18,6 @@ export interface ProductVariant {
stock_managed: boolean;
stock_number: number;
weight: number;
product_option_id?: number;
attributes?: Record<string, any>;
meta?: Record<string, any>;
file_ids?: ProductImage[];
@ -60,7 +59,7 @@ export interface ProductFormData {
product_option_id?: number;
total_sold: number;
type: number;
attributes: Record<string, any>;
variant_attribute_name?: string;
file_ids: ProductImage[];
variants: ProductVariantFormData[];
}
@ -74,7 +73,6 @@ export interface ProductVariantFormData {
stock_managed: boolean;
stock_number: number;
weight: number;
product_option_id?: number;
attributes: Record<string, any>;
meta: Record<string, any>;
file_ids: ProductImage[];