fix all error 3
This commit is contained in:
@@ -36,12 +36,14 @@ WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'auto_active_customer'
|
||||
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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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);
|
||||
@@ -63,9 +65,10 @@ WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'color_secondary' LIMIT
|
||||
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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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);
|
||||
@@ -153,15 +156,18 @@ WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_base_url' LIMI
|
||||
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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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);
|
||||
@@ -180,15 +186,18 @@ 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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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);
|
||||
@@ -225,21 +234,24 @@ WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_gateway_items'
|
||||
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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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);
|
||||
@@ -249,9 +261,10 @@ WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'product_auto_close_ope
|
||||
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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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);
|
||||
@@ -276,9 +289,10 @@ WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'register_referral_sms_
|
||||
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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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);
|
||||
@@ -309,9 +323,10 @@ 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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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);
|
||||
@@ -327,9 +342,10 @@ 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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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);
|
||||
@@ -339,15 +355,16 @@ WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'zaarbox_price_key' LIM
|
||||
|
||||
-- 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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -384,15 +401,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -411,15 +429,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -456,15 +475,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -483,15 +503,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -546,15 +567,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -564,15 +586,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -600,15 +623,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -627,33 +651,36 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -663,15 +690,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -699,24 +727,26 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'نام فروشگاه',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = 'RequestsController — اختیاری',
|
||||
-- `value` = '',
|
||||
-- `is_active` = 0,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'montify_name';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -852,15 +882,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -879,24 +910,26 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -924,15 +957,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -942,15 +976,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -978,24 +1013,26 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -1023,15 +1060,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -1095,15 +1133,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -1167,42 +1206,46 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'حساب بانکی تهحساب',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = '',
|
||||
-- `is_active` = 0,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'tahesab_bank_account';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'دیتابیس تهحساب',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = '',
|
||||
-- `is_active` = 0,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'tahesab_db';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'توکن تهحساب',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = '',
|
||||
-- `is_active` = 0,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'tahesab_token';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -1230,42 +1273,46 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'عنوان favicon',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = '',
|
||||
-- `is_active` = 0,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'title_fav';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'عنوان PWA',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = '',
|
||||
-- `is_active` = 0,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'title_pwa';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'بیشترین قیمت امروز',
|
||||
-- `can_edit` = 0,
|
||||
-- `type` = 'number',
|
||||
-- `description` = 'ReportController',
|
||||
-- `value` = '',
|
||||
-- `is_active` = 0,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'up_price';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
|
||||
@@ -35,12 +35,14 @@ WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'auto_active_customer'
|
||||
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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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 'support_messenger_id', '', 'شناسه پشتیبانی پیامرسان', 1, 0, 'بله: یوزرنیم ble.ir | تلگرام: یوزرنیم | واتساپ: شماره با کد کشور | روبیکا/ایتا/سروش: یوزرنیم', 'text'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'support_messenger_id' LIMIT 1);
|
||||
@@ -71,9 +73,10 @@ WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'color_secondary' LIMIT
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
SELECT 'display_montzar', '', 'نمایش بلوک همکار در UI', 1, 0, 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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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);
|
||||
@@ -162,15 +165,18 @@ WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_base_url' LIMI
|
||||
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', '334733.67434615', 'اختلاف قیمت همکار', 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', '183572564.02763', 'قیمت لحظهای همکار', 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', '795200000', 'مظنه همکار', 0, 1, NULL, 'text'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_mazaneh' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'montzar_diff', '334733.67434615', 'اختلاف قیمت همکار', 0, 1, 'سیستم پر میکند', 'text'
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_diff' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'montzar_live_price', '183572564.02763', 'قیمت لحظهای همکار', 0, 1, NULL, 'text'
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_live_price' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'montzar_mazaneh', '795200000', 'مظنه همکار', 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', '09133745569', 'موبایل API همکار', 1, 1, NULL, 'text'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_mobile' LIMIT 1);
|
||||
@@ -189,15 +195,18 @@ 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', '1', 'کد محصول همکار', 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.eyJpc3MiOiJodHRwczovL2xpbWFuZ29sZC5pci9zZXJ2ZXIvYXV0aC9sb2dpbiIsImlhdCI6MTc3OTcxNTkxMywiZXhwIjoxNzgyMzA3OTEzLCJuYmYiOjE3Nzk3MTU5MTMsImp0aSI6ImZ4SDkwcWV4eHRiTmx5RUUiLCJzdWIiOiIzMzQ2IiwicHJ2IjoiMWQwYTAyMGFjZjVjNGI2YzQ5Nzk4OWRmMWFiZjBmYmQ0ZThjOGQ2MyJ9.M_Yff36nYQ94p8HnjB2wuHEQJaZTgW6Ppr-PRTXkyHE', 'توکن همکار (خودکار)', 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', '796650000', 'مظنه خرید همکار', 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', '793750000', 'مظنه فروش همکار', 0, 1, NULL, 'text'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_truly_sell_mazaneh' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'montzar_token', 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2xpbWFuZ29sZC5pci9zZXJ2ZXIvYXV0aC9sb2dpbiIsImlhdCI6MTc3OTcxNTkxMywiZXhwIjoxNzgyMzA3OTEzLCJuYmYiOjE3Nzk3MTU5MTMsImp0aSI6ImZ4SDkwcWV4eHRiTmx5RUUiLCJzdWIiOiIzMzQ2IiwicHJ2IjoiMWQwYTAyMGFjZjVjNGI2YzQ5Nzk4OWRmMWFiZjBmYmQ0ZThjOGQ2MyJ9.M_Yff36nYQ94p8HnjB2wuHEQJaZTgW6Ppr-PRTXkyHE', 'توکن همکار (خودکار)', 0, 1, NULL, 'text'
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_token' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'montzar_truly_buy_mazaneh', '796650000', 'مظنه خرید همکار', 0, 1, NULL, 'text'
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_truly_buy_mazaneh' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'montzar_truly_sell_mazaneh', '793750000', 'مظنه فروش همکار', 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', 'abshode_rahimi', 'نام انگلیسی اپ', 1, 1, NULL, 'text'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'name_en' LIMIT 1);
|
||||
@@ -234,21 +243,24 @@ WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_gateway_items'
|
||||
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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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', '', 'منبع قیمت', 1, 0, 'montzar,zaarbox,main_product,etehadie,taban_gohar', 'select'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'price_provider' LIMIT 1);
|
||||
@@ -258,9 +270,10 @@ WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'product_auto_close_ope
|
||||
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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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);
|
||||
@@ -285,9 +298,10 @@ WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'register_referral_sms_
|
||||
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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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://app.abshodehrahimi.ir/api', 'آدرس API سرور', 1, 1, 'in server', 'text'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'server_url' LIMIT 1);
|
||||
@@ -309,9 +323,10 @@ 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', 'X4V2Q8J1C4P1A7P7P5K2E6X2U1L8D4E4Y8N5Q4O6N2R6L2H1W1S1W1N1E5F6A8F7N4U2X4J4B4R2R2W2', 'توکن تهحساب', 1, 1, 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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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);
|
||||
@@ -327,9 +342,10 @@ 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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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);
|
||||
@@ -339,15 +355,16 @@ WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'zaarbox_price_key' LIM
|
||||
|
||||
-- 2) UPDATE
|
||||
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'آدرس پنل ادمین',
|
||||
`can_edit` = 1,
|
||||
`type` = 'text',
|
||||
`description` = NULL,
|
||||
`value` = 'https://app.abshodehrahimi.ir/admin/',
|
||||
`is_active` = 1,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'admin_url';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'آدرس پنل ادمین',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = 'https://app.abshodehrahimi.ir/admin/',
|
||||
-- `is_active` = 1,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'admin_url';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'آدرس اپ (کاربر)',
|
||||
`can_edit` = 1,
|
||||
@@ -384,15 +401,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -438,15 +456,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -483,15 +502,16 @@ UPDATE `settings` SET
|
||||
`is_active` = 0,
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -510,15 +530,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -573,15 +594,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -591,15 +613,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -627,15 +650,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -654,34 +678,37 @@ UPDATE `settings` SET
|
||||
`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` = '',
|
||||
`is_active` = 0,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'main_product';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'قیمت صفحه اصلی',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = '',
|
||||
-- `is_active` = 0,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'main_product';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'قیمت از محصول (legacy)',
|
||||
`can_edit` = 1,
|
||||
@@ -691,15 +718,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -727,24 +755,26 @@ UPDATE `settings` SET
|
||||
`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://abshodehrahimi.ir',
|
||||
`is_active` = 1,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'montzar_base_url';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'نام فروشگاه',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = 'RequestsController — اختیاری',
|
||||
-- `value` = '',
|
||||
-- `is_active` = 0,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'montify_name';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'آدرس سرور همکار',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = 'https://abshodehrahimi.ir',
|
||||
-- `is_active` = 1,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'montzar_base_url';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'بسته بودن همکار',
|
||||
`can_edit` = 1,
|
||||
@@ -880,15 +910,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -907,24 +938,26 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -952,15 +985,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -970,15 +1004,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -1006,24 +1041,26 @@ UPDATE `settings` SET
|
||||
`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` = '',
|
||||
`is_active` = 0,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'price_provider';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'منبع قیمت',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'select',
|
||||
-- `description` = 'montzar,zaarbox,main_product,etehadie,taban_gohar',
|
||||
-- `value` = '',
|
||||
-- `is_active` = 0,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'price_provider';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'باز/بسته خودکار محصول',
|
||||
`can_edit` = 1,
|
||||
@@ -1051,15 +1088,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -1123,15 +1161,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -1168,42 +1207,46 @@ UPDATE `settings` SET
|
||||
`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` = 1,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'tahesab_bank_account';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'دیتابیس تهحساب',
|
||||
`can_edit` = 1,
|
||||
`type` = 'text',
|
||||
`description` = NULL,
|
||||
`value` = 'TahesabDB5',
|
||||
`is_active` = 1,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'tahesab_db';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'توکن تهحساب',
|
||||
`can_edit` = 1,
|
||||
`type` = 'text',
|
||||
`description` = NULL,
|
||||
`value` = 'X4V2Q8J1C4P1A7P7P5K2E6X2U1L8D4E4Y8N5Q4O6N2R6L2H1W1S1W1N1E5F6A8F7N4U2X4J4B4R2R2W2',
|
||||
`is_active` = 1,
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'حساب بانکی تهحساب',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = 'کشاورزي قلک',
|
||||
-- `is_active` = 1,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'tahesab_bank_account';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'دیتابیس تهحساب',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = 'TahesabDB5',
|
||||
-- `is_active` = 1,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'tahesab_db';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'توکن تهحساب',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = 'X4V2Q8J1C4P1A7P7P5K2E6X2U1L8D4E4Y8N5Q4O6N2R6L2H1W1S1W1N1E5F6A8F7N4U2X4J4B4R2R2W2',
|
||||
-- `is_active` = 1,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'tahesab_token';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -1231,42 +1274,46 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'عنوان favicon',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = '',
|
||||
-- `is_active` = 0,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'title_fav';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'عنوان PWA',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = '',
|
||||
-- `is_active` = 0,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'title_pwa';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'بیشترین قیمت امروز',
|
||||
-- `can_edit` = 0,
|
||||
-- `type` = 'number',
|
||||
-- `description` = 'ReportController',
|
||||
-- `value` = '',
|
||||
-- `is_active` = 0,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'up_price';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
|
||||
@@ -8,15 +8,16 @@ ALTER TABLE `settings`
|
||||
|
||||
START TRANSACTION;
|
||||
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'آدرس پنل ادمین',
|
||||
`can_edit` = 1,
|
||||
`type` = 'text',
|
||||
`description` = NULL,
|
||||
`value` = 'https://app.abshodehrahimi.ir/admin/',
|
||||
`is_active` = 1,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'admin_url';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'آدرس پنل ادمین',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = 'https://app.abshodehrahimi.ir/admin/',
|
||||
-- `is_active` = 1,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'admin_url';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'آدرس اپ (کاربر)',
|
||||
`can_edit` = 1,
|
||||
@@ -53,15 +54,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -80,15 +82,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -125,15 +128,16 @@ UPDATE `settings` SET
|
||||
`is_active` = 0,
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -152,15 +156,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -215,15 +220,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -233,15 +239,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -269,15 +276,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -305,34 +313,37 @@ UPDATE `settings` SET
|
||||
`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` = '',
|
||||
`is_active` = 0,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'main_product';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'قیمت صفحه اصلی',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = '',
|
||||
-- `is_active` = 0,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'main_product';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'قیمت از محصول (legacy)',
|
||||
`can_edit` = 1,
|
||||
@@ -342,15 +353,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -378,24 +390,26 @@ UPDATE `settings` SET
|
||||
`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://abshodehrahimi.ir',
|
||||
`is_active` = 1,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'montzar_base_url';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'نام فروشگاه',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = 'RequestsController — اختیاری',
|
||||
-- `value` = '',
|
||||
-- `is_active` = 0,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'montify_name';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'آدرس سرور همکار',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = 'https://abshodehrahimi.ir',
|
||||
-- `is_active` = 1,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'montzar_base_url';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'بسته بودن همکار',
|
||||
`can_edit` = 1,
|
||||
@@ -531,15 +545,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -558,24 +573,26 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -603,15 +620,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -621,15 +639,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -657,24 +676,26 @@ UPDATE `settings` SET
|
||||
`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` = '',
|
||||
`is_active` = 0,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'price_provider';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'منبع قیمت',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'select',
|
||||
-- `description` = 'montzar,zaarbox,main_product,etehadie,taban_gohar',
|
||||
-- `value` = '',
|
||||
-- `is_active` = 0,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'price_provider';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'باز/بسته خودکار محصول',
|
||||
`can_edit` = 1,
|
||||
@@ -702,15 +723,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -774,15 +796,16 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -819,42 +842,46 @@ UPDATE `settings` SET
|
||||
`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` = 1,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'tahesab_bank_account';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'دیتابیس تهحساب',
|
||||
`can_edit` = 1,
|
||||
`type` = 'text',
|
||||
`description` = NULL,
|
||||
`value` = 'TahesabDB5',
|
||||
`is_active` = 1,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'tahesab_db';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'توکن تهحساب',
|
||||
`can_edit` = 1,
|
||||
`type` = 'text',
|
||||
`description` = NULL,
|
||||
`value` = 'X4V2Q8J1C4P1A7P7P5K2E6X2U1L8D4E4Y8N5Q4O6N2R6L2H1W1S1W1N1E5F6A8F7N4U2X4J4B4R2R2W2',
|
||||
`is_active` = 1,
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'حساب بانکی تهحساب',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = 'کشاورزي قلک',
|
||||
-- `is_active` = 1,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'tahesab_bank_account';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'دیتابیس تهحساب',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = 'TahesabDB5',
|
||||
-- `is_active` = 1,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'tahesab_db';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'توکن تهحساب',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = 'X4V2Q8J1C4P1A7P7P5K2E6X2U1L8D4E4Y8N5Q4O6N2R6L2H1W1S1W1N1E5F6A8F7N4U2X4J4B4R2R2W2',
|
||||
-- `is_active` = 1,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'tahesab_token';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -882,42 +909,46 @@ UPDATE `settings` SET
|
||||
`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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'عنوان favicon',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = '',
|
||||
-- `is_active` = 0,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'title_fav';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'عنوان PWA',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = '',
|
||||
-- `is_active` = 0,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'title_pwa';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'بیشترین قیمت امروز',
|
||||
-- `can_edit` = 0,
|
||||
-- `type` = 'number',
|
||||
-- `description` = 'ReportController',
|
||||
-- `value` = '',
|
||||
-- `is_active` = 0,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'up_price';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
|
||||
@@ -13,10 +13,12 @@
|
||||
-- UPDATE `settings` SET `value` = '13,25' WHERE `key` = 'main_wallet_products';
|
||||
-- ============================================================================
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
SELECT 'main_wallet_products', '', 'محصولات متصل به کیف اصلی', 0, 1,
|
||||
'idهای محصول با کاما (مثل 13,25). موجودی این محصولات = gold کیف اصلی. خالی = غیرفعال'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'main_wallet_products' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'main_wallet_products', '', 'محصولات متصل به کیف اصلی', 0, 1,
|
||||
-- 'idهای محصول با کاما (مثل 13,25). موجودی این محصولات = gold کیف اصلی. خالی = غیرفعال'
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'main_wallet_products' LIMIT 1);
|
||||
|
||||
-- اگر کلید از قبل وجود دارد، قابل ادیت نبودنش تضمین شود
|
||||
UPDATE `settings` SET `can_edit` = 0 WHERE `key` = 'main_wallet_products';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `can_edit` = 0 WHERE `key` = 'main_wallet_products';
|
||||
|
||||
@@ -1,27 +1,29 @@
|
||||
-- سامانههای ردیابی (آنالیتیکس) — can_edit=0، مقدار JSON
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `type`, `can_edit`, `is_active`, `description`, `created_at`, `updated_at`)
|
||||
SELECT
|
||||
'tracking_systems',
|
||||
'[]',
|
||||
'سامانههای ردیابی',
|
||||
'longtext',
|
||||
0,
|
||||
1,
|
||||
'JSON: [{"type":"gtag","id":"G-XXXXXXX","enabled":true}] — type: gtag|gtm|clarity|custom',
|
||||
NOW(),
|
||||
NOW()
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'tracking_systems' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `type`, `can_edit`, `is_active`, `description`, `created_at`, `updated_at`)
|
||||
-- SELECT
|
||||
-- 'tracking_systems',
|
||||
-- '[]',
|
||||
-- 'سامانههای ردیابی',
|
||||
-- 'longtext',
|
||||
-- 0,
|
||||
-- 1,
|
||||
-- 'JSON: [{"type":"gtag","id":"G-XXXXXXX","enabled":true}] — type: gtag|gtm|clarity|custom',
|
||||
-- NOW(),
|
||||
-- NOW()
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'tracking_systems' LIMIT 1);
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `type`, `can_edit`, `is_active`, `description`, `created_at`, `updated_at`)
|
||||
SELECT
|
||||
'tracking_systems_enabled',
|
||||
'false',
|
||||
'نمایش سامانههای ردیابی',
|
||||
'switch',
|
||||
0,
|
||||
1,
|
||||
'روشن: اسکریپتهای tracking_systems در اپ مشتری بارگذاری میشوند؛ خاموش: هیچ ردیابی فعال نیست',
|
||||
NOW(),
|
||||
NOW()
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'tracking_systems_enabled' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `type`, `can_edit`, `is_active`, `description`, `created_at`, `updated_at`)
|
||||
-- SELECT
|
||||
-- 'tracking_systems_enabled',
|
||||
-- 'false',
|
||||
-- 'نمایش سامانههای ردیابی',
|
||||
-- 'switch',
|
||||
-- 0,
|
||||
-- 1,
|
||||
-- 'روشن: اسکریپتهای tracking_systems در اپ مشتری بارگذاری میشوند؛ خاموش: هیچ ردیابی فعال نیست',
|
||||
-- NOW(),
|
||||
-- NOW()
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'tracking_systems_enabled' LIMIT 1);
|
||||
|
||||
@@ -88,13 +88,15 @@ INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `de
|
||||
SELECT 'montzar_base_url', 'https://limangold.ir', 'آدرس سرور همکار', 1, 1, NULL
|
||||
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`)
|
||||
SELECT 'montzar_token', '', 'توکن همکار (سیستم)', 0, 1, 'خودکار پر میشود'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_token' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'montzar_token', '', 'توکن همکار (سیستم)', 0, 1, 'خودکار پر میشود'
|
||||
-- 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`)
|
||||
SELECT 'montzar_closed', 'false', 'بسته بودن سرویس همکار', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_closed' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'montzar_closed', 'false', 'بسته بودن سرویس همکار', 0, 1, NULL
|
||||
-- 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`)
|
||||
SELECT 'montzar_open_buy', 'true', 'باز بودن خرید همکار', 1, 1, NULL
|
||||
@@ -104,25 +106,30 @@ INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `de
|
||||
SELECT 'montzar_open_sell', 'true', 'باز بودن فروش همکار', 1, 1, NULL
|
||||
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`)
|
||||
SELECT 'montzar_diff', '0', 'اختلاف قیمت همکار (سیستم)', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_diff' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'montzar_diff', '0', 'اختلاف قیمت همکار (سیستم)', 0, 1, NULL
|
||||
-- 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`)
|
||||
SELECT 'montzar_live_price', '0', 'قیمت لحظهای همکار', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_live_price' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'montzar_live_price', '0', 'قیمت لحظهای همکار', 0, 1, NULL
|
||||
-- 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`)
|
||||
SELECT 'montzar_mazaneh', '0', 'مظنه همکار', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_mazaneh' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'montzar_mazaneh', '0', 'مظنه همکار', 0, 1, NULL
|
||||
-- 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`)
|
||||
SELECT 'montzar_truly_buy_mazaneh', '0', 'مظنه خرید واقعی همکار', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_truly_buy_mazaneh' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'montzar_truly_buy_mazaneh', '0', 'مظنه خرید واقعی همکار', 0, 1, NULL
|
||||
-- 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`)
|
||||
SELECT 'montzar_truly_sell_mazaneh', '0', 'مظنه فروش واقعی همکار', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_truly_sell_mazaneh' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'montzar_truly_sell_mazaneh', '0', 'مظنه فروش واقعی همکار', 0, 1, NULL
|
||||
-- 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`)
|
||||
SELECT 'display_montzar', 'true', 'نمایش بلوک همکار در UI', 1, 1, NULL
|
||||
@@ -275,13 +282,15 @@ INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `de
|
||||
SELECT 'price_liman', 'false', 'دریافت قیمت از لیمان (legacy)', 1, 1, NULL, 'switch'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'price_liman' LIMIT 1);
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
SELECT 'montzar_order_response', '[]', 'پاسخ سفارش همکار', 0, 1, NULL, 'longtext'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_order_response' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'montzar_order_response', '[]', 'پاسخ سفارش همکار', 0, 1, NULL, 'longtext'
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_order_response' LIMIT 1);
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
SELECT 'montzar_last_product_log', '{}', 'لاگ محصول همکار', 0, 1, NULL, 'longtext'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_last_product_log' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'montzar_last_product_log', '{}', 'لاگ محصول همکار', 0, 1, NULL, 'longtext'
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_last_product_log' LIMIT 1);
|
||||
|
||||
-- -----------------------------------------------------------------------------
|
||||
-- const پر شده → settings خالی (مهاجرت؛ value پر overwrite نمیشود)
|
||||
@@ -392,34 +401,49 @@ UPDATE `settings` SET `title_fa` = 'نام فارسی', `type` = 'text
|
||||
UPDATE `settings` SET `title_fa` = 'نام انگلیسی', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'name_en';
|
||||
UPDATE `settings` SET `title_fa` = 'آدرس اپ (کاربر)', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'app_url';
|
||||
UPDATE `settings` SET `title_fa` = 'آدرس پایه سرور', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'bace_url';
|
||||
UPDATE `settings` SET `title_fa` = 'لوگوی ورود', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'logo_login';
|
||||
UPDATE `settings` SET `title_fa` = 'لوگوی ثبتنام', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'logo_register';
|
||||
UPDATE `settings` SET `title_fa` = 'آدرس پنل ادمین', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'admin_url';
|
||||
UPDATE `settings` SET `title_fa` = 'عنوان PWA', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'title_pwa';
|
||||
UPDATE `settings` SET `title_fa` = 'عنوان favicon', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'title_fav';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'لوگوی ورود', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'logo_login';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'لوگوی ثبتنام', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'logo_register';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'آدرس پنل ادمین', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'admin_url';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'عنوان PWA', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'title_pwa';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'عنوان favicon', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'title_fav';
|
||||
UPDATE `settings` SET `title_fa` = 'متن قوانین', `type` = 'longtext', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'text_rule';
|
||||
UPDATE `settings` SET `title_fa` = 'متن درباره ما', `type` = 'longtext', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'text_about';
|
||||
UPDATE `settings` SET `title_fa` = 'نوع فلز', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'metal_type';
|
||||
UPDATE `settings` SET `title_fa` = 'توکن تهحساب', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'tahesab_token';
|
||||
UPDATE `settings` SET `title_fa` = 'دیتابیس تهحساب', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'tahesab_db';
|
||||
UPDATE `settings` SET `title_fa` = 'حساب بانکی تهحساب', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'tahesab_bank_account';
|
||||
UPDATE `settings` SET `title_fa` = 'صفحه کسب درآمد', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'has_page_earn_money';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'نوع فلز', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'metal_type';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'توکن تهحساب', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'tahesab_token';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'دیتابیس تهحساب', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'tahesab_db';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'حساب بانکی تهحساب', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'tahesab_bank_account';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'صفحه کسب درآمد', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'has_page_earn_money';
|
||||
UPDATE `settings` SET `title_fa` = 'صفحه صندوق', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'has_page_fund';
|
||||
UPDATE `settings` SET `title_fa` = 'صفحه مجوزها', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'has_page_permission';
|
||||
UPDATE `settings` SET `title_fa` = 'صفحه هشدار قیمت', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'has_page_price_trigger';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'صفحه هشدار قیمت', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'has_page_price_trigger';
|
||||
UPDATE `settings` SET `title_fa` = 'صفحه طلای فیزیکی', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'has_page_physical_gold';
|
||||
UPDATE `settings` SET `title_fa` = 'رنگ اصلی', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'color_primary';
|
||||
UPDATE `settings` SET `title_fa` = 'رنگ ثانویه', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'color_secondary';
|
||||
UPDATE `settings` SET `title_fa` = 'چت', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'has_chat';
|
||||
UPDATE `settings` SET `title_fa` = 'آدرس API سرور', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'server_url';
|
||||
UPDATE `settings` SET `title_fa` = 'کلید اپ', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'key';
|
||||
UPDATE `settings` SET `title_fa` = 'توکن بات تلگرام', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'telegram_bot_token';
|
||||
UPDATE `settings` SET `title_fa` = 'توکن بات بله', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'bale_bot_token';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'توکن بات تلگرام', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'telegram_bot_token';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'توکن بات بله', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'bale_bot_token';
|
||||
UPDATE `settings` SET `title_fa` = 'پیامک شارژ ادمین', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'charge_notif';
|
||||
UPDATE `settings` SET `title_fa` = 'پیامک گروهی', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'group_sms';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'پیامک گروهی', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'group_sms';
|
||||
UPDATE `settings` SET `title_fa` = 'فعالسازی خودکار کاربر', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'auto_active_customer';
|
||||
UPDATE `settings` SET `title_fa` = 'ثبتنام باز', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'open_register';
|
||||
UPDATE `settings` SET `title_fa` = 'ارسال اسناد به تهحساب', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'send_to_tahesab';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'ارسال اسناد به تهحساب', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'send_to_tahesab';
|
||||
UPDATE `settings` SET `title_fa` = 'کد معرف اجباری (legacy)', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'is_requaire_referral';
|
||||
UPDATE `settings` SET `title_fa` = 'کد معرف', `type` = 'select', `is_active` = COALESCE(`is_active`, 1), `description` = 'required = اجباری|required,' WHERE `key` = 'referral_id';
|
||||
UPDATE `settings` SET `title_fa` = 'محدودیت دعوت', `type` = 'number', `is_active` = COALESCE(`is_active`, 0) WHERE `key` = 'referral_limit';
|
||||
@@ -432,16 +456,21 @@ UPDATE `settings` SET `title_fa` = 'کارمزد رایگان (تعداد)', `ty
|
||||
UPDATE `settings` SET `title_fa` = 'کارمزد درصدی (legacy)', `type` = 'number', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'fee';
|
||||
UPDATE `settings` SET `title_fa` = 'کارمزد درصدی', `type` = 'number', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'fee_service_charge_percentage';
|
||||
UPDATE `settings` SET `title_fa` = 'کارمزد درصدی (alias)', `type` = 'number', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'service_charge_percentage';
|
||||
UPDATE `settings` SET `title_fa` = 'کارمزد ریالی', `type` = 'number', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'fee_cash';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'کارمزد ریالی', `type` = 'number', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'fee_cash';
|
||||
UPDATE `settings` SET `title_fa` = 'اختلاف با قیمت واقعی', `type` = 'number', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'fee_single';
|
||||
UPDATE `settings` SET `title_fa` = 'سود خرید', `type` = 'number', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'buy_fee';
|
||||
UPDATE `settings` SET `title_fa` = 'سود فروش', `type` = 'number', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'sell_fee';
|
||||
UPDATE `settings` SET `title_fa` = 'منبع قیمت', `type` = 'select', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 1, `description` = 'montzar,zaarbox,main_product,etehadie,taban_gohar' WHERE `key` = 'price_provider';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'منبع قیمت', `type` = 'select', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 1, `description` = 'montzar,zaarbox,main_product,etehadie,taban_gohar' WHERE `key` = 'price_provider';
|
||||
UPDATE `settings` SET `title_fa` = 'منبع قیمت (legacy)', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'price_primary_source';
|
||||
UPDATE `settings` SET `title_fa` = 'محصول آبشده', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 1 WHERE `key` = 'main_product';
|
||||
UPDATE `settings` SET `title_fa` = 'آدرس API Zaarbox', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 1 WHERE `key` = 'zaarbox_api_url';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'محصول آبشده', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 1 WHERE `key` = 'main_product';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'آدرس API Zaarbox', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 1 WHERE `key` = 'zaarbox_api_url';
|
||||
UPDATE `settings` SET `title_fa` = 'شناسه ردیف Zaarbox', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 1 WHERE `key` = 'zaarbox_price_key';
|
||||
UPDATE `settings` SET `title_fa` = 'UUID نمودار Zaarbox', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 1 WHERE `key` = 'chart_id';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'UUID نمودار Zaarbox', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 1 WHERE `key` = 'chart_id';
|
||||
UPDATE `settings` SET `title_fa` = 'آدرس API اتحادیه', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'etehadie_api_url';
|
||||
UPDATE `settings` SET `title_fa` = 'دریافت قیمت از محصولات', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'main_product_price';
|
||||
UPDATE `settings` SET `title_fa` = 'دریافت قیمت تابانگوهر', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'tabanGohar_price';
|
||||
@@ -449,26 +478,41 @@ UPDATE `settings` SET `title_fa` = 'نشان دادن آخرین قیمت', `ty
|
||||
UPDATE `settings` SET `title_fa` = 'بستن قیمت در ساعات مشخص', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'close_price';
|
||||
UPDATE `settings` SET `title_fa` = 'ساعت شروع', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'startDay';
|
||||
UPDATE `settings` SET `title_fa` = 'ساعت پایان', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'endDay';
|
||||
UPDATE `settings` SET `title_fa` = 'بیشترین قیمت امروز', `type` = 'number', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'up_price';
|
||||
UPDATE `settings` SET `title_fa` = 'کمترین قیمت امروز', `type` = 'number', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'down_price';
|
||||
UPDATE `settings` SET `title_fa` = 'تاریخ min/max روز', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'price_extreme_date';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'بیشترین قیمت امروز', `type` = 'number', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'up_price';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'کمترین قیمت امروز', `type` = 'number', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'down_price';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'تاریخ min/max روز', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'price_extreme_date';
|
||||
UPDATE `settings` SET `title_fa` = 'دریافت قیمت از همکار', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'montzar_price';
|
||||
UPDATE `settings` SET `title_fa` = 'نمایش بلوک همکار', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'display_montzar';
|
||||
UPDATE `settings` SET `title_fa` = 'شماره همراه همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'montzar_mobile';
|
||||
UPDATE `settings` SET `title_fa` = 'کلمه عبور همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'montzar_password';
|
||||
UPDATE `settings` SET `title_fa` = 'کد محصول همکار', `type` = 'number', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'montzar_product_id';
|
||||
UPDATE `settings` SET `title_fa` = 'آدرس API همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_base_url';
|
||||
UPDATE `settings` SET `title_fa` = 'توکن همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_token';
|
||||
UPDATE `settings` SET `title_fa` = 'بسته بودن سرویس همکار', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_closed';
|
||||
UPDATE `settings` SET `title_fa` = 'باز بودن خرید همکار', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_open_buy';
|
||||
UPDATE `settings` SET `title_fa` = 'باز بودن فروش همکار', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_open_sell';
|
||||
UPDATE `settings` SET `title_fa` = 'اختلاف قیمت همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_diff';
|
||||
UPDATE `settings` SET `title_fa` = 'قیمت لحظهای همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_live_price';
|
||||
UPDATE `settings` SET `title_fa` = 'مظنه همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_mazaneh';
|
||||
UPDATE `settings` SET `title_fa` = 'مظنه خرید واقعی همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_truly_buy_mazaneh';
|
||||
UPDATE `settings` SET `title_fa` = 'مظنه فروش واقعی همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_truly_sell_mazaneh';
|
||||
UPDATE `settings` SET `title_fa` = 'پاسخ سفارش همکار', `type` = 'longtext', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_order_response';
|
||||
UPDATE `settings` SET `title_fa` = 'لاگ محصول همکار', `type` = 'longtext', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_last_product_log';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'آدرس API همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_base_url';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'توکن همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_token';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'بسته بودن سرویس همکار', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_closed';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'باز بودن خرید همکار', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_open_buy';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'باز بودن فروش همکار', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_open_sell';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'اختلاف قیمت همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_diff';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'قیمت لحظهای همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_live_price';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'مظنه همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_mazaneh';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'مظنه خرید واقعی همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_truly_buy_mazaneh';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'مظنه فروش واقعی همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_truly_sell_mazaneh';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'پاسخ سفارش همکار', `type` = 'longtext', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_order_response';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'لاگ محصول همکار', `type` = 'longtext', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_last_product_log';
|
||||
UPDATE `settings` SET `title_fa` = 'توکن لیمان (legacy)', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'liman_token';
|
||||
UPDATE `settings` SET `title_fa` = 'رمز لیمان (legacy)', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'liman_password';
|
||||
UPDATE `settings` SET `title_fa` = 'موبایل لیمان (legacy)', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'liman_mobile';
|
||||
@@ -478,13 +522,16 @@ UPDATE `settings` SET `title_fa` = 'تأیید کارت با جیبیت', `type`
|
||||
UPDATE `settings` SET `title_fa` = 'تأیید کد ملی در ثبتنام', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'register_jibit_verify';
|
||||
UPDATE `settings` SET `title_fa` = 'بروزرسانی قیمت در لیست', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'product_update_price_on_list';
|
||||
UPDATE `settings` SET `title_fa` = 'باز/بسته خودکار محصول در لیست', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'product_auto_close_open_on_list';
|
||||
UPDATE `settings` SET `title_fa` = 'شناسه کلاینت API خارجی', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'node_client_id';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'شناسه کلاینت API خارجی', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'node_client_id';
|
||||
UPDATE `settings` SET `title_fa` = 'کلید HMAC API خارجی', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'node_shared_secret';
|
||||
UPDATE `settings` SET `title_fa` = 'API سفارش خارجی', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'external_order_api_enabled';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'API سفارش خارجی', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'external_order_api_enabled';
|
||||
UPDATE `settings` SET `title_fa` = 'پیامرسان پشتیبانی', `type` = 'select', `is_active` = COALESCE(`is_active`, 1), `description` = 'bale,telegram,whatsapp,rubika,eitaa,soroush' WHERE `key` = 'support_messenger';
|
||||
UPDATE `settings` SET `title_fa` = 'شناسه پشتیبانی', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'support_messenger_id';
|
||||
UPDATE `settings` SET `title_fa` = 'متن پشتیبانی', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'support_messenger_text';
|
||||
UPDATE `settings` SET `title_fa` = 'نام Montify', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'montify_name';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'نام Montify', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'montify_name';
|
||||
UPDATE `settings` SET `title_fa` = 'API سود طلا', `type` = 'switch', `is_active` = COALESCE(`is_active`, 0) WHERE `key` = 'profit_gold_api_enabled';
|
||||
|
||||
-- const — عنوان فارسی
|
||||
|
||||
@@ -98,12 +98,14 @@ 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 'key', 'demogold', 'کلید داخلی اپ', 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 '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 'send_to_tahesab', 'false', 'ارسال تهحساب', 0, 1, NULL, 'switch'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'send_to_tahesab' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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 'test*', '', '', 1, 0, 'تستی است', 'text'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'test*' LIMIT 1);
|
||||
@@ -125,9 +127,10 @@ 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 '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 'profit_gold_api_enabled', '', 'API سود طلا', 0, 0, NULL, 'switch'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'profit_gold_api_enabled' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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 'open_register', 'true', 'ثبتنام باز', 1, 1, NULL, 'switch'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'open_register' LIMIT 1);
|
||||
@@ -143,9 +146,10 @@ 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 'sell_fee', '', 'سود/اختلاف فروش (ریال)', 1, 0, 'اگر خالی باشد از 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 'referral_id', '', 'الزام کد معرف', 0, 0, 'required,', 'select'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'referral_id' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'referral_id', '', 'الزام کد معرف', 0, 0, '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 'fee_service_charge_percentage', '0.005', 'درصد کارمزد سفارش', 1, 1, 'مقدار نمونه: 0.07', 'number'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'fee_service_charge_percentage' LIMIT 1);
|
||||
@@ -164,12 +168,14 @@ WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_gateway_name'
|
||||
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_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_strict_failed_withdraw', '', 'اولویت تراکنش ناموفق', 0, 0, NULL, 'switch'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_strict_failed_withdraw' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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);
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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 'montzar_closed', '', 'بسته بودن همکار', 1, 0, NULL, 'switch'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_closed' LIMIT 1);
|
||||
@@ -212,30 +218,36 @@ WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_product_id' LI
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
SELECT 'montzar_base_url', '', 'آدرس سرور همکار', 1, 0, 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_token', '', 'توکن همکار (خودکار)', 0, 0, NULL, 'text'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_token' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'montzar_token', '', 'توکن همکار (خودکار)', 0, 0, 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_open_buy', '', 'باز بودن خرید همکار', 1, 0, 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', '', 'باز بودن فروش همکار', 1, 0, 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_diff', '', 'اختلاف قیمت همکار', 0, 0, 'سیستم پر میکند', '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', '', 'قیمت لحظهای همکار', 0, 0, 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', '', 'مظنه همکار', 0, 0, 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_truly_buy_mazaneh', '', 'مظنه خرید همکار', 0, 0, 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', '', 'مظنه فروش همکار', 0, 0, NULL, 'text'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_truly_sell_mazaneh' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'montzar_diff', '', 'اختلاف قیمت همکار', 0, 0, 'سیستم پر میکند', 'text'
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_diff' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'montzar_live_price', '', 'قیمت لحظهای همکار', 0, 0, NULL, 'text'
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_live_price' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'montzar_mazaneh', '', 'مظنه همکار', 0, 0, NULL, 'text'
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_mazaneh' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'montzar_truly_buy_mazaneh', '', 'مظنه خرید همکار', 0, 0, NULL, 'text'
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_truly_buy_mazaneh' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'montzar_truly_sell_mazaneh', '', 'مظنه فروش همکار', 0, 0, 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 'display_montzar', 'true', 'نمایش بلوک همکار در UI', 1, 1, NULL, 'switch'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'display_montzar' LIMIT 1);
|
||||
@@ -290,30 +302,36 @@ 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_bank_account', 'کشاورزي قلک', 'حساب بانکی تهحساب', 1, 1, 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 'telegram_bot_token', '8140615853:AAGQj0yUIcWTTn1_exz2vn5TsgiUJFnVom8', 'توکن بات تلگرام', 0, 1, 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 'bale_bot_token', '1212891021:F2IPeXI_oCA55pRDKkE300bd8DbkbqS0HGk', 'توکن بات بله', 0, 1, 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 'up_price', '22567500', 'بیشترین قیمت امروز', 0, 1, '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 'down_price', '22567500', 'کمترین قیمت امروز', 0, 1, 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 'price_extreme_date', '2026-06-05', 'تاریخ min/max روز', 0, 1, NULL, 'text'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'price_extreme_date' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'telegram_bot_token', '8140615853:AAGQj0yUIcWTTn1_exz2vn5TsgiUJFnVom8', 'توکن بات تلگرام', 0, 1, NULL, 'text'
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'telegram_bot_token' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'bale_bot_token', '1212891021:F2IPeXI_oCA55pRDKkE300bd8DbkbqS0HGk', 'توکن بات بله', 0, 1, NULL, 'text'
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'bale_bot_token' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'up_price', '22567500', 'بیشترین قیمت امروز', 0, 1, 'ReportController', 'number'
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'up_price' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'down_price', '22567500', 'کمترین قیمت امروز', 0, 1, NULL, 'number'
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'down_price' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'price_extreme_date', '2026-06-05', 'تاریخ min/max روز', 0, 1, 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 'product_update_price_on_list', '', 'بروز قیمت در لیست محصول', 1, 0, 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 'product_auto_close_open_on_list', '', 'باز/بسته خودکار محصول', 1, 0, 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 'metal_type', 'کاتد مس', 'عنوان فلز در UI', 0, 1, NULL, 'text'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'metal_type' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'metal_type', 'کاتد مس', 'عنوان فلز در UI', 0, 1, 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 'payping_fin_sync_enabled', '', 'همگامسازی fin لیمان', 1, 0, NULL, 'switch'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_fin_sync_enabled' LIMIT 1);
|
||||
@@ -380,51 +398,56 @@ UPDATE `settings` SET
|
||||
`is_active` = 1,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'bace_url';
|
||||
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` = 'https://kh.montzar.ir/admin/',
|
||||
`is_active` = 1,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'admin_url';
|
||||
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` = 'عنوان favicon',
|
||||
`can_edit` = 1,
|
||||
`type` = 'text',
|
||||
`description` = NULL,
|
||||
`value` = '',
|
||||
`is_active` = 0,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'title_fav';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'آدرس پنل ادمین',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = 'https://kh.montzar.ir/admin/',
|
||||
-- `is_active` = 1,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'admin_url';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'عنوان PWA',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = '',
|
||||
-- `is_active` = 0,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'title_pwa';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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` = 'متن قوانین',
|
||||
`can_edit` = 1,
|
||||
@@ -452,15 +475,16 @@ UPDATE `settings` SET
|
||||
`is_active` = 1,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'is_requaire_referral';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'صفحه کسب درآمد',
|
||||
`can_edit` = 1,
|
||||
`type` = 'switch',
|
||||
`description` = 'in server',
|
||||
`value` = 'true',
|
||||
`is_active` = 1,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'has_page_earn_money';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'صفحه کسب درآمد',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'switch',
|
||||
-- `description` = 'in server',
|
||||
-- `value` = 'true',
|
||||
-- `is_active` = 1,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'has_page_earn_money';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'صفحه صندوق',
|
||||
`can_edit` = 1,
|
||||
@@ -479,15 +503,16 @@ UPDATE `settings` SET
|
||||
`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_price_trigger';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -551,15 +576,16 @@ UPDATE `settings` SET
|
||||
`is_active` = 0,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'balance_report_exclude_customer_id';
|
||||
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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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` = '',
|
||||
`can_edit` = 1,
|
||||
@@ -587,15 +613,16 @@ UPDATE `settings` SET
|
||||
`is_active` = 0,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'referral_count_for_gift';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'مبلغ پاداش معرف',
|
||||
`can_edit` = 1,
|
||||
`type` = 'text',
|
||||
`description` = NULL,
|
||||
`value` = '',
|
||||
`is_active` = 0,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'referral_bonus_amount';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -614,15 +641,16 @@ UPDATE `settings` SET
|
||||
`is_active` = 0,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'min_first_buy';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'نام فروشگاه',
|
||||
`can_edit` = 1,
|
||||
`type` = 'text',
|
||||
`description` = 'RequestsController — اختیاری',
|
||||
`value` = '',
|
||||
`is_active` = 0,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'montify_name';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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` = 'API سود طلا',
|
||||
`can_edit` = 0,
|
||||
@@ -641,15 +669,16 @@ UPDATE `settings` SET
|
||||
`is_active` = 1,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'open_register';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'منبع قیمت',
|
||||
`can_edit` = 1,
|
||||
`type` = 'select',
|
||||
`description` = 'montzar,zaarbox,main_product,etehadie,taban_gohar',
|
||||
`value` = '',
|
||||
`is_active` = 0,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'price_provider';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'منبع قیمت',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'select',
|
||||
-- `description` = 'montzar,zaarbox,main_product,etehadie,taban_gohar',
|
||||
-- `value` = '',
|
||||
-- `is_active` = 0,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'price_provider';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'اختلاف قیمت پایه (ریال)',
|
||||
`can_edit` = 1,
|
||||
@@ -731,24 +760,26 @@ UPDATE `settings` SET
|
||||
`is_active` = 0,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'payping_gateway_name';
|
||||
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` = 'گرد کردن مبلغ به تومان',
|
||||
`can_edit` = 0,
|
||||
`type` = 'switch',
|
||||
`description` = NULL,
|
||||
`value` = '',
|
||||
`is_active` = 0,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'payping_round_toman';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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` = 0,
|
||||
@@ -767,24 +798,26 @@ UPDATE `settings` SET
|
||||
`is_active` = 0,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'montzar_closed';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'قیمت صفحه اصلی',
|
||||
`can_edit` = 1,
|
||||
`type` = 'text',
|
||||
`description` = NULL,
|
||||
`value` = '',
|
||||
`is_active` = 0,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'main_product';
|
||||
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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'قیمت صفحه اصلی',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = '',
|
||||
-- `is_active` = 0,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'main_product';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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,
|
||||
@@ -794,15 +827,16 @@ UPDATE `settings` SET
|
||||
`is_active` = 0,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'zaarbox_price_key';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'UUID نمودار Zaarbox',
|
||||
`can_edit` = 1,
|
||||
`type` = 'text',
|
||||
`description` = 'خالی = ca3800a0-1f57-3528-b963-178f9168e04f',
|
||||
`value` = '8c19e06a-446e-3d56-9cc0-750f7c6cd767',
|
||||
`is_active` = 1,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'chart_id';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'UUID نمودار Zaarbox',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = 'خالی = ca3800a0-1f57-3528-b963-178f9168e04f',
|
||||
-- `value` = '8c19e06a-446e-3d56-9cc0-750f7c6cd767',
|
||||
-- `is_active` = 1,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'chart_id';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'آدرس API اتحادیه (پشتیبان)',
|
||||
`can_edit` = 1,
|
||||
@@ -875,15 +909,16 @@ UPDATE `settings` SET
|
||||
`is_active` = 0,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'montzar_product_id';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'آدرس سرور همکار',
|
||||
`can_edit` = 1,
|
||||
`type` = 'text',
|
||||
`description` = NULL,
|
||||
`value` = '',
|
||||
`is_active` = 0,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'montzar_base_url';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'آدرس سرور همکار',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = '',
|
||||
-- `is_active` = 0,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'montzar_base_url';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'توکن همکار (خودکار)',
|
||||
`can_edit` = 0,
|
||||
@@ -1082,87 +1117,96 @@ UPDATE `settings` SET
|
||||
`is_active` = 0,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'referral_limit';
|
||||
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` = 'text',
|
||||
`description` = NULL,
|
||||
`value` = 'X4V2Q8J1C4P1A7P7P5K2E6X2U1L8D4E4Y8N5Q4O6N2R6L2H1W1S1W1N1E5F6A8F7N4U2X4J4B4R2R2W2',
|
||||
`is_active` = 1,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'tahesab_token';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'دیتابیس تهحساب',
|
||||
`can_edit` = 1,
|
||||
`type` = 'text',
|
||||
`description` = NULL,
|
||||
`value` = 'TahesabDB5',
|
||||
`is_active` = 1,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'tahesab_db';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'حساب بانکی تهحساب',
|
||||
`can_edit` = 1,
|
||||
`type` = 'text',
|
||||
`description` = NULL,
|
||||
`value` = 'کشاورزي قلک',
|
||||
`is_active` = 1,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'tahesab_bank_account';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'توکن بات تلگرام',
|
||||
`can_edit` = 0,
|
||||
`type` = 'text',
|
||||
`description` = NULL,
|
||||
`value` = '8140615853:AAGQj0yUIcWTTn1_exz2vn5TsgiUJFnVom8',
|
||||
`is_active` = 1,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'telegram_bot_token';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'توکن بات بله',
|
||||
`can_edit` = 0,
|
||||
`type` = 'text',
|
||||
`description` = NULL,
|
||||
`value` = '1212891021:F2IPeXI_oCA55pRDKkE300bd8DbkbqS0HGk',
|
||||
`is_active` = 1,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'bale_bot_token';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'بیشترین قیمت امروز',
|
||||
`can_edit` = 0,
|
||||
`type` = 'number',
|
||||
`description` = 'ReportController',
|
||||
`value` = '22567500',
|
||||
`is_active` = 1,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'up_price';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'کمترین قیمت امروز',
|
||||
`can_edit` = 0,
|
||||
`type` = 'number',
|
||||
`description` = NULL,
|
||||
`value` = '22567500',
|
||||
`is_active` = 1,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'down_price';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'تاریخ min/max روز',
|
||||
`can_edit` = 0,
|
||||
`type` = 'text',
|
||||
`description` = NULL,
|
||||
`value` = '2026-06-05',
|
||||
`is_active` = 1,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'price_extreme_date';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'پیامک گروهی',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'switch',
|
||||
-- `description` = NULL,
|
||||
-- `value` = 'false',
|
||||
-- `is_active` = 1,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'group_sms';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'توکن تهحساب',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = 'X4V2Q8J1C4P1A7P7P5K2E6X2U1L8D4E4Y8N5Q4O6N2R6L2H1W1S1W1N1E5F6A8F7N4U2X4J4B4R2R2W2',
|
||||
-- `is_active` = 1,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'tahesab_token';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'دیتابیس تهحساب',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = 'TahesabDB5',
|
||||
-- `is_active` = 1,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'tahesab_db';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'حساب بانکی تهحساب',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = 'کشاورزي قلک',
|
||||
-- `is_active` = 1,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'tahesab_bank_account';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'توکن بات تلگرام',
|
||||
-- `can_edit` = 0,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = '8140615853:AAGQj0yUIcWTTn1_exz2vn5TsgiUJFnVom8',
|
||||
-- `is_active` = 1,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'telegram_bot_token';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'توکن بات بله',
|
||||
-- `can_edit` = 0,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = '1212891021:F2IPeXI_oCA55pRDKkE300bd8DbkbqS0HGk',
|
||||
-- `is_active` = 1,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'bale_bot_token';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'بیشترین قیمت امروز',
|
||||
-- `can_edit` = 0,
|
||||
-- `type` = 'number',
|
||||
-- `description` = 'ReportController',
|
||||
-- `value` = '22567500',
|
||||
-- `is_active` = 1,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'up_price';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'کمترین قیمت امروز',
|
||||
-- `can_edit` = 0,
|
||||
-- `type` = 'number',
|
||||
-- `description` = NULL,
|
||||
-- `value` = '22567500',
|
||||
-- `is_active` = 1,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'down_price';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'تاریخ min/max روز',
|
||||
-- `can_edit` = 0,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = '2026-06-05',
|
||||
-- `is_active` = 1,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'price_extreme_date';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'بروز قیمت در لیست محصول',
|
||||
`can_edit` = 1,
|
||||
@@ -1181,24 +1225,26 @@ UPDATE `settings` SET
|
||||
`is_active` = 0,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'product_auto_close_open_on_list';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'عنوان فلز در UI',
|
||||
`can_edit` = 0,
|
||||
`type` = 'text',
|
||||
`description` = NULL,
|
||||
`value` = 'کاتد مس',
|
||||
`is_active` = 1,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'metal_type';
|
||||
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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'عنوان فلز در UI',
|
||||
-- `can_edit` = 0,
|
||||
-- `type` = 'text',
|
||||
-- `description` = NULL,
|
||||
-- `value` = 'کاتد مس',
|
||||
-- `is_active` = 1,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'metal_type';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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` = 'URL fin',
|
||||
`can_edit` = 1,
|
||||
@@ -1217,15 +1263,16 @@ UPDATE `settings` SET
|
||||
`is_active` = 0,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'payping_fin_token';
|
||||
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';
|
||||
-- [super-admin can_edit=0]
|
||||
-- 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` = 'item تکی (legacy)',
|
||||
`can_edit` = 1,
|
||||
@@ -1235,15 +1282,16 @@ UPDATE `settings` SET
|
||||
`is_active` = 0,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'payping_gateway_item';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'شناسه کلاینت API خارجی (X-Client-Id)',
|
||||
`can_edit` = 1,
|
||||
`type` = 'text',
|
||||
`description` = 'مقدار قبلی .env: NODE_CLIENT_ID',
|
||||
`value` = '',
|
||||
`is_active` = 0,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'node_client_id';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'شناسه کلاینت API خارجی (X-Client-Id)',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `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,
|
||||
@@ -1253,15 +1301,16 @@ UPDATE `settings` SET
|
||||
`is_active` = 0,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'node_shared_secret';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'فعالسازی API سفارش خارجی (get_wallet / order)',
|
||||
`can_edit` = 1,
|
||||
`type` = 'text',
|
||||
`description` = 'true + node_client_id + node_shared_secret',
|
||||
`value` = '',
|
||||
`is_active` = 0,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'external_order_api_enabled';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'فعالسازی API سفارش خارجی (get_wallet / order)',
|
||||
-- `can_edit` = 1,
|
||||
-- `type` = 'text',
|
||||
-- `description` = 'true + node_client_id + node_shared_secret',
|
||||
-- `value` = '',
|
||||
-- `is_active` = 0,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'external_order_api_enabled';
|
||||
|
||||
-- =============================================================================
|
||||
-- 3) اصلاح کلید خراب logo_login (در صورت وجود)
|
||||
|
||||
@@ -366,24 +366,26 @@ AND NOT EXISTS (
|
||||
-- موجودی این محصولات = gold کیف اصلی. خالی = غیرفعال (رفتار پیشفرض چندکیفه)
|
||||
-- مثال گلد علی: UPDATE settings SET value='13,25' WHERE `key`='main_wallet_products';
|
||||
-- ---------------------------------------------------------------------------
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
SELECT
|
||||
'main_wallet_products',
|
||||
'',
|
||||
'محصولات متصل به کیف اصلی',
|
||||
0,
|
||||
1,
|
||||
'idهای محصول با کاما (مثل 13,25). موجودی این محصولات = gold کیف اصلی. خالی = غیرفعال'
|
||||
FROM DUAL
|
||||
WHERE EXISTS (
|
||||
SELECT 1 FROM information_schema.TABLES
|
||||
WHERE TABLE_SCHEMA = @db AND TABLE_NAME = 'settings'
|
||||
)
|
||||
AND NOT EXISTS (
|
||||
SELECT 1 FROM `settings` WHERE `key` = 'main_wallet_products' LIMIT 1
|
||||
);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT
|
||||
-- 'main_wallet_products',
|
||||
-- '',
|
||||
-- 'محصولات متصل به کیف اصلی',
|
||||
-- 0,
|
||||
-- 1,
|
||||
-- 'idهای محصول با کاما (مثل 13,25). موجودی این محصولات = gold کیف اصلی. خالی = غیرفعال'
|
||||
-- FROM DUAL
|
||||
-- WHERE EXISTS (
|
||||
-- SELECT 1 FROM information_schema.TABLES
|
||||
-- WHERE TABLE_SCHEMA = @db AND TABLE_NAME = 'settings'
|
||||
-- )
|
||||
-- AND NOT EXISTS (
|
||||
-- SELECT 1 FROM `settings` WHERE `key` = 'main_wallet_products' LIMIT 1
|
||||
-- );
|
||||
|
||||
UPDATE `settings` SET `can_edit` = 0 WHERE `key` = 'main_wallet_products';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `can_edit` = 0 WHERE `key` = 'main_wallet_products';
|
||||
|
||||
-- ---------------------------------------------------------------------------
|
||||
-- products — نوع هزینه خرید/فروش: نقدی (ریال) یا درصدی
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -5,18 +5,20 @@
|
||||
|
||||
START TRANSACTION;
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
SELECT 'fee_deduct_from_gold', 'false', 'اعمال مبلغ دقیق در معامله مشتری', 0, 1,
|
||||
'روشن: مشتری دقیقاً همان مبلغ یا وزنی را که وارد کرده دریافت میکند. در فروش، مثلاً ۱۰۰ میلیون ریال درخواست → همان ۱۰۰ میلیون واریز و کارمزد از طلای کیف کسر میشود. در خرید، مثلاً ۱۰ گرم درخواست → همان ۱۰ گرم واریز و کارمزد به ریال قابل پرداخت اضافه میشود. خاموش (پیشفرض): در فروش کارمزد از مبلغ ریالی واریزی کم میشود (مشتری مبلغ کمتری میگیرد). در خرید کارمزد از وزن طلای واریزی کم میشود (مشتری طلای کمتری میگیرد).',
|
||||
'switch'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'fee_deduct_from_gold' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'fee_deduct_from_gold', 'false', 'اعمال مبلغ دقیق در معامله مشتری', 0, 1,
|
||||
-- 'روشن: مشتری دقیقاً همان مبلغ یا وزنی را که وارد کرده دریافت میکند. در فروش، مثلاً ۱۰۰ میلیون ریال درخواست → همان ۱۰۰ میلیون واریز و کارمزد از طلای کیف کسر میشود. در خرید، مثلاً ۱۰ گرم درخواست → همان ۱۰ گرم واریز و کارمزد به ریال قابل پرداخت اضافه میشود. خاموش (پیشفرض): در فروش کارمزد از مبلغ ریالی واریزی کم میشود (مشتری مبلغ کمتری میگیرد). در خرید کارمزد از وزن طلای واریزی کم میشود (مشتری طلای کمتری میگیرد).',
|
||||
-- 'switch'
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'fee_deduct_from_gold' LIMIT 1);
|
||||
|
||||
UPDATE `settings`
|
||||
SET `title_fa` = 'اعمال مبلغ دقیق در معامله مشتری',
|
||||
`description` = 'روشن: مشتری دقیقاً همان مبلغ یا وزنی را که وارد کرده دریافت میکند. در فروش، مثلاً ۱۰۰ میلیون ریال درخواست → همان ۱۰۰ میلیون واریز و کارمزد از طلای کیف کسر میشود. در خرید، مثلاً ۱۰ گرم درخواست → همان ۱۰ گرم واریز و کارمزد به ریال قابل پرداخت اضافه میشود. خاموش (پیشفرض): در فروش کارمزد از مبلغ ریالی واریزی کم میشود (مشتری مبلغ کمتری میگیرد). در خرید کارمزد از وزن طلای واریزی کم میشود (مشتری طلای کمتری میگیرد).',
|
||||
`type` = 'switch',
|
||||
`can_edit` = 0
|
||||
WHERE `key` = 'fee_deduct_from_gold';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings`
|
||||
-- SET `title_fa` = 'اعمال مبلغ دقیق در معامله مشتری',
|
||||
-- `description` = 'روشن: مشتری دقیقاً همان مبلغ یا وزنی را که وارد کرده دریافت میکند. در فروش، مثلاً ۱۰۰ میلیون ریال درخواست → همان ۱۰۰ میلیون واریز و کارمزد از طلای کیف کسر میشود. در خرید، مثلاً ۱۰ گرم درخواست → همان ۱۰ گرم واریز و کارمزد به ریال قابل پرداخت اضافه میشود. خاموش (پیشفرض): در فروش کارمزد از مبلغ ریالی واریزی کم میشود (مشتری مبلغ کمتری میگیرد). در خرید کارمزد از وزن طلای واریزی کم میشود (مشتری طلای کمتری میگیرد).',
|
||||
-- `type` = 'switch',
|
||||
-- `can_edit` = 0
|
||||
-- WHERE `key` = 'fee_deduct_from_gold';
|
||||
|
||||
COMMIT;
|
||||
|
||||
|
||||
@@ -106,29 +106,32 @@ UPDATE `settings` SET
|
||||
`description` = 'required = اجباری|required,'
|
||||
WHERE `key` = 'referral_id';
|
||||
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'منبع قیمت',
|
||||
`type` = 'select',
|
||||
`is_active` = 1,
|
||||
`description` = 'منبع فعال قیمت|montzar,zaarbox,main_product,taban_gohar'
|
||||
WHERE `key` = 'price_provider';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'منبع قیمت',
|
||||
-- `type` = 'select',
|
||||
-- `is_active` = 1,
|
||||
-- `description` = 'منبع فعال قیمت|montzar,zaarbox,main_product,taban_gohar'
|
||||
-- WHERE `key` = 'price_provider';
|
||||
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'UUID نمودار Zaarbox',
|
||||
`type` = 'text',
|
||||
`is_active` = 1,
|
||||
`can_edit` = 1,
|
||||
`description` = 'خالی = ca3800a0-1f57-3528-b963-178f9168e04f',
|
||||
`value` = CASE
|
||||
WHEN TRIM(COALESCE(`value`, '')) = '' THEN '8c19e06a-446e-3d56-9cc0-750f7c6cd767'
|
||||
ELSE `value`
|
||||
END
|
||||
WHERE `key` = 'chart_id';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'UUID نمودار Zaarbox',
|
||||
-- `type` = 'text',
|
||||
-- `is_active` = 1,
|
||||
-- `can_edit` = 1,
|
||||
-- `description` = 'خالی = ca3800a0-1f57-3528-b963-178f9168e04f',
|
||||
-- `value` = CASE
|
||||
-- WHEN TRIM(COALESCE(`value`, '')) = '' THEN '8c19e06a-446e-3d56-9cc0-750f7c6cd767'
|
||||
-- ELSE `value`
|
||||
-- END
|
||||
-- WHERE `key` = 'chart_id';
|
||||
|
||||
UPDATE `settings` SET `description` = 'جایگزین: price_provider=main_product' WHERE `key` = 'main_product_price';
|
||||
UPDATE `settings` SET `description` = 'true یا price_provider=montzar' WHERE `key` = 'montzar_price';
|
||||
UPDATE `settings` SET `description` = 'تعداد سفارش اول بدون کارمزد' WHERE `key` = 'fee_free';
|
||||
UPDATE `settings` SET `description` = 'id یا reading_method محصول آبشده' WHERE `key` = 'main_product';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `description` = 'id یا reading_method محصول آبشده' WHERE `key` = 'main_product';
|
||||
|
||||
UPDATE `settings` SET `type` = 'switch' WHERE `key` IN (
|
||||
'group_sms', 'bale_bot_token', 'jibit_verification', 'register_jibit_verify',
|
||||
|
||||
@@ -66,15 +66,22 @@ UPDATE `settings` SET `title_fa` = 'نام فارسی', `type` = 'text
|
||||
UPDATE `settings` SET `title_fa` = 'نام انگلیسی', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'name_en';
|
||||
UPDATE `settings` SET `title_fa` = 'آدرس اپ (کاربر)', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'app_url';
|
||||
UPDATE `settings` SET `title_fa` = 'آدرس پایه سرور', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'bace_url';
|
||||
UPDATE `settings` SET `title_fa` = 'لوگوی ورود', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'logo_login';
|
||||
UPDATE `settings` SET `title_fa` = 'لوگوی ثبتنام', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'logo_register';
|
||||
UPDATE `settings` SET `title_fa` = 'آدرس پنل ادمین', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'admin_url';
|
||||
UPDATE `settings` SET `title_fa` = 'توکن تهحساب', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'tahesab_token';
|
||||
UPDATE `settings` SET `title_fa` = 'دیتابیس تهحساب', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'tahesab_db';
|
||||
UPDATE `settings` SET `title_fa` = 'صفحه کسب درآمد', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'has_page_earn_money';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'لوگوی ورود', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'logo_login';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'لوگوی ثبتنام', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'logo_register';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'آدرس پنل ادمین', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'admin_url';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'توکن تهحساب', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'tahesab_token';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'دیتابیس تهحساب', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'tahesab_db';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'صفحه کسب درآمد', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'has_page_earn_money';
|
||||
UPDATE `settings` SET `title_fa` = 'صفحه صندوق', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'has_page_fund';
|
||||
UPDATE `settings` SET `title_fa` = 'صفحه مجوزها', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'has_page_permission';
|
||||
UPDATE `settings` SET `title_fa` = 'صفحه هشدار قیمت', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'has_page_price_trigger';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'صفحه هشدار قیمت', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'has_page_price_trigger';
|
||||
UPDATE `settings` SET `title_fa` = 'صفحه طلای فیزیکی', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'has_page_physical_gold';
|
||||
UPDATE `settings` SET `title_fa` = 'رنگ اصلی', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'color_primary';
|
||||
UPDATE `settings` SET `title_fa` = 'رنگ ثانویه', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'color_secondary';
|
||||
@@ -82,20 +89,26 @@ UPDATE `settings` SET `title_fa` = 'کارمزد درصدی', `type` = '
|
||||
UPDATE `settings` SET `title_fa` = 'چت', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'has_chat';
|
||||
UPDATE `settings` SET `title_fa` = 'آدرس API', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'server_url';
|
||||
UPDATE `settings` SET `title_fa` = 'کلید اپ', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'key';
|
||||
UPDATE `settings` SET `title_fa` = 'توکن بات تلگرام', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'telegram_bot_token';
|
||||
UPDATE `settings` SET `title_fa` = 'کارمزد ریالی', `type` = 'number', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'fee_cash';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'توکن بات تلگرام', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'telegram_bot_token';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'کارمزد ریالی', `type` = 'number', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'fee_cash';
|
||||
UPDATE `settings` SET `title_fa` = 'اختلاف با قیمت واقعی', `type` = 'number', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'fee_single';
|
||||
UPDATE `settings` SET `title_fa` = 'ارسال اسناد به تهحساب', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'send_to_tahesab';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'ارسال اسناد به تهحساب', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'send_to_tahesab';
|
||||
UPDATE `settings` SET `title_fa` = 'تعداد سفارش اول بدون کارمزد', `type` = 'number', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'fee_free';
|
||||
UPDATE `settings` SET `title_fa` = 'پیامک شارژ ادمین', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'charge_notif';
|
||||
UPDATE `settings` SET `title_fa` = 'فعالسازی خودکار کاربر', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'auto_active_customer';
|
||||
UPDATE `settings` SET `title_fa` = 'ثبتنام باز', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'open_register';
|
||||
UPDATE `settings` SET `title_fa` = 'دریافت قیمت از تابانگوهر', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'tabanGohar_price';
|
||||
UPDATE `settings` SET `title_fa` = 'دریافت قیمت از محصولات', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'main_product_price';
|
||||
UPDATE `settings` SET `title_fa` = 'حساب بانکی تهحساب', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'tahesab_bank_account';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'حساب بانکی تهحساب', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'tahesab_bank_account';
|
||||
UPDATE `settings` SET `title_fa` = 'کد معرف', `type` = 'select', `is_active` = COALESCE(`is_active`, 1), `description` = 'required = اجباری|required,' WHERE `key` = 'referral_id';
|
||||
UPDATE `settings` SET `title_fa` = 'پیامک گروهی', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'group_sms';
|
||||
UPDATE `settings` SET `title_fa` = 'توکن بات بله', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'bale_bot_token';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'پیامک گروهی', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'group_sms';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'توکن بات بله', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'bale_bot_token';
|
||||
UPDATE `settings` SET `title_fa` = 'تایید کارت با جیبیت', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'jibit_verification';
|
||||
UPDATE `settings` SET `title_fa` = 'تایید کد ملی در ثبتنام', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'register_jibit_verify';
|
||||
UPDATE `settings` SET `title_fa` = 'پاداش معرف', `type` = 'number', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'gift_for_referrer';
|
||||
@@ -104,19 +117,31 @@ UPDATE `settings` SET `title_fa` = 'محدودیت دعوت', `type` = '
|
||||
UPDATE `settings` SET `title_fa` = 'بستن قیمت در ساعات مشخص', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'close_price';
|
||||
UPDATE `settings` SET `title_fa` = 'ساعت شروع', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'startDay';
|
||||
UPDATE `settings` SET `title_fa` = 'ساعت پایان', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'endDay';
|
||||
UPDATE `settings` SET `title_fa` = 'آدرس API همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_base_url';
|
||||
UPDATE `settings` SET `title_fa` = 'توکن همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_token';
|
||||
UPDATE `settings` SET `title_fa` = 'بسته بودن سرویس همکار', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_closed';
|
||||
UPDATE `settings` SET `title_fa` = 'باز بودن خرید همکار', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_open_buy';
|
||||
UPDATE `settings` SET `title_fa` = 'باز بودن فروش همکار', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_open_sell';
|
||||
UPDATE `settings` SET `title_fa` = 'اختلاف قیمت همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_diff';
|
||||
UPDATE `settings` SET `title_fa` = 'مظنه همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_mazaneh';
|
||||
UPDATE `settings` SET `title_fa` = 'مظنه خرید واقعی همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_truly_buy_mazaneh';
|
||||
UPDATE `settings` SET `title_fa` = 'مظنه فروش واقعی همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_truly_sell_mazaneh';
|
||||
UPDATE `settings` SET `title_fa` = 'پاسخ سفارش همکار', `type` = 'longtext', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_order_response';
|
||||
UPDATE `settings` SET `title_fa` = 'لاگ محصول همکار', `type` = 'longtext', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_last_product_log';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'آدرس API همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_base_url';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'توکن همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_token';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'بسته بودن سرویس همکار', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_closed';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'باز بودن خرید همکار', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_open_buy';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'باز بودن فروش همکار', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_open_sell';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'اختلاف قیمت همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_diff';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'مظنه همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_mazaneh';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'مظنه خرید واقعی همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_truly_buy_mazaneh';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'مظنه فروش واقعی همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_truly_sell_mazaneh';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'پاسخ سفارش همکار', `type` = 'longtext', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_order_response';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'لاگ محصول همکار', `type` = 'longtext', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_last_product_log';
|
||||
UPDATE `settings` SET `title_fa` = 'نشان دادن آخرین قیمت', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'show_last_price';
|
||||
UPDATE `settings` SET `title_fa` = 'قیمت لحظهای همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_live_price';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'قیمت لحظهای همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 0 WHERE `key` = 'montzar_live_price';
|
||||
UPDATE `settings` SET `title_fa` = 'بروزرسانی قیمت در لیست', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'product_update_price_on_list';
|
||||
UPDATE `settings` SET `title_fa` = 'باز/بسته خودکار محصول در لیست', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'product_auto_close_open_on_list';
|
||||
UPDATE `settings` SET `title_fa` = 'شماره همراه همکار', `type` = 'text', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'montzar_mobile';
|
||||
@@ -125,19 +150,21 @@ UPDATE `settings` SET `title_fa` = 'کد محصول همکار', `type` =
|
||||
UPDATE `settings` SET `title_fa` = 'دریافت قیمت از همکار', `type` = 'switch', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'montzar_price';
|
||||
UPDATE `settings` SET `title_fa` = 'سود خرید', `type` = 'number', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'buy_fee';
|
||||
UPDATE `settings` SET `title_fa` = 'سود فروش', `type` = 'number', `is_active` = COALESCE(`is_active`, 1) WHERE `key` = 'sell_fee';
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'UUID نمودار Zaarbox',
|
||||
`type` = 'text',
|
||||
`is_active` = 1,
|
||||
`can_edit` = 1,
|
||||
`description` = 'خالی = ca3800a0-1f57-3528-b963-178f9168e04f',
|
||||
`value` = CASE
|
||||
WHEN TRIM(COALESCE(`value`, '')) = '' THEN '8c19e06a-446e-3d56-9cc0-750f7c6cd767'
|
||||
ELSE `value`
|
||||
END,
|
||||
`updated_at` = NOW()
|
||||
WHERE `key` = 'chart_id';
|
||||
UPDATE `settings` SET `title_fa` = 'آدرس API تابلو Zaarbox', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 1 WHERE `key` = 'zaarbox_api_url';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'UUID نمودار Zaarbox',
|
||||
-- `type` = 'text',
|
||||
-- `is_active` = 1,
|
||||
-- `can_edit` = 1,
|
||||
-- `description` = 'خالی = ca3800a0-1f57-3528-b963-178f9168e04f',
|
||||
-- `value` = CASE
|
||||
-- WHEN TRIM(COALESCE(`value`, '')) = '' THEN '8c19e06a-446e-3d56-9cc0-750f7c6cd767'
|
||||
-- ELSE `value`
|
||||
-- END,
|
||||
-- `updated_at` = NOW()
|
||||
-- WHERE `key` = 'chart_id';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'آدرس API تابلو Zaarbox', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 1 WHERE `key` = 'zaarbox_api_url';
|
||||
UPDATE `settings` SET `title_fa` = 'شناسه ردیف تابلو (key یا UUID)', `type` = 'text', `is_active` = COALESCE(`is_active`, 1), `can_edit` = 1 WHERE `key` = 'zaarbox_price_key';
|
||||
|
||||
-- ---------------------------------------------------------------------------
|
||||
@@ -266,8 +293,9 @@ WHERE LOWER(TRIM(COALESCE(`description`, ''))) IN (
|
||||
)
|
||||
OR TRIM(COALESCE(`description`, '')) LIKE 'count of%';
|
||||
|
||||
UPDATE `settings` SET `description` = 'منبع فعال قیمت|montzar,zaarbox,main_product,taban_gohar'
|
||||
WHERE `key` = 'price_provider';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `description` = 'منبع فعال قیمت|montzar,zaarbox,main_product,taban_gohar'
|
||||
-- WHERE `key` = 'price_provider';
|
||||
|
||||
UPDATE `settings` SET `description` = 'required = اجباری|required,', `title_fa` = 'کد معرف', `type` = 'select'
|
||||
WHERE `key` = 'referral_id';
|
||||
@@ -275,7 +303,8 @@ WHERE `key` = 'referral_id';
|
||||
UPDATE `settings` SET `description` = 'جایگزین: price_provider=main_product' WHERE `key` = 'main_product_price';
|
||||
UPDATE `settings` SET `description` = 'true یا price_provider=montzar' WHERE `key` = 'montzar_price';
|
||||
UPDATE `settings` SET `description` = 'تعداد سفارش اول بدون کارمزد' WHERE `key` = 'fee_free';
|
||||
UPDATE `settings` SET `description` = 'id یا reading_method محصول آبشده' WHERE `key` = 'main_product';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `description` = 'id یا reading_method محصول آبشده' WHERE `key` = 'main_product';
|
||||
|
||||
UPDATE `settings` SET `is_active` = 1 WHERE `key` IN ('zaarbox_api_url', 'zaarbox_price_key', 'chart_id');
|
||||
|
||||
|
||||
@@ -5,14 +5,16 @@ START TRANSACTION;
|
||||
|
||||
-- قیمت از تابلو Zaarbox (یا main_product — یکی را انتخاب کنید)
|
||||
-- UPDATE `settings` SET `value` = 'zaarbox' WHERE `key` = 'price_provider';
|
||||
UPDATE `settings` SET `value` = 'main_product' WHERE `key` = 'price_provider';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `value` = 'main_product' WHERE `key` = 'price_provider';
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
SELECT 'price_provider', 'main_product', 'منبع قیمت', 1, 1, 'montzar | taban_gohar | main_product | zaarbox'
|
||||
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`)
|
||||
SELECT 'main_product', '13', 'شناسه محصول آبشده', 1, 1, 'اول settings، بعد const'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'main_product' LIMIT 1);
|
||||
UPDATE `settings` SET `value` = '13' WHERE `key` = 'main_product';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `value` = '13' WHERE `key` = 'main_product';
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
SELECT 'zaarbox_api_url', 'https://price.zaarbox.ir/api/free', 'آدرس API تابلو Zaarbox', 1, 1, NULL
|
||||
@@ -34,23 +36,27 @@ WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_gateway_name'
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
SELECT 'payping_gateway_items', 'sDsB,gp1Q,GPH4,AMAX,TbQl,AAQl', 'item چرخشی', 1, 1, NULL
|
||||
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`)
|
||||
SELECT 'payping_round_toman', 'true', 'گرد به تومان', 0, 1, NULL
|
||||
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`)
|
||||
SELECT 'payping_strict_failed_withdraw', 'true', 'اولویت ناموفق', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_strict_failed_withdraw' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'payping_round_toman', 'true', 'گرد به تومان', 0, 1, NULL
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_round_toman' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'payping_strict_failed_withdraw', 'true', 'اولویت ناموفق', 0, 1, NULL
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_strict_failed_withdraw' LIMIT 1);
|
||||
|
||||
UPDATE `settings` SET `value` = 'https://payment.goldaliii.com/payment/start' WHERE `key` = 'payping_start_url';
|
||||
UPDATE `settings` SET `value` = 'https://payment.goldaliii.com/payment/verify' WHERE `key` = 'payping_verify_url';
|
||||
UPDATE `settings` SET `value` = 'sepal' WHERE `key` = 'payping_gateway_name';
|
||||
UPDATE `settings` SET `value` = 'sDsB,gp1Q,GPH4,AMAX,TbQl,AAQl' WHERE `key` = 'payping_gateway_items';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `value` = 'sDsB,gp1Q,GPH4,AMAX,TbQl,AAQl' WHERE `key` = 'payping_gateway_items';
|
||||
UPDATE `settings` SET `value` = 'true' WHERE `key` IN ('payping_round_toman', 'payping_strict_failed_withdraw');
|
||||
|
||||
-- API سود طلا (کلاینت /customer/profit_gold)
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
SELECT 'profit_gold_api_enabled', 'true', 'API سود طلا', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'profit_gold_api_enabled' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'profit_gold_api_enabled', 'true', 'API سود طلا', 0, 1, NULL
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'profit_gold_api_enabled' LIMIT 1);
|
||||
UPDATE `settings` SET `value` = 'true' WHERE `key` = 'profit_gold_api_enabled';
|
||||
|
||||
-- ثبتنام باز (AuthController)
|
||||
@@ -60,9 +66,10 @@ WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'open_register' LIMIT 1
|
||||
UPDATE `settings` SET `is_active` = 1 WHERE `key` = 'open_register';
|
||||
|
||||
-- تراز ادمین: حساب تست را از گزارش حذف کن (گلد علی معمولاً 12)
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
SELECT 'balance_report_exclude_customer_id', '12', 'حذف مشتری از تراز', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'balance_report_exclude_customer_id' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'balance_report_exclude_customer_id', '12', 'حذف مشتری از تراز', 0, 1, NULL
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'balance_report_exclude_customer_id' LIMIT 1);
|
||||
UPDATE `settings` SET `value` = '12' WHERE `key` = 'balance_report_exclude_customer_id';
|
||||
|
||||
-- const — کلاینت و ادمین
|
||||
|
||||
@@ -10,7 +10,8 @@ START TRANSACTION;
|
||||
-- -----------------------------------------------------------------------------
|
||||
-- ۱) قیمت — محصول اصلی (نه اتحادیه)؛ main_product اول settings بعد const
|
||||
-- -----------------------------------------------------------------------------
|
||||
UPDATE `settings` SET `value` = 'main_product' WHERE `key` = 'price_provider';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `value` = 'main_product' WHERE `key` = 'price_provider';
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
SELECT 'price_provider', 'main_product', 'منبع قیمت', 1, 1, 'montzar|main_product|taban_gohar'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'price_provider' LIMIT 1);
|
||||
@@ -19,7 +20,8 @@ WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'price_provider' LIMIT
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
SELECT 'main_product', '13', 'محصول آبشده (id یا reading_method)', 1, 1, 'مثلاً 13 — نه UUID API'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'main_product' LIMIT 1);
|
||||
UPDATE `settings` SET `value` = '13' WHERE `key` = 'main_product';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `value` = '13' WHERE `key` = 'main_product';
|
||||
|
||||
-- نمایش buy/sell در /api/price/last (ریال — جدا از کارمزد سفارش)
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
@@ -57,9 +59,10 @@ SELECT 'open_register', '1', 'ثبتنام باز', 1, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'open_register' LIMIT 1);
|
||||
UPDATE `settings` SET `is_active` = 1 WHERE `key` = 'open_register';
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
SELECT 'profit_gold_api_enabled', 'true', 'API سود طلا', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'profit_gold_api_enabled' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'profit_gold_api_enabled', 'true', 'API سود طلا', 0, 1, NULL
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'profit_gold_api_enabled' LIMIT 1);
|
||||
UPDATE `settings` SET `value` = 'true' WHERE `key` = 'profit_gold_api_enabled';
|
||||
|
||||
-- API خارجی HMAC (قبلاً فقط در .env: NODE_CLIENT_ID / NODE_SHARED_SECRET)
|
||||
@@ -72,18 +75,22 @@ WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'node_shared_secret' LI
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
SELECT 'external_order_api_enabled', 'true', 'API سفارش خارجی', 1, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'external_order_api_enabled' LIMIT 1);
|
||||
UPDATE `settings` SET `value` = 'true' WHERE `key` = 'external_order_api_enabled';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `value` = 'true' WHERE `key` = 'external_order_api_enabled';
|
||||
-- بعد از اجرا در پنل: node_client_id و node_shared_secret را با مقادیر .env پر کنید
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
SELECT 'balance_report_exclude_customer_id', '12', 'حذف مشتری از تراز ادمین', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'balance_report_exclude_customer_id' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'balance_report_exclude_customer_id', '12', 'حذف مشتری از تراز ادمین', 0, 1, NULL
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'balance_report_exclude_customer_id' LIMIT 1);
|
||||
UPDATE `settings` SET `value` = '12' WHERE `key` = 'balance_report_exclude_customer_id';
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
SELECT 'send_to_tahesab', 'false', 'ارسال تهحساب', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'send_to_tahesab' LIMIT 1);
|
||||
UPDATE `settings` SET `value` = 'false' WHERE `key` = 'send_to_tahesab';
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'send_to_tahesab', 'false', 'ارسال تهحساب', 0, 1, NULL
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'send_to_tahesab' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `value` = 'false' WHERE `key` = 'send_to_tahesab';
|
||||
|
||||
-- -----------------------------------------------------------------------------
|
||||
-- ۴) درگاه payment.goldaliii.com
|
||||
@@ -100,16 +107,19 @@ WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_gateway_name'
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
SELECT 'payping_gateway_items', 'sDsB,gp1Q,GPH4,AMAX,TbQl,AAQl', 'item چرخشی', 1, 1, NULL
|
||||
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`)
|
||||
SELECT 'payping_round_toman', 'true', 'گرد تومان', 0, 1, NULL
|
||||
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`)
|
||||
SELECT 'payping_strict_failed_withdraw', 'true', 'اولویت ناموفق', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_strict_failed_withdraw' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'payping_round_toman', 'true', 'گرد تومان', 0, 1, NULL
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_round_toman' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'payping_strict_failed_withdraw', 'true', 'اولویت ناموفق', 0, 1, NULL
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_strict_failed_withdraw' LIMIT 1);
|
||||
UPDATE `settings` SET `value` = 'https://payment.goldaliii.com/payment/start' WHERE `key` = 'payping_start_url';
|
||||
UPDATE `settings` SET `value` = 'https://payment.goldaliii.com/payment/verify' WHERE `key` = 'payping_verify_url';
|
||||
UPDATE `settings` SET `value` = 'sepal' WHERE `key` = 'payping_gateway_name';
|
||||
UPDATE `settings` SET `value` = 'sDsB,gp1Q,GPH4,AMAX,TbQl,AAQl' WHERE `key` = 'payping_gateway_items';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `value` = 'sDsB,gp1Q,GPH4,AMAX,TbQl,AAQl' WHERE `key` = 'payping_gateway_items';
|
||||
UPDATE `settings` SET `value` = 'true' WHERE `key` IN ('payping_round_toman', 'payping_strict_failed_withdraw');
|
||||
|
||||
-- -----------------------------------------------------------------------------
|
||||
|
||||
@@ -18,18 +18,21 @@ INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `de
|
||||
SELECT 'payping_gateway_items', 'sDsB,gp1Q,GPH4,AMAX,TbQl,AAQl', 'لیست item (چرخشی)', 1, 1, NULL
|
||||
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`)
|
||||
SELECT 'payping_round_toman', 'true', 'گرد کردن مبلغ به تومان', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_round_toman' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'payping_round_toman', 'true', 'گرد کردن مبلغ به تومان', 0, 1, NULL
|
||||
-- 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`)
|
||||
SELECT 'payping_strict_failed_withdraw', 'true', 'اولویت تراکنش ناموفق', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_strict_failed_withdraw' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'payping_strict_failed_withdraw', 'true', 'اولویت تراکنش ناموفق', 0, 1, NULL
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_strict_failed_withdraw' LIMIT 1);
|
||||
|
||||
UPDATE `settings` SET `value` = 'https://payment.goldaliii.com/payment/start' WHERE `key` = 'payping_start_url';
|
||||
UPDATE `settings` SET `value` = 'https://payment.goldaliii.com/payment/verify' WHERE `key` = 'payping_verify_url';
|
||||
UPDATE `settings` SET `value` = 'sepal' WHERE `key` = 'payping_gateway_name';
|
||||
UPDATE `settings` SET `value` = 'sDsB,gp1Q,GPH4,AMAX,TbQl,AAQl' WHERE `key` = 'payping_gateway_items';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `value` = 'sDsB,gp1Q,GPH4,AMAX,TbQl,AAQl' WHERE `key` = 'payping_gateway_items';
|
||||
UPDATE `settings` SET `value` = 'true' WHERE `key` IN ('payping_round_toman', 'payping_strict_failed_withdraw');
|
||||
|
||||
COMMIT;
|
||||
|
||||
@@ -22,16 +22,22 @@ UPDATE `settings` SET `title_fa` = 'نام فارسی اپ' WHERE `key` = 'name_
|
||||
UPDATE `settings` SET `title_fa` = 'نام انگلیسی اپ' WHERE `key` = 'name_en' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
UPDATE `settings` SET `title_fa` = 'آدرس اپ (کاربر)' WHERE `key` = 'app_url' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
UPDATE `settings` SET `title_fa` = 'آدرس پایه' WHERE `key` = 'bace_url' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
UPDATE `settings` SET `title_fa` = 'لوگوی صفحه ورود' WHERE `key` = 'logo_register' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
UPDATE `settings` SET `title_fa` = 'آدرس پنل ادمین' WHERE `key` = 'admin_url' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
UPDATE `settings` SET `title_fa` = 'عنوان PWA' WHERE `key` = 'title_pwa' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
UPDATE `settings` SET `title_fa` = 'عنوان favicon' WHERE `key` = 'title_fav' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'لوگوی صفحه ورود' WHERE `key` = 'logo_register' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'آدرس پنل ادمین' WHERE `key` = 'admin_url' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'عنوان PWA' WHERE `key` = 'title_pwa' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'عنوان favicon' WHERE `key` = 'title_fav' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
UPDATE `settings` SET `title_fa` = 'متن قوانین' WHERE `key` = 'text_rule' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
UPDATE `settings` SET `title_fa` = 'متن درباره ما' WHERE `key` = 'text_about' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
UPDATE `settings` SET `title_fa` = 'صفحه کسب درآمد' WHERE `key` = 'has_page_earn_money' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'صفحه کسب درآمد' WHERE `key` = 'has_page_earn_money' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
UPDATE `settings` SET `title_fa` = 'صفحه صندوق' WHERE `key` = 'has_page_fund' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
UPDATE `settings` SET `title_fa` = 'صفحه مجوزها' WHERE `key` = 'has_page_permission' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
UPDATE `settings` SET `title_fa` = 'صفحه هشدار قیمت' WHERE `key` = 'has_page_price_trigger' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'صفحه هشدار قیمت' WHERE `key` = 'has_page_price_trigger' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
UPDATE `settings` SET `title_fa` = 'صفحه طلای فیزیکی' WHERE `key` = 'has_page_physical_gold' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
UPDATE `settings` SET `title_fa` = 'رنگ اصلی' WHERE `key` = 'color_primary' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
UPDATE `settings` SET `title_fa` = 'رنگ ثانویه' WHERE `key` = 'color_secondary' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
@@ -40,7 +46,8 @@ UPDATE `settings` SET `title_fa` = 'چت پشتیبانی' WHERE `key` = 'has_ch
|
||||
UPDATE `settings` SET `title_fa` = 'آدرس API سرور' WHERE `key` = 'server_url' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
UPDATE `settings` SET `title_fa` = 'کلید داخلی اپ' WHERE `key` = 'key' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
UPDATE `settings` SET `title_fa` = 'تعداد معرف برای هدیه' WHERE `key` = 'referral_count_for_gift' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
UPDATE `settings` SET `title_fa` = 'مبلغ پاداش معرف' WHERE `key` = 'referral_bonus_amount' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = 'مبلغ پاداش معرف' WHERE `key` = 'referral_bonus_amount' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
UPDATE `settings` SET `title_fa` = 'حداقل برداشت (ریال)' WHERE `key` = 'min_withdraw' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
UPDATE `settings` SET `title_fa` = 'حداقل اولین خرید (ریال)' WHERE `key` = 'min_first_buy' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
|
||||
|
||||
@@ -106,25 +113,29 @@ WHERE r.`key` = 'referral_id'
|
||||
|
||||
DELETE FROM `settings` WHERE `key` = 'is_requaire_referral';
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
SELECT 'profit_gold_api_enabled', 'true', 'API سود طلا', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'profit_gold_api_enabled' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'profit_gold_api_enabled', 'true', 'API سود طلا', 0, 1, NULL
|
||||
-- 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`)
|
||||
SELECT 'open_register', '1', 'ثبتنام باز', 1, 1, NULL
|
||||
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`)
|
||||
SELECT 'balance_report_exclude_customer_id', '12', 'حذف مشتری از تراز', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'balance_report_exclude_customer_id' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'balance_report_exclude_customer_id', '12', 'حذف مشتری از تراز', 0, 1, NULL
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'balance_report_exclude_customer_id' LIMIT 1);
|
||||
|
||||
-- =============================================================================
|
||||
-- بخش ۳ — فقط چند UPDATE مطمئن (کلیدهای مربوط به کد جدید)
|
||||
-- =============================================================================
|
||||
|
||||
UPDATE `settings` SET `value` = 'main_product', `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'منبع قیمت')
|
||||
WHERE `key` = 'price_provider';
|
||||
UPDATE `settings` SET `value` = '13' WHERE `key` = 'main_product';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `value` = 'main_product', `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'منبع قیمت')
|
||||
-- WHERE `key` = 'price_provider';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `value` = '13' WHERE `key` = 'main_product';
|
||||
UPDATE `settings` SET `value` = 'true' WHERE `key` = 'profit_gold_api_enabled';
|
||||
UPDATE `settings` SET `is_active` = 1 WHERE `key` = 'open_register';
|
||||
UPDATE `settings` SET `value` = '12' WHERE `key` = 'balance_report_exclude_customer_id';
|
||||
@@ -163,18 +174,21 @@ INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `de
|
||||
SELECT 'payping_gateway_items', 'sDsB,gp1Q,GPH4,AMAX,TbQl,AAQl', 'لیست item (چرخشی)', 1, 1, NULL
|
||||
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`)
|
||||
SELECT 'payping_round_toman', 'true', 'گرد کردن مبلغ به تومان', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_round_toman' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'payping_round_toman', 'true', 'گرد کردن مبلغ به تومان', 0, 1, NULL
|
||||
-- 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`)
|
||||
SELECT 'payping_strict_failed_withdraw', 'true', 'اولویت تراکنش ناموفق', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_strict_failed_withdraw' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'payping_strict_failed_withdraw', 'true', 'اولویت تراکنش ناموفق', 0, 1, NULL
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_strict_failed_withdraw' LIMIT 1);
|
||||
|
||||
UPDATE `settings` SET `value` = 'https://payment.goldaliii.com/payment/start' WHERE `key` = 'payping_start_url';
|
||||
UPDATE `settings` SET `value` = 'https://payment.goldaliii.com/payment/verify' WHERE `key` = 'payping_verify_url';
|
||||
UPDATE `settings` SET `value` = 'sepal' WHERE `key` = 'payping_gateway_name';
|
||||
UPDATE `settings` SET `value` = 'sDsB,gp1Q,GPH4,AMAX,TbQl,AAQl' WHERE `key` = 'payping_gateway_items';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `value` = 'sDsB,gp1Q,GPH4,AMAX,TbQl,AAQl' WHERE `key` = 'payping_gateway_items';
|
||||
UPDATE `settings` SET `value` = 'true' WHERE `key` IN ('payping_round_toman', 'payping_strict_failed_withdraw');
|
||||
|
||||
-- =============================================================================
|
||||
|
||||
@@ -64,9 +64,10 @@ INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `de
|
||||
SELECT 'montzar_base_url', 'https://limangold.ir', 'آدرس سرور همکار', 1, 1, NULL
|
||||
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`)
|
||||
SELECT 'montzar_token', '', 'توکن همکار (خودکار)', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_token' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'montzar_token', '', 'توکن همکار (خودکار)', 0, 1, NULL
|
||||
-- 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`)
|
||||
SELECT 'montzar_open_buy', 'true', 'باز بودن خرید همکار', 1, 1, NULL
|
||||
@@ -76,25 +77,30 @@ INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `de
|
||||
SELECT 'montzar_open_sell', 'true', 'باز بودن فروش همکار', 1, 1, NULL
|
||||
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`)
|
||||
SELECT 'montzar_diff', '0', 'اختلاف قیمت همکار', 0, 1, 'سیستم پر میکند'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_diff' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'montzar_diff', '0', 'اختلاف قیمت همکار', 0, 1, 'سیستم پر میکند'
|
||||
-- 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`)
|
||||
SELECT 'montzar_live_price', '0', 'قیمت لحظهای همکار', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_live_price' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'montzar_live_price', '0', 'قیمت لحظهای همکار', 0, 1, NULL
|
||||
-- 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`)
|
||||
SELECT 'montzar_mazaneh', '0', 'مظنه همکار', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_mazaneh' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'montzar_mazaneh', '0', 'مظنه همکار', 0, 1, NULL
|
||||
-- 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`)
|
||||
SELECT 'montzar_truly_buy_mazaneh', '0', 'مظنه خرید همکار', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_truly_buy_mazaneh' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'montzar_truly_buy_mazaneh', '0', 'مظنه خرید همکار', 0, 1, NULL
|
||||
-- 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`)
|
||||
SELECT 'montzar_truly_sell_mazaneh', '0', 'مظنه فروش همکار', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'montzar_truly_sell_mazaneh' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'montzar_truly_sell_mazaneh', '0', 'مظنه فروش همکار', 0, 1, NULL
|
||||
-- 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`)
|
||||
SELECT 'display_montzar', 'false', 'نمایش بلوک همکار در UI', 1, 1, NULL
|
||||
@@ -184,13 +190,15 @@ INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `de
|
||||
SELECT 'tahesab_bank_account', '', 'حساب بانکی تهحساب', 1, 1, NULL
|
||||
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`)
|
||||
SELECT 'telegram_bot_token', '', 'توکن بات تلگرام', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'telegram_bot_token' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'telegram_bot_token', '', 'توکن بات تلگرام', 0, 1, NULL
|
||||
-- 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`)
|
||||
SELECT 'bale_bot_token', '', 'توکن بات بله', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'bale_bot_token' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'bale_bot_token', '', 'توکن بات بله', 0, 1, NULL
|
||||
-- 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`)
|
||||
SELECT 'support_messenger_id', '', 'شناسه پشتیبانی پیامرسان', 1, 0, 'بله: یوزرنیم ble.ir | تلگرام: یوزرنیم | واتساپ: شماره با کد کشور | روبیکا/ایتا/سروش: یوزرنیم'
|
||||
@@ -205,17 +213,20 @@ SELECT 'support_messenger', 'bale', 'پیامرسان پشتیبانی', 1, 1
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'support_messenger' LIMIT 1);
|
||||
|
||||
-- min/max قیمت روز (سیستم)
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
SELECT 'up_price', '0', 'بیشترین قیمت امروز', 0, 1, 'ReportController'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'up_price' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'up_price', '0', 'بیشترین قیمت امروز', 0, 1, 'ReportController'
|
||||
-- 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`)
|
||||
SELECT 'down_price', '0', 'کمترین قیمت امروز', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'down_price' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'down_price', '0', 'کمترین قیمت امروز', 0, 1, NULL
|
||||
-- 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`)
|
||||
SELECT 'price_extreme_date', '', 'تاریخ min/max روز', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'price_extreme_date' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'price_extreme_date', '', 'تاریخ min/max روز', 0, 1, NULL
|
||||
-- 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`)
|
||||
SELECT 'product_update_price_on_list', 'true', 'بروز قیمت در لیست محصول', 1, 1, NULL
|
||||
@@ -254,15 +265,18 @@ WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'payping_gateway_item'
|
||||
-- عنوان فارسی + can_edit (value دست نخورده)
|
||||
-- =============================================================================
|
||||
|
||||
UPDATE `settings` SET `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'منبع قیمت'), `can_edit` = 1,
|
||||
`description` = 'zaarbox | main_product | montzar | etehadie | taban_gohar'
|
||||
WHERE `key` = 'price_provider';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'منبع قیمت'), `can_edit` = 1,
|
||||
-- `description` = 'zaarbox | main_product | montzar | etehadie | taban_gohar'
|
||||
-- WHERE `key` = 'price_provider';
|
||||
|
||||
UPDATE `settings` SET `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'محصول / UUID تابلو'), `can_edit` = 1
|
||||
WHERE `key` = 'main_product';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'محصول / UUID تابلو'), `can_edit` = 1
|
||||
-- WHERE `key` = 'main_product';
|
||||
|
||||
UPDATE `settings` SET `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'آدرس API Zaarbox'), `can_edit` = 1
|
||||
WHERE `key` = 'zaarbox_api_url';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'آدرس API Zaarbox'), `can_edit` = 1
|
||||
-- WHERE `key` = 'zaarbox_api_url';
|
||||
|
||||
UPDATE `settings` SET `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'شناسه ردیف Zaarbox'), `can_edit` = 1,
|
||||
`value` = TRIM(REPLACE(REPLACE(`value`, CHAR(10), ''), CHAR(13), ''))
|
||||
@@ -277,8 +291,9 @@ WHERE `key` = 'buy_fee';
|
||||
UPDATE `settings` SET `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'سود فروش نمایش'), `can_edit` = 1
|
||||
WHERE `key` = 'sell_fee';
|
||||
|
||||
UPDATE `settings` SET `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'کارمزد ریالی سفارش (legacy)'), `can_edit` = 0
|
||||
WHERE `key` = 'fee_cash';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'کارمزد ریالی سفارش (legacy)'), `can_edit` = 0
|
||||
-- WHERE `key` = 'fee_cash';
|
||||
|
||||
UPDATE `settings` SET `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'درصد کارمزد سفارش'), `can_edit` = 1
|
||||
WHERE `key` = 'fee_service_charge_percentage';
|
||||
@@ -289,21 +304,24 @@ WHERE `key` = 'jibit_verification';
|
||||
UPDATE `settings` SET `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'تأیید ثبتنام جیبیت'), `can_edit` = 1
|
||||
WHERE `key` = 'register_jibit_verify';
|
||||
|
||||
UPDATE `settings` SET `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'شناسه کلاینت API خارجی'), `can_edit` = 1
|
||||
WHERE `key` = 'node_client_id';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'شناسه کلاینت API خارجی'), `can_edit` = 1
|
||||
-- WHERE `key` = 'node_client_id';
|
||||
|
||||
UPDATE `settings` SET `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'کلید HMAC API خارجی'), `can_edit` = 1
|
||||
WHERE `key` = 'node_shared_secret';
|
||||
|
||||
UPDATE `settings` SET `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'API سفارش خارجی'), `can_edit` = 1
|
||||
WHERE `key` = 'external_order_api_enabled';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'API سفارش خارجی'), `can_edit` = 1
|
||||
-- WHERE `key` = 'external_order_api_enabled';
|
||||
|
||||
UPDATE `settings` SET `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'بسته بودن همکار'), `can_edit` = 1
|
||||
WHERE `key` = 'montzar_closed';
|
||||
|
||||
UPDATE `settings` SET `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'نام Montify'), `can_edit` = 1,
|
||||
`description` = 'RequestsController — اختیاری'
|
||||
WHERE `key` = 'montify_name';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'نام Montify'), `can_edit` = 1,
|
||||
-- `description` = 'RequestsController — اختیاری'
|
||||
-- WHERE `key` = 'montify_name';
|
||||
|
||||
-- =============================================================================
|
||||
-- CONST — کلیدهای مورد استفاده کد
|
||||
@@ -349,7 +367,8 @@ WHERE `key` = 'main_product';
|
||||
UPDATE `settings` SET `type` = 'longtext' WHERE `key` IN ('text_rule', 'text_about');
|
||||
|
||||
-- select (+ گزینهها در description)
|
||||
UPDATE `settings` SET `type` = 'select', `description` = 'montzar,zaarbox,main_product,etehadie,taban_gohar' WHERE `key` = 'price_provider';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `type` = 'select', `description` = 'montzar,zaarbox,main_product,etehadie,taban_gohar' WHERE `key` = 'price_provider';
|
||||
UPDATE `settings` SET `type` = 'select', `description` = 'required = اجباری؛ خالی = اختیاری|required,', `can_edit` = 1 WHERE `key` = 'referral_id';
|
||||
UPDATE `settings` SET `type` = 'select', `description` = 'sepal,' WHERE `key` = 'payping_gateway_name';
|
||||
UPDATE `settings` SET `type` = 'select', `description` = 'bale,telegram,whatsapp,rubika,eitaa,soroush' WHERE `key` = 'support_messenger';
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
|
||||
START TRANSACTION;
|
||||
|
||||
UPDATE `settings` SET `value` = 'zaarbox' WHERE `key` = 'price_provider';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `value` = 'zaarbox' WHERE `key` = 'price_provider';
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
SELECT 'price_provider', 'zaarbox', 'منبع قیمت', 1, 1, 'zaarbox | main_product | montzar'
|
||||
@@ -12,7 +13,8 @@ WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'price_provider' LIMIT
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
SELECT 'zaarbox_api_url', 'https://price.zaarbox.ir/api/free', 'آدرس API تابلو', 1, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'zaarbox_api_url' LIMIT 1);
|
||||
UPDATE `settings` SET `value` = 'https://price.zaarbox.ir/api/free' WHERE `key` = 'zaarbox_api_url';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `value` = 'https://price.zaarbox.ir/api/free' WHERE `key` = 'zaarbox_api_url';
|
||||
|
||||
-- key ردیف در JSON (یا UUID فیلد id) — از Network تابلو کپی کنید
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
|
||||
@@ -120,7 +120,8 @@ INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `de
|
||||
SELECT 'is_store', 'true', 'حالت فروشگاهی (قطره / کشکول)', 1, 1, 'true = روتهای فروشگاه', 'switch'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'is_store' LIMIT 1);
|
||||
|
||||
UPDATE `settings` SET `value` = 'true' WHERE `key` = 'is_store';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `value` = 'true' WHERE `key` = 'is_store';
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
SELECT 'montzar_price', 'true', 'قیمت از همکار (montzar)', 1, 1, NULL, 'switch'
|
||||
|
||||
@@ -43,15 +43,17 @@ SET @price_channel_default_text = CONCAT(
|
||||
);
|
||||
|
||||
-- توکن روبیکا (توکن بله/تلگرام از قبل موجودند) — سیستمی (can_edit=0)
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
SELECT 'rubika_bot_token', '', 'توکن بات روبیکا', 0, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'rubika_bot_token' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
-- SELECT 'rubika_bot_token', '', 'توکن بات روبیکا', 0, 1, NULL
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'rubika_bot_token' LIMIT 1);
|
||||
|
||||
-- دسترسی دیپلوی — فقط تنظیمات پیشرفته (can_edit=0)
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
SELECT 'price_channel_access', 'false', 'دسترسی ارسال قیمت به کانال', 0, 1,
|
||||
'روشن: گروه «ارسال قیمت به کانال» در تنظیمات عادی پنل دیده میشود. خاموش: مخفی است (فقط از تنظیمات پیشرفته).', 'switch'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'price_channel_access' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'price_channel_access', 'false', 'دسترسی ارسال قیمت به کانال', 0, 1,
|
||||
-- 'روشن: گروه «ارسال قیمت به کانال» در تنظیمات عادی پنل دیده میشود. خاموش: مخفی است (فقط از تنظیمات پیشرفته).', 'switch'
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'price_channel_access' LIMIT 1);
|
||||
|
||||
-- محتوا — قابل ویرایش (can_edit=1)
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
@@ -108,33 +110,38 @@ SELECT 'change_mesghal', '4.3318', 'وزن مثقال (گرم)', 1, 1,
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'change_mesghal' LIMIT 1);
|
||||
|
||||
-- مقصد ارسال هر پیامرسان (آیدی چنل/گروه) — سیستمی (can_edit=0)
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
SELECT 'price_channel_bale_to', '', 'مقصد ارسال بله', 0, 1,
|
||||
'آیدی چنل/گروه بله برای ارسال قیمت (چند مقصد با ویرگول).', 'text'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'price_channel_bale_to' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'price_channel_bale_to', '', 'مقصد ارسال بله', 0, 1,
|
||||
-- 'آیدی چنل/گروه بله برای ارسال قیمت (چند مقصد با ویرگول).', 'text'
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'price_channel_bale_to' LIMIT 1);
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
SELECT 'price_channel_telegram_to', '', 'مقصد ارسال تلگرام', 0, 1,
|
||||
'آیدی چنل/گروه تلگرام برای ارسال قیمت (چند مقصد با ویرگول).', 'text'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'price_channel_telegram_to' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'price_channel_telegram_to', '', 'مقصد ارسال تلگرام', 0, 1,
|
||||
-- 'آیدی چنل/گروه تلگرام برای ارسال قیمت (چند مقصد با ویرگول).', 'text'
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'price_channel_telegram_to' LIMIT 1);
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
SELECT 'price_channel_rubika_to', '', 'مقصد ارسال روبیکا', 0, 1,
|
||||
'آیدی چنل/گروه روبیکا برای ارسال قیمت (چند مقصد با ویرگول).', 'text'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'price_channel_rubika_to' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'price_channel_rubika_to', '', 'مقصد ارسال روبیکا', 0, 1,
|
||||
-- 'آیدی چنل/گروه روبیکا برای ارسال قیمت (چند مقصد با ویرگول).', 'text'
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'price_channel_rubika_to' LIMIT 1);
|
||||
|
||||
-- استانداردسازی can_edit
|
||||
UPDATE `settings` SET `can_edit` = 0 WHERE `key` IN (
|
||||
'rubika_bot_token',
|
||||
'price_channel_access',
|
||||
'price_channel_bale_to', 'price_channel_telegram_to', 'price_channel_rubika_to'
|
||||
);
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'دسترسی ارسال قیمت به کانال',
|
||||
`type` = 'switch',
|
||||
`can_edit` = 0,
|
||||
`description` = 'روشن: گروه «ارسال قیمت به کانال» در تنظیمات عادی پنل دیده میشود. خاموش: مخفی است (فقط از تنظیمات پیشرفته).'
|
||||
WHERE `key` = 'price_channel_access';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `can_edit` = 0 WHERE `key` IN (
|
||||
-- 'rubika_bot_token',
|
||||
-- 'price_channel_access',
|
||||
-- 'price_channel_bale_to', 'price_channel_telegram_to', 'price_channel_rubika_to'
|
||||
-- );
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'دسترسی ارسال قیمت به کانال',
|
||||
-- `type` = 'switch',
|
||||
-- `can_edit` = 0,
|
||||
-- `description` = 'روشن: گروه «ارسال قیمت به کانال» در تنظیمات عادی پنل دیده میشود. خاموش: مخفی است (فقط از تنظیمات پیشرفته).'
|
||||
-- WHERE `key` = 'price_channel_access';
|
||||
UPDATE `settings` SET `can_edit` = 1 WHERE `key` IN (
|
||||
'price_channel_enabled', 'price_channel_messengers', 'price_channel_diff',
|
||||
'price_channel_min_seconds', 'price_channel_message_text',
|
||||
|
||||
@@ -31,7 +31,8 @@ DELETE FROM `const` WHERE `key` IN (
|
||||
'first_customer_wallet_value'
|
||||
);
|
||||
|
||||
UPDATE `settings` SET `value` = '13', `can_edit` = 1
|
||||
WHERE `key` = 'main_wallet_products' AND TRIM(COALESCE(`value`, '')) = '';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `value` = '13', `can_edit` = 1
|
||||
-- WHERE `key` = 'main_wallet_products' AND TRIM(COALESCE(`value`, '')) = '';
|
||||
|
||||
COMMIT;
|
||||
|
||||
@@ -3,27 +3,30 @@
|
||||
-- اجرا روی پروژههای موجود بعد از مهاجرت به SSE لاراول
|
||||
|
||||
-- اطمینان از کلیدهای فعال SSE
|
||||
UPDATE `settings` SET
|
||||
`value` = 'true',
|
||||
`can_edit` = 0,
|
||||
`is_active` = 1,
|
||||
`title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'قیمت لحظهای (SSE)'),
|
||||
`description` = 'روشن: اپ به sse_path وصل میشود؛ خاموش: polling /api/price/last و /customer/product/list'
|
||||
WHERE `key` = 'wss_enabled';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `value` = 'true',
|
||||
-- `can_edit` = 0,
|
||||
-- `is_active` = 1,
|
||||
-- `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'قیمت لحظهای (SSE)'),
|
||||
-- `description` = 'روشن: اپ به sse_path وصل میشود؛ خاموش: polling /api/price/last و /customer/product/list'
|
||||
-- WHERE `key` = 'wss_enabled';
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
SELECT 'sse_path', '/api/price/stream', 'مسیر SSE قیمت', 0, 1,
|
||||
'GET لاراول — استریم event:last و event:list',
|
||||
'text'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'sse_path' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'sse_path', '/api/price/stream', 'مسیر SSE قیمت', 0, 1,
|
||||
-- 'GET لاراول — استریم event:last و event:list',
|
||||
-- 'text'
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'sse_path' LIMIT 1);
|
||||
|
||||
UPDATE `settings` SET
|
||||
`value` = COALESCE(NULLIF(TRIM(`value`), ''), '/api/price/stream'),
|
||||
`can_edit` = 0,
|
||||
`is_active` = 1,
|
||||
`title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'مسیر SSE قیمت'),
|
||||
`description` = 'مسیر GET لاراول برای استریم قیمت — پیشفرض /api/price/stream'
|
||||
WHERE `key` = 'sse_path';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `value` = COALESCE(NULLIF(TRIM(`value`), ''), '/api/price/stream'),
|
||||
-- `can_edit` = 0,
|
||||
-- `is_active` = 1,
|
||||
-- `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'مسیر SSE قیمت'),
|
||||
-- `description` = 'مسیر GET لاراول برای استریم قیمت — پیشفرض /api/price/stream'
|
||||
-- WHERE `key` = 'sse_path';
|
||||
|
||||
-- حذف کلیدهای اضافی WebSocket/montzar
|
||||
DELETE FROM `settings`
|
||||
|
||||
@@ -10,14 +10,15 @@ DELETE FROM `settings` WHERE `key` IN (
|
||||
'price_primary_source'
|
||||
);
|
||||
|
||||
UPDATE `settings`
|
||||
SET
|
||||
`value` = CASE
|
||||
WHEN LOWER(TRIM(`value`)) IN ('taban_gohar', 'etehadie') THEN 'montzar'
|
||||
ELSE `value`
|
||||
END,
|
||||
`description` = 'منبع فعال قیمت|montzar,zaarbox,main_product',
|
||||
`type` = 'select'
|
||||
WHERE `key` = 'price_provider';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings`
|
||||
-- SET
|
||||
-- `value` = CASE
|
||||
-- WHEN LOWER(TRIM(`value`)) IN ('taban_gohar', 'etehadie') THEN 'montzar'
|
||||
-- ELSE `value`
|
||||
-- END,
|
||||
-- `description` = 'منبع فعال قیمت|montzar,zaarbox,main_product',
|
||||
-- `type` = 'select'
|
||||
-- WHERE `key` = 'price_provider';
|
||||
|
||||
COMMIT;
|
||||
|
||||
@@ -1,22 +1,26 @@
|
||||
-- مهاجرت WebSocket/montzar → SSE لاراول
|
||||
-- دیگر نیازی به docker montzar و لایتاسپید /prc/ws نیست
|
||||
|
||||
UPDATE `settings` SET `value` = 'true', `can_edit` = 0, `is_active` = 1,
|
||||
`title_fa` = 'قیمت لحظهای (SSE)',
|
||||
`description` = 'روشن: اپ به /api/price/stream وصل میشود؛ خاموش: polling /api/price/last و /customer/product/list'
|
||||
WHERE `key` = 'wss_enabled';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `value` = 'true', `can_edit` = 0, `is_active` = 1,
|
||||
-- `title_fa` = 'قیمت لحظهای (SSE)',
|
||||
-- `description` = 'روشن: اپ به /api/price/stream وصل میشود؛ خاموش: polling /api/price/last و /customer/product/list'
|
||||
-- WHERE `key` = 'wss_enabled';
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
SELECT 'sse_path', '/api/price/stream', 'مسیر SSE قیمت', 0, 1,
|
||||
'مسیر GET لاراول برای استریم last/list — پیشفرض /api/price/stream',
|
||||
'text'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'sse_path' LIMIT 1);
|
||||
-- [super-admin can_edit=0]
|
||||
-- INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
-- SELECT 'sse_path', '/api/price/stream', 'مسیر SSE قیمت', 0, 1,
|
||||
-- 'مسیر GET لاراول برای استریم last/list — پیشفرض /api/price/stream',
|
||||
-- 'text'
|
||||
-- WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'sse_path' LIMIT 1);
|
||||
|
||||
UPDATE `settings` SET `can_edit` = 0, `is_active` = 0,
|
||||
`title_fa` = 'مسیر WebSocket (منسوخ)',
|
||||
`description` = 'منسوخ — SSE از sse_path استفاده میکند. montzar دیگر لازم نیست.'
|
||||
WHERE `key` = 'wss_path';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `can_edit` = 0, `is_active` = 0,
|
||||
-- `title_fa` = 'مسیر WebSocket (منسوخ)',
|
||||
-- `description` = 'منسوخ — SSE از sse_path استفاده میکند. montzar دیگر لازم نیست.'
|
||||
-- WHERE `key` = 'wss_path';
|
||||
|
||||
UPDATE `settings` SET `can_edit` = 0, `is_active` = 0,
|
||||
`description` = 'منسوخ — montzar trigger. با SSE دیگر استفاده نمیشود.'
|
||||
WHERE `key` IN ('wss_trigger_host', 'wss_http_port', 'wss_socket_port', 'wss_trigger_path', 'wss_link');
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `can_edit` = 0, `is_active` = 0,
|
||||
-- `description` = 'منسوخ — montzar trigger. با SSE دیگر استفاده نمیشود.'
|
||||
-- WHERE `key` IN ('wss_trigger_host', 'wss_http_port', 'wss_socket_port', 'wss_trigger_path', 'wss_link');
|
||||
|
||||
Reference in New Issue
Block a user