- Add database migration for sale fields (percentage, active, dates) - Update API to handle sale operations and bulk updates - Create SaleManager component for admin interface - Update FilamentTableV2 to display sale prices on frontend - Add sale column in admin dashboard - Implement sale price calculations with strikethrough styling
18 lines
596 B
TypeScript
18 lines
596 B
TypeScript
export interface Filament {
|
|
id?: string;
|
|
tip: string;
|
|
finish: string;
|
|
boja: string;
|
|
boja_hex?: string; // Using snake_case to match database
|
|
refill: number; // Changed to number for consistency
|
|
spulna: number; // Changed to number for consistency
|
|
kolicina: number; // Already changed to match database
|
|
cena: string;
|
|
status?: string;
|
|
created_at?: string; // Using snake_case to match database
|
|
updated_at?: string; // Using snake_case to match database
|
|
sale_percentage?: number;
|
|
sale_active?: boolean;
|
|
sale_start_date?: string;
|
|
sale_end_date?: string;
|
|
} |