Update schemas with new fields, create initial import from prod script

This commit is contained in:
2025-01-25 09:45:50 -05:00
parent 31e1568868
commit 353ae4540e
4 changed files with 879 additions and 15 deletions

View File

@@ -408,7 +408,7 @@ SELECT
c.id as category_id,
c.name,
c.description,
c.parent_category,
p.name as parent_name,
c.status,
cm.product_count,
cm.active_products,
@@ -424,5 +424,7 @@ SELECT
END as performance_rating
FROM
categories c
LEFT JOIN
categories p ON c.parent_id = p.id
LEFT JOIN
category_metrics cm ON c.id = cm.category_id;