Skip to content

Commit a783735

Browse files
fix: update customer tiers to use min_spending instead of min_points
1 parent 5c86065 commit a783735

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

backend/src/main/resources/data.sql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,11 @@ working_hours_per_month = VALUES(working_hours_per_month),
226226
updated_at = NOW();
227227

228228
-- 6. CUSTOMER TIERS
229-
INSERT IGNORE INTO customer_tiers (tier_code, tier_name, min_points, max_points, min_spending, points_multiplier, discount_rate, color, is_active, priority) VALUES
230-
('BRONZE', 'Đồng', 0, 499, 0.00, 1.0, 0.00, '#CD7F32', TRUE, 1),
231-
('SILVER', 'Bạc', 500, 1499, 5000000.00, 1.5, 2.00, '#C0C0C0', TRUE, 2),
232-
('GOLD', 'Vàng', 1500, 4999, 15000000.00, 2.0, 5.00, '#FFD700', TRUE, 3),
233-
('PLATINUM', 'Bạch Kim', 5000, NULL, 50000000.00, 3.0, 10.00, '#E5E4E2', TRUE, 4);
229+
INSERT IGNORE INTO customer_tiers (tier_code, tier_name, min_spending, points_multiplier, discount_rate, color, is_active, priority) VALUES
230+
('BRONZE', 'Đồng', 0.00, 1.0, 0.00, '#CD7F32', TRUE, 1),
231+
('SILVER', 'Bạc', 5000000.00, 1.5, 2.00, '#C0C0C0', TRUE, 2),
232+
('GOLD', 'Vàng', 15000000.00, 2.0, 5.00, '#FFD700', TRUE, 3),
233+
('PLATINUM', 'Bạch Kim', 50000000.00, 3.0, 10.00, '#E5E4E2', TRUE, 4);
234234

235235
-- 7. CUSTOMERS
236236
INSERT IGNORE INTO customers (name, phone, loyalty_points) VALUES

0 commit comments

Comments
 (0)