feat: implement logic engine for module dependencies and exclusions
This commit is contained in:
@@ -6,17 +6,29 @@ export type Product = {
|
||||
is_active: boolean;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
category_id?: string | null;
|
||||
category?: Category | null;
|
||||
modules?: ProductModule[];
|
||||
};
|
||||
|
||||
export type Category = {
|
||||
id: string;
|
||||
name: string;
|
||||
description?: string | null;
|
||||
icon?: string | null;
|
||||
created_at: string;
|
||||
};
|
||||
|
||||
export type ProductModule = {
|
||||
id: string;
|
||||
product_id: string;
|
||||
name: string;
|
||||
description?: string | null | undefined;
|
||||
additional_price: number;
|
||||
price: number;
|
||||
is_required: boolean;
|
||||
is_active?: boolean;
|
||||
requirements: string[];
|
||||
exclusions: string[];
|
||||
created_at: string;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user