-- RybStock starter data
-- Run after database/schema.sql

SET NAMES utf8mb4;

INSERT INTO categories (name, slug, sort_order, is_active) VALUES
('Рыба', 'fish', 10, 1),
('Готовая продукция', 'gotovaya-produkciya', 20, 1),
('Полуфабрикаты', 'polufabrikaty', 30, 1),
('Мясо', 'myaso', 40, 1),
('Сыры', 'syry', 50, 1),
('Ягоды', 'yagody', 60, 1),
('Овощи', 'ovoschi', 70, 1);

INSERT INTO promocodes
    (code, title, discount_type, discount_value, min_order_amount, applies_to, is_active, is_featured)
VALUES
    ('Рыбсток7000', '300 руб. при заказе от 7000 руб.', 'fixed', 300.00, 7000.00, 'order', 1, 1),
    ('Рыбсток20000', '5% при заказе от 20000 руб.', 'percent', 5.00, 20000.00, 'order', 1, 1),
    ('Рыбсток50000', '7% при заказе от 50000 руб.', 'percent', 7.00, 50000.00, 'order', 1, 1);

INSERT INTO site_settings (setting_key, setting_value, value_type, group_name) VALUES
('site_phone', '+7-977-736-33-63', 'string', 'contacts'),
('admin_email', '', 'string', 'mail'),
('inside_mkad_free_from', '5000', 'number', 'delivery'),
('inside_mkad_paid_price', '599', 'number', 'delivery'),
('outside_mkad_base_price', '199', 'number', 'delivery'),
('outside_mkad_km_price', '60', 'number', 'delivery'),
('outside_mkad_free_km_multiplier', '1000', 'number', 'delivery'),
('outside_mkad_free_under_10km', '10000', 'number', 'delivery'),
('lift_price', '390', 'number', 'delivery'),
('freezer_temp_min', '-20', 'number', 'freshness'),
('freezer_temp_max', '-18', 'number', 'freshness'),
('fridge_temp_min', '-2', 'number', 'freshness'),
('fridge_temp_max', '1', 'number', 'freshness'),
('freezer_area_text', 'более 1800 кв. м', 'string', 'freshness'),
('fridge_area_text', 'более 500 кв. м', 'string', 'freshness');
