add Brand Management
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user