-- ============================================================================= -- عبایی گلد — ادغام settings با کاتالوگ goldAliii -- -- منبع مقادیر: abaeigold_client.json -- قالب کلیدها: goldali (102 کلید) -- -- قوانین: -- • کلید مشترک → value از کلاینت، metadata از کاتالوگ -- • کلید کاتالوگ بدون مقدار در کلاینت → value=''، is_active=0 -- • کلیدهای اضافی کلاینت → DELETE -- -- قبل از اجرا: USE دیتابیس عبایی گلد + بکاپ -- ============================================================================= START TRANSACTION; SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci; ALTER TABLE `settings` MODIFY COLUMN `description` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL, MODIFY COLUMN `title_fa` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL, MODIFY COLUMN `type` VARCHAR(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL; -- 1) INSERT INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'admin_url', 'https://abaeigold.ir/admin/', 'آدرس پنل ادمین', 1, 1, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'admin_url' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'app_url', 'https://abaeigold.ir', 'آدرس اپ (کاربر)', 1, 1, '0inserver', 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'app_url' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'auto_active_customer', 'false', 'فعال‌سازی خودکار کاربر', 1, 1, NULL, 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'auto_active_customer' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'bace_url', '91.212.174.137', 'آدرس پایه', 1, 1, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'bace_url' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'balance_report_exclude_customer_id', '', 'حذف مشتری از تراز ادمین', 0, 0, NULL, 'number' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'balance_report_exclude_customer_id' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'bale_bot_token', '', 'توکن بات بله', 0, 0, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'bale_bot_token' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'buy_fee', '0', 'سود/اختلاف خرید (ریال)', 1, 1, 'اگر خالی باشد از fee_single', 'number' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'buy_fee' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'charge_notif', 'false', 'پیامک شارژ ادمین', 1, 1, NULL, 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'charge_notif' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'chart_id', '', 'UUID نمودار Zaarbox', 1, 0, 'خالی = ca3800a0-1f57-3528-b963-178f9168e04f', 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'chart_id' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'close_price', 'true', 'بستن قیمت در بازه زمانی', 1, 1, NULL, 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'close_price' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'color_primary', '#0A1B37', 'رنگ اصلی', 1, 1, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'color_primary' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'color_secondary', '#0A1B37', 'رنگ ثانویه', 1, 1, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'color_secondary' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'display_montzar', 'true', 'نمایش بلوک همکار در UI', 1, 1, NULL, 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'display_montzar' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'down_price', '', 'کمترین قیمت امروز', 0, 0, NULL, 'number' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'down_price' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'endDay', '20:30', 'پایان بازه معامله', 1, 1, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'endDay' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'etehadie_api_url', '', 'آدرس API اتحادیه (پشتیبان)', 1, 0, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'etehadie_api_url' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'external_order_api_enabled', '', 'فعال‌سازی API سفارش خارجی (get_wallet / order)', 1, 0, 'true + node_client_id + node_shared_secret', NULL WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'external_order_api_enabled' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'fee_cash', '500000', 'اختلاف ریالی هر گرم (سفارش)', 1, 1, 'goldAliii: 0', 'number' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'fee_cash' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'fee_free', '0', 'تعداد سفارش اول بدون کارمزد', 1, 1, NULL, 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'fee_free' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'fee_service_charge_percentage', '0.005', 'درصد کارمزد سفارش', 1, 1, 'goldAliii: 7%', 'number' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'fee_service_charge_percentage' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'fee_single', '500000', 'اختلاف قیمت پایه (ریال)', 1, 1, 'پیش‌فرض Laravel fee.single', 'number' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'fee_single' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'gift_for_referral', '', 'پاداش معرف‌شونده', 1, 0, NULL, 'number' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'gift_for_referral' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'gift_for_referrer', '0.005', 'پاداش معرف', 1, 1, NULL, 'number' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'gift_for_referrer' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'group_sms', 'false', 'پیامک گروهی', 1, 1, NULL, 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'group_sms' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'has_chat', 'true', 'چت پشتیبانی', 1, 1, NULL, 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'has_chat' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'has_page_earn_money', 'false', 'صفحه کسب درآمد', 1, 1, 'in server', 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'has_page_earn_money' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'has_page_fund', 'true', 'صفحه صندوق', 1, 1, NULL, 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'has_page_fund' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'has_page_permission', 'true', 'صفحه مجوزها', 1, 1, NULL, 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'has_page_permission' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'has_page_physical_gold', 'true', 'صفحه طلای فیزیکی', 1, 1, NULL, 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'has_page_physical_gold' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'has_page_price_trigger', 'true', 'صفحه هشدار قیمت', 1, 1, NULL, 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'has_page_price_trigger' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'is_requaire_referral', 'true', 'کد معرف اجباری (قدیمی)', 1, 1, NULL, 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'is_requaire_referral' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'jibit_verification', 'false', 'تأیید کارت بانکی با جیبیت', 1, 1, 'true/false — BankAccountController', 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'jibit_verification' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'key', 'abaeigold', 'کلید داخلی اپ', 1, 1, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'key' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'logo_login', 'logo_login', '', 1, 1, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'logo_login' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'logo_register', 'logo_register', 'لوگوی صفحه ورود', 1, 1, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'logo_register' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'main_product', '13', 'قیمت صفحه اصلی', 1, 1, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'main_product' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'main_product_price', 'false', 'قیمت از محصول (legacy)', 1, 1, 'از price_provider استفاده کنید', 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'main_product_price' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'metal_type', '', 'عنوان فلز در UI', 1, 0, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'metal_type' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'min_first_buy', '', 'حداقل اولین خرید (ریال)', 1, 0, NULL, 'number' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'min_first_buy' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'min_withdraw', '', 'حداقل برداشت (ریال)', 1, 0, NULL, 'number' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'min_withdraw' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'minimum_sell', '', 'حداقل فروش', 1, 0, NULL, 'number' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'minimum_sell' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'montify_name', '', 'نام فروشگاه', 1, 0, 'RequestsController — اختیاری', 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montify_name' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'montzar_base_url', 'https://limangold.ir', 'آدرس سرور همکار', 1, 1, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_base_url' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'montzar_closed', 'false', 'بسته بودن همکار', 1, 1, NULL, 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_closed' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'montzar_diff', '300106.05286206', 'اختلاف قیمت همکار', 0, 1, 'سیستم پر می‌کند', 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_diff' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'montzar_live_price', '179740440.58339', 'قیمت لحظه‌ای همکار', 0, 1, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_live_price' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'montzar_mazaneh', '778600000', 'مظنه همکار', 0, 1, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_mazaneh' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'montzar_mobile', '09901810700', 'موبایل API همکار', 1, 1, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_mobile' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'montzar_open_buy', 'true', 'باز بودن خرید همکار', 1, 1, NULL, 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_open_buy' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'montzar_open_sell', 'true', 'باز بودن فروش همکار', 1, 1, NULL, 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_open_sell' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'montzar_password', '09901810700', 'رمز API همکار', 1, 1, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_password' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'montzar_price', 'true', 'قیمت از همکار (montzar)', 1, 1, 'گلد علی: false — zaarbox فعال', 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_price' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'montzar_product_id', '25', 'کد محصول همکار', 1, 1, NULL, 'number' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_product_id' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'montzar_token', 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2xpbWFuZ29sZC5pci9zZXJ2ZXIvYXV0aC9sb2dpbiIsImlhdCI6MTc4MDQ5MjE0MiwiZXhwIjoxNzgzMDg0MTQyLCJuYmYiOjE3ODA0OTIxNDIsImp0aSI6IkZyYWwzN09jMzB4SHJRM1MiLCJzdWIiOiIzMzQ2IiwicHJ2IjoiMWQwYTAyMGFjZjVjNGI2YzQ5Nzk4OWRmMWFiZjBmYmQ0ZThjOGQ2MyJ9.cw31HhaBYJtNvTNnJwctU1J5tGp1-FDtIQVSU67HZA8', 'توکن همکار (خودکار)', 0, 1, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_token' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'montzar_truly_buy_mazaneh', '779900000', 'مظنه خرید همکار', 0, 1, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_truly_buy_mazaneh' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'montzar_truly_sell_mazaneh', '777300000', 'مظنه فروش همکار', 0, 1, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_truly_sell_mazaneh' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'name_en', 'abaei_gold', 'نام انگلیسی اپ', 1, 1, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'name_en' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'name_fa', 'عبایی گلد', 'نام فارسی اپ', 1, 1, 'پلتفرم خرید و فروش آنلاین طلای آبشده . اولین ایده پرداز قلک طلا در ایران', 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'name_fa' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'node_client_id', '', 'شناسه کلاینت API خارجی (X-Client-Id)', 1, 0, 'مقدار قبلی .env: NODE_CLIENT_ID', NULL WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'node_client_id' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'node_shared_secret', '', 'کلید امضای HMAC API خارجی', 1, 0, 'مقدار قبلی .env: NODE_SHARED_SECRET', NULL WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'node_shared_secret' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'open_register', 'true', 'ثبت‌نام باز', 1, 1, NULL, 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'open_register' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'payping_fin_customer_id', '', 'customer_id fin', 1, 0, NULL, 'number' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_fin_customer_id' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'payping_fin_sync_enabled', '', 'همگام‌سازی fin لیمان', 1, 0, NULL, 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_fin_sync_enabled' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'payping_fin_token', '', 'توکن fin', 1, 0, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_fin_token' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'payping_fin_url', '', 'URL fin', 1, 0, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_fin_url' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'payping_gateway_item', '', 'item تکی (legacy)', 1, 0, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_gateway_item' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'payping_gateway_items', '', 'لیست item (چرخشی)', 1, 0, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_gateway_items' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'payping_gateway_name', '', 'نام gateway درگاه', 1, 0, 'sepal,', 'select' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_gateway_name' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'payping_round_toman', '', 'گرد کردن مبلغ به تومان', 0, 0, NULL, 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_round_toman' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'payping_start_url', '', 'آدرس شروع درگاه', 1, 0, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_start_url' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'payping_strict_failed_withdraw', '', 'اولویت تراکنش ناموفق', 0, 0, NULL, 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_strict_failed_withdraw' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'payping_verify_url', '', 'آدرس تأیید درگاه', 1, 0, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_verify_url' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'price_extreme_date', '', 'تاریخ min/max روز', 0, 0, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'price_extreme_date' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'price_provider', 'montzar', 'منبع قیمت', 1, 1, 'montzar,zaarbox,main_product,etehadie,taban_gohar', 'select' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'price_provider' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'product_auto_close_open_on_list', 'true', 'باز/بسته خودکار محصول', 1, 1, NULL, 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'product_auto_close_open_on_list' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'product_update_price_on_list', 'true', 'بروز قیمت در لیست محصول', 1, 1, NULL, 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'product_update_price_on_list' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'profit_gold_api_enabled', '', 'API سود طلا', 0, 0, NULL, 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'profit_gold_api_enabled' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'referral_bonus_amount', '', 'مبلغ پاداش معرف', 1, 0, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'referral_bonus_amount' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'referral_count_for_gift', '', 'تعداد معرف برای هدیه', 1, 0, NULL, 'number' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'referral_count_for_gift' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'referral_id', 'required', 'الزام کد معرف', 0, 1, 'required,', 'select' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'referral_id' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'referral_limit', '', 'محدودیت دعوت', 1, 0, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'referral_limit' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'register_jibit_verify', '', 'تأیید کدملی/موبایل در ثبت‌نام', 1, 0, 'AuthController', 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'register_jibit_verify' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'register_referral_bonus_message', '', 'پیام پاداش در SMS ثبت‌نام', 1, 0, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'register_referral_bonus_message' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'register_referral_sms_to_referrer', '', 'SMS به معرف هنگام ثبت‌نام', 1, 0, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'register_referral_sms_to_referrer' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'sell_fee', '0', 'سود/اختلاف فروش (ریال)', 1, 1, 'اگر خالی باشد از fee_single', 'number' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'sell_fee' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'send_to_tahesab', 'false', 'ارسال ته‌حساب', 0, 1, NULL, 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'send_to_tahesab' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'server_url', 'https://abaeigold.ir/api', 'آدرس API سرور', 1, 1, 'in server', 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'server_url' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'show_last_price', 'false', 'نمایش آخرین قیمت DB اگر API قطع شد', 1, 1, NULL, 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'show_last_price' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'startDay', '10:00', 'شروع بازه معامله', 1, 1, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'startDay' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'tabanGohar_price', 'false', 'قیمت تابان گوهر', 1, 1, NULL, 'switch' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'tabanGohar_price' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'tahesab_bank_account', '', 'حساب بانکی ته‌حساب', 1, 0, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'tahesab_bank_account' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'tahesab_db', '', 'دیتابیس ته‌حساب', 1, 0, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'tahesab_db' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'tahesab_token', '', 'توکن ته‌حساب', 1, 0, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'tahesab_token' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'telegram_bot_token', '', 'توکن بات تلگرام', 0, 0, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'telegram_bot_token' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'test*', '', '', 1, 0, 'تستی است', 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'test*' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'text_about', '', 'متن درباره ما', 1, 0, NULL, 'longtext' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'text_about' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'text_rule', '', 'متن قوانین', 1, 0, NULL, 'longtext' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'text_rule' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'title_fav', '', 'عنوان favicon', 1, 0, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'title_fav' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'title_pwa', '', 'عنوان PWA', 1, 0, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'title_pwa' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'up_price', '', 'بیشترین قیمت امروز', 0, 0, 'ReportController', 'number' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'up_price' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'zaarbox_api_url', '', 'url زرباکس', 1, 0, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'zaarbox_api_url' LIMIT 1); INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`) SELECT 'zaarbox_price_key', '', 'کد محصول زرباکس', 1, 0, NULL, 'text' WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'zaarbox_price_key' LIMIT 1); -- 2) UPDATE UPDATE `settings` SET `title_fa` = 'آدرس پنل ادمین', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = 'https://abaeigold.ir/admin/', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'admin_url'; UPDATE `settings` SET `title_fa` = 'آدرس اپ (کاربر)', `can_edit` = 1, `type` = 'text', `description` = '0inserver', `value` = 'https://abaeigold.ir', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'app_url'; UPDATE `settings` SET `title_fa` = 'فعال‌سازی خودکار کاربر', `can_edit` = 1, `type` = 'switch', `description` = NULL, `value` = 'false', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'auto_active_customer'; UPDATE `settings` SET `title_fa` = 'آدرس پایه', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '91.212.174.137', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'bace_url'; UPDATE `settings` SET `title_fa` = 'حذف مشتری از تراز ادمین', `can_edit` = 0, `type` = 'number', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'balance_report_exclude_customer_id'; UPDATE `settings` SET `title_fa` = 'توکن بات بله', `can_edit` = 0, `type` = 'text', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'bale_bot_token'; UPDATE `settings` SET `title_fa` = 'سود/اختلاف خرید (ریال)', `can_edit` = 1, `type` = 'number', `description` = 'اگر خالی باشد از fee_single', `value` = '0', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'buy_fee'; UPDATE `settings` SET `title_fa` = 'پیامک شارژ ادمین', `can_edit` = 1, `type` = 'switch', `description` = NULL, `value` = 'false', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'charge_notif'; UPDATE `settings` SET `title_fa` = 'UUID نمودار Zaarbox', `can_edit` = 1, `type` = 'text', `description` = 'خالی = ca3800a0-1f57-3528-b963-178f9168e04f', `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'chart_id'; UPDATE `settings` SET `title_fa` = 'بستن قیمت در بازه زمانی', `can_edit` = 1, `type` = 'switch', `description` = NULL, `value` = 'true', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'close_price'; UPDATE `settings` SET `title_fa` = 'رنگ اصلی', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '#0A1B37', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'color_primary'; UPDATE `settings` SET `title_fa` = 'رنگ ثانویه', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '#0A1B37', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'color_secondary'; UPDATE `settings` SET `title_fa` = 'نمایش بلوک همکار در UI', `can_edit` = 1, `type` = 'switch', `description` = NULL, `value` = 'true', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'display_montzar'; UPDATE `settings` SET `title_fa` = 'کمترین قیمت امروز', `can_edit` = 0, `type` = 'number', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'down_price'; UPDATE `settings` SET `title_fa` = 'پایان بازه معامله', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '20:30', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'endDay'; UPDATE `settings` SET `title_fa` = 'آدرس API اتحادیه (پشتیبان)', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'etehadie_api_url'; UPDATE `settings` SET `title_fa` = 'فعال‌سازی API سفارش خارجی (get_wallet / order)', `can_edit` = 1, `type` = NULL, `description` = 'true + node_client_id + node_shared_secret', `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'external_order_api_enabled'; UPDATE `settings` SET `title_fa` = 'اختلاف ریالی هر گرم (سفارش)', `can_edit` = 1, `type` = 'number', `description` = 'goldAliii: 0', `value` = '500000', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'fee_cash'; UPDATE `settings` SET `title_fa` = 'تعداد سفارش اول بدون کارمزد', `can_edit` = 1, `type` = 'switch', `description` = NULL, `value` = '0', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'fee_free'; UPDATE `settings` SET `title_fa` = 'درصد کارمزد سفارش', `can_edit` = 1, `type` = 'number', `description` = 'goldAliii: 7%', `value` = '0.005', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'fee_service_charge_percentage'; UPDATE `settings` SET `title_fa` = 'اختلاف قیمت پایه (ریال)', `can_edit` = 1, `type` = 'number', `description` = 'پیش‌فرض Laravel fee.single', `value` = '500000', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'fee_single'; UPDATE `settings` SET `title_fa` = 'پاداش معرف‌شونده', `can_edit` = 1, `type` = 'number', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'gift_for_referral'; UPDATE `settings` SET `title_fa` = 'پاداش معرف', `can_edit` = 1, `type` = 'number', `description` = NULL, `value` = '0.005', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'gift_for_referrer'; UPDATE `settings` SET `title_fa` = 'پیامک گروهی', `can_edit` = 1, `type` = 'switch', `description` = NULL, `value` = 'false', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'group_sms'; UPDATE `settings` SET `title_fa` = 'چت پشتیبانی', `can_edit` = 1, `type` = 'switch', `description` = NULL, `value` = 'true', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'has_chat'; UPDATE `settings` SET `title_fa` = 'صفحه کسب درآمد', `can_edit` = 1, `type` = 'switch', `description` = 'in server', `value` = 'false', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'has_page_earn_money'; UPDATE `settings` SET `title_fa` = 'صفحه صندوق', `can_edit` = 1, `type` = 'switch', `description` = NULL, `value` = 'true', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'has_page_fund'; UPDATE `settings` SET `title_fa` = 'صفحه مجوزها', `can_edit` = 1, `type` = 'switch', `description` = NULL, `value` = 'true', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'has_page_permission'; UPDATE `settings` SET `title_fa` = 'صفحه طلای فیزیکی', `can_edit` = 1, `type` = 'switch', `description` = NULL, `value` = 'true', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'has_page_physical_gold'; UPDATE `settings` SET `title_fa` = 'صفحه هشدار قیمت', `can_edit` = 1, `type` = 'switch', `description` = NULL, `value` = 'true', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'has_page_price_trigger'; UPDATE `settings` SET `title_fa` = 'کد معرف اجباری (قدیمی)', `can_edit` = 1, `type` = 'switch', `description` = NULL, `value` = 'true', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'is_requaire_referral'; UPDATE `settings` SET `title_fa` = 'تأیید کارت بانکی با جیبیت', `can_edit` = 1, `type` = 'switch', `description` = 'true/false — BankAccountController', `value` = 'false', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'jibit_verification'; UPDATE `settings` SET `title_fa` = 'کلید داخلی اپ', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = 'abaeigold', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'key'; UPDATE `settings` SET `title_fa` = '', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = 'logo_login', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'logo_login'; UPDATE `settings` SET `title_fa` = 'لوگوی صفحه ورود', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = 'logo_register', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'logo_register'; UPDATE `settings` SET `title_fa` = 'قیمت صفحه اصلی', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '13', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'main_product'; UPDATE `settings` SET `title_fa` = 'قیمت از محصول (legacy)', `can_edit` = 1, `type` = 'switch', `description` = 'از price_provider استفاده کنید', `value` = 'false', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'main_product_price'; UPDATE `settings` SET `title_fa` = 'عنوان فلز در UI', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'metal_type'; UPDATE `settings` SET `title_fa` = 'حداقل اولین خرید (ریال)', `can_edit` = 1, `type` = 'number', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'min_first_buy'; UPDATE `settings` SET `title_fa` = 'حداقل برداشت (ریال)', `can_edit` = 1, `type` = 'number', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'min_withdraw'; UPDATE `settings` SET `title_fa` = 'حداقل فروش', `can_edit` = 1, `type` = 'number', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'minimum_sell'; UPDATE `settings` SET `title_fa` = 'نام فروشگاه', `can_edit` = 1, `type` = 'text', `description` = 'RequestsController — اختیاری', `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'montify_name'; UPDATE `settings` SET `title_fa` = 'آدرس سرور همکار', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = 'https://limangold.ir', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'montzar_base_url'; UPDATE `settings` SET `title_fa` = 'بسته بودن همکار', `can_edit` = 1, `type` = 'switch', `description` = NULL, `value` = 'false', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'montzar_closed'; UPDATE `settings` SET `title_fa` = 'اختلاف قیمت همکار', `can_edit` = 0, `type` = 'text', `description` = 'سیستم پر می‌کند', `value` = '300106.05286206', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'montzar_diff'; UPDATE `settings` SET `title_fa` = 'قیمت لحظه‌ای همکار', `can_edit` = 0, `type` = 'text', `description` = NULL, `value` = '179740440.58339', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'montzar_live_price'; UPDATE `settings` SET `title_fa` = 'مظنه همکار', `can_edit` = 0, `type` = 'text', `description` = NULL, `value` = '778600000', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'montzar_mazaneh'; UPDATE `settings` SET `title_fa` = 'موبایل API همکار', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '09901810700', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'montzar_mobile'; UPDATE `settings` SET `title_fa` = 'باز بودن خرید همکار', `can_edit` = 1, `type` = 'switch', `description` = NULL, `value` = 'true', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'montzar_open_buy'; UPDATE `settings` SET `title_fa` = 'باز بودن فروش همکار', `can_edit` = 1, `type` = 'switch', `description` = NULL, `value` = 'true', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'montzar_open_sell'; UPDATE `settings` SET `title_fa` = 'رمز API همکار', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '09901810700', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'montzar_password'; UPDATE `settings` SET `title_fa` = 'قیمت از همکار (montzar)', `can_edit` = 1, `type` = 'switch', `description` = 'گلد علی: false — zaarbox فعال', `value` = 'true', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'montzar_price'; UPDATE `settings` SET `title_fa` = 'کد محصول همکار', `can_edit` = 1, `type` = 'number', `description` = NULL, `value` = '25', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'montzar_product_id'; UPDATE `settings` SET `title_fa` = 'توکن همکار (خودکار)', `can_edit` = 0, `type` = 'text', `description` = NULL, `value` = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2xpbWFuZ29sZC5pci9zZXJ2ZXIvYXV0aC9sb2dpbiIsImlhdCI6MTc4MDQ5MjE0MiwiZXhwIjoxNzgzMDg0MTQyLCJuYmYiOjE3ODA0OTIxNDIsImp0aSI6IkZyYWwzN09jMzB4SHJRM1MiLCJzdWIiOiIzMzQ2IiwicHJ2IjoiMWQwYTAyMGFjZjVjNGI2YzQ5Nzk4OWRmMWFiZjBmYmQ0ZThjOGQ2MyJ9.cw31HhaBYJtNvTNnJwctU1J5tGp1-FDtIQVSU67HZA8', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'montzar_token'; UPDATE `settings` SET `title_fa` = 'مظنه خرید همکار', `can_edit` = 0, `type` = 'text', `description` = NULL, `value` = '779900000', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'montzar_truly_buy_mazaneh'; UPDATE `settings` SET `title_fa` = 'مظنه فروش همکار', `can_edit` = 0, `type` = 'text', `description` = NULL, `value` = '777300000', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'montzar_truly_sell_mazaneh'; UPDATE `settings` SET `title_fa` = 'نام انگلیسی اپ', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = 'abaei_gold', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'name_en'; UPDATE `settings` SET `title_fa` = 'نام فارسی اپ', `can_edit` = 1, `type` = 'text', `description` = 'پلتفرم خرید و فروش آنلاین طلای آبشده . اولین ایده پرداز قلک طلا در ایران', `value` = 'عبایی گلد', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'name_fa'; UPDATE `settings` SET `title_fa` = 'شناسه کلاینت API خارجی (X-Client-Id)', `can_edit` = 1, `type` = NULL, `description` = 'مقدار قبلی .env: NODE_CLIENT_ID', `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'node_client_id'; UPDATE `settings` SET `title_fa` = 'کلید امضای HMAC API خارجی', `can_edit` = 1, `type` = NULL, `description` = 'مقدار قبلی .env: NODE_SHARED_SECRET', `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'node_shared_secret'; UPDATE `settings` SET `title_fa` = 'ثبت‌نام باز', `can_edit` = 1, `type` = 'switch', `description` = NULL, `value` = 'true', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'open_register'; UPDATE `settings` SET `title_fa` = 'customer_id fin', `can_edit` = 1, `type` = 'number', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'payping_fin_customer_id'; UPDATE `settings` SET `title_fa` = 'همگام‌سازی fin لیمان', `can_edit` = 1, `type` = 'switch', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'payping_fin_sync_enabled'; UPDATE `settings` SET `title_fa` = 'توکن fin', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'payping_fin_token'; UPDATE `settings` SET `title_fa` = 'URL fin', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'payping_fin_url'; UPDATE `settings` SET `title_fa` = 'item تکی (legacy)', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'payping_gateway_item'; UPDATE `settings` SET `title_fa` = 'لیست item (چرخشی)', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'payping_gateway_items'; UPDATE `settings` SET `title_fa` = 'نام gateway درگاه', `can_edit` = 1, `type` = 'select', `description` = 'sepal,', `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'payping_gateway_name'; UPDATE `settings` SET `title_fa` = 'گرد کردن مبلغ به تومان', `can_edit` = 0, `type` = 'switch', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'payping_round_toman'; UPDATE `settings` SET `title_fa` = 'آدرس شروع درگاه', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'payping_start_url'; UPDATE `settings` SET `title_fa` = 'اولویت تراکنش ناموفق', `can_edit` = 0, `type` = 'switch', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'payping_strict_failed_withdraw'; UPDATE `settings` SET `title_fa` = 'آدرس تأیید درگاه', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'payping_verify_url'; UPDATE `settings` SET `title_fa` = 'تاریخ min/max روز', `can_edit` = 0, `type` = 'text', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'price_extreme_date'; UPDATE `settings` SET `title_fa` = 'منبع قیمت', `can_edit` = 1, `type` = 'select', `description` = 'montzar,zaarbox,main_product,etehadie,taban_gohar', `value` = 'montzar', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'price_provider'; UPDATE `settings` SET `title_fa` = 'باز/بسته خودکار محصول', `can_edit` = 1, `type` = 'switch', `description` = NULL, `value` = 'true', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'product_auto_close_open_on_list'; UPDATE `settings` SET `title_fa` = 'بروز قیمت در لیست محصول', `can_edit` = 1, `type` = 'switch', `description` = NULL, `value` = 'true', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'product_update_price_on_list'; UPDATE `settings` SET `title_fa` = 'API سود طلا', `can_edit` = 0, `type` = 'switch', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'profit_gold_api_enabled'; UPDATE `settings` SET `title_fa` = 'مبلغ پاداش معرف', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'referral_bonus_amount'; UPDATE `settings` SET `title_fa` = 'تعداد معرف برای هدیه', `can_edit` = 1, `type` = 'number', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'referral_count_for_gift'; UPDATE `settings` SET `title_fa` = 'الزام کد معرف', `can_edit` = 0, `type` = 'select', `description` = 'required,', `value` = 'required', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'referral_id'; UPDATE `settings` SET `title_fa` = 'محدودیت دعوت', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'referral_limit'; UPDATE `settings` SET `title_fa` = 'تأیید کدملی/موبایل در ثبت‌نام', `can_edit` = 1, `type` = 'switch', `description` = 'AuthController', `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'register_jibit_verify'; UPDATE `settings` SET `title_fa` = 'پیام پاداش در SMS ثبت‌نام', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'register_referral_bonus_message'; UPDATE `settings` SET `title_fa` = 'SMS به معرف هنگام ثبت‌نام', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'register_referral_sms_to_referrer'; UPDATE `settings` SET `title_fa` = 'سود/اختلاف فروش (ریال)', `can_edit` = 1, `type` = 'number', `description` = 'اگر خالی باشد از fee_single', `value` = '0', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'sell_fee'; UPDATE `settings` SET `title_fa` = 'ارسال ته‌حساب', `can_edit` = 0, `type` = 'switch', `description` = NULL, `value` = 'false', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'send_to_tahesab'; UPDATE `settings` SET `title_fa` = 'آدرس API سرور', `can_edit` = 1, `type` = 'text', `description` = 'in server', `value` = 'https://abaeigold.ir/api', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'server_url'; UPDATE `settings` SET `title_fa` = 'نمایش آخرین قیمت DB اگر API قطع شد', `can_edit` = 1, `type` = 'switch', `description` = NULL, `value` = 'false', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'show_last_price'; UPDATE `settings` SET `title_fa` = 'شروع بازه معامله', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '10:00', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'startDay'; UPDATE `settings` SET `title_fa` = 'قیمت تابان گوهر', `can_edit` = 1, `type` = 'switch', `description` = NULL, `value` = 'false', `is_active` = 1, `updated_at` = NOW() WHERE `key` = 'tabanGohar_price'; UPDATE `settings` SET `title_fa` = 'حساب بانکی ته‌حساب', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'tahesab_bank_account'; UPDATE `settings` SET `title_fa` = 'دیتابیس ته‌حساب', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'tahesab_db'; UPDATE `settings` SET `title_fa` = 'توکن ته‌حساب', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'tahesab_token'; UPDATE `settings` SET `title_fa` = 'توکن بات تلگرام', `can_edit` = 0, `type` = 'text', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'telegram_bot_token'; UPDATE `settings` SET `title_fa` = '', `can_edit` = 1, `type` = 'text', `description` = 'تستی است', `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'test*'; UPDATE `settings` SET `title_fa` = 'متن درباره ما', `can_edit` = 1, `type` = 'longtext', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'text_about'; UPDATE `settings` SET `title_fa` = 'متن قوانین', `can_edit` = 1, `type` = 'longtext', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'text_rule'; UPDATE `settings` SET `title_fa` = 'عنوان favicon', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'title_fav'; UPDATE `settings` SET `title_fa` = 'عنوان PWA', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'title_pwa'; UPDATE `settings` SET `title_fa` = 'بیشترین قیمت امروز', `can_edit` = 0, `type` = 'number', `description` = 'ReportController', `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'up_price'; UPDATE `settings` SET `title_fa` = 'url زرباکس', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'zaarbox_api_url'; UPDATE `settings` SET `title_fa` = 'کد محصول زرباکس', `can_edit` = 1, `type` = 'text', `description` = NULL, `value` = '', `is_active` = 0, `updated_at` = NOW() WHERE `key` = 'zaarbox_price_key'; -- 3) logo_login normalize DELETE FROM `settings` WHERE `key` LIKE 'logo_login%' AND `key` <> 'logo_login' AND EXISTS (SELECT 1 FROM (SELECT `id`, `key` FROM `settings`) AS `s` WHERE `s`.`key` = 'logo_login'); UPDATE `settings` SET `key` = 'logo_login', `value` = TRIM(REPLACE(REPLACE(`value`, CHAR(13), ''), CHAR(10), '')), `updated_at` = NOW() WHERE `key` LIKE 'logo_login%' AND `key` <> 'logo_login'; -- 4) DELETE extras DELETE FROM `settings` WHERE `key` NOT IN ( 'admin_url', 'app_url', 'auto_active_customer', 'bace_url', 'balance_report_exclude_customer_id', 'bale_bot_token', 'buy_fee', 'charge_notif', 'chart_id', 'close_price', 'color_primary', 'color_secondary', 'display_montzar', 'down_price', 'endDay', 'etehadie_api_url', 'external_order_api_enabled', 'fee_cash', 'fee_free', 'fee_service_charge_percentage', 'fee_single', 'gift_for_referral', 'gift_for_referrer', 'group_sms', 'has_chat', 'has_page_earn_money', 'has_page_fund', 'has_page_permission', 'has_page_physical_gold', 'has_page_price_trigger', 'is_requaire_referral', 'jibit_verification', 'key', 'logo_login', 'logo_register', 'main_product', 'main_product_price', 'metal_type', 'min_first_buy', 'min_withdraw', 'minimum_sell', 'montify_name', 'montzar_base_url', 'montzar_closed', 'montzar_diff', 'montzar_live_price', 'montzar_mazaneh', 'montzar_mobile', 'montzar_open_buy', 'montzar_open_sell', 'montzar_password', 'montzar_price', 'montzar_product_id', 'montzar_token', 'montzar_truly_buy_mazaneh', 'montzar_truly_sell_mazaneh', 'name_en', 'name_fa', 'node_client_id', 'node_shared_secret', 'open_register', 'payping_fin_customer_id', 'payping_fin_sync_enabled', 'payping_fin_token', 'payping_fin_url', 'payping_gateway_item', 'payping_gateway_items', 'payping_gateway_name', 'payping_round_toman', 'payping_start_url', 'payping_strict_failed_withdraw', 'payping_verify_url', 'price_extreme_date', 'price_provider', 'product_auto_close_open_on_list', 'product_update_price_on_list', 'profit_gold_api_enabled', 'referral_bonus_amount', 'referral_count_for_gift', 'referral_id', 'referral_limit', 'register_jibit_verify', 'register_referral_bonus_message', 'register_referral_sms_to_referrer', 'sell_fee', 'send_to_tahesab', 'server_url', 'show_last_price', 'startDay', 'tabanGohar_price', 'tahesab_bank_account', 'tahesab_db', 'tahesab_token', 'telegram_bot_token', 'test*', 'text_about', 'text_rule', 'title_fav', 'title_pwa', 'up_price', 'zaarbox_api_url', 'zaarbox_price_key' ); DELETE FROM `settings` WHERE `key` = 'price_method'; COMMIT;