feat: implement logic engine for module dependencies and exclusions

This commit is contained in:
DanielS
2026-05-01 00:52:34 +02:00
parent a73cc387ec
commit 17d5a78467
3 changed files with 190 additions and 38 deletions

View File

@@ -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;
};