add Brand Management

This commit is contained in:
2025-05-26 20:44:15 +02:00
parent d27871160e
commit 25c09dfecc
11 changed files with 548 additions and 21 deletions

View File

@@ -1,7 +1,20 @@
export interface Brand {
id: number;
name: string;
created_at: string;
updated_at?: string;
}
export interface BrandCreate {
name: string;
}
export interface Product {
id: number;
name: string;
category: string;
brand_id?: number;
brand?: Brand;
organic: boolean;
weight?: number;
weight_unit: string;
@@ -12,6 +25,7 @@ export interface Product {
export interface ProductCreate {
name: string;
category: string;
brand_id?: number;
organic: boolean;
weight?: number;
weight_unit: string;
@@ -42,6 +56,7 @@ export interface ProductWithEventData {
id: number;
name: string;
category: string;
brand?: Brand;
organic: boolean;
weight?: number;
weight_unit: string;