-- Table structure for table `gspin`
--

CREATE TABLE `gspin` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `fname` varchar(145) NOT NULL,
  `fdesc` varchar(1200) NOT NULL,
  `factive` tinyint(4) NOT NULL DEFAULT 1,
  `inserttime` timestamp NULL DEFAULT current_timestamp(),
  `fextra` longtext DEFAULT NULL,
  `fdeleted` tinyint(4) DEFAULT 0,
  `fGeneral_limitation` bigint(20) DEFAULT NULL,
  `fUser_limitation` bigint(20) DEFAULT NULL,
  `fitems` longtext DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `gspin`
--


--
-- Table structure for table `gspin_used`
--

CREATE TABLE `gspin_used` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `idgspin` bigint(20) NOT NULL,
  `inserttime` timestamp NULL DEFAULT current_timestamp(),
  `fextra` longtext DEFAULT NULL,
  `fresult_info` longtext DEFAULT NULL,
  `fidwebuser` bigint(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `gspin_used`
--


--
-- Table structure for table `layouts_html`
--

CREATE TABLE `layouts_html` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `fhtml` longtext DEFAULT NULL,
  `felement_id` bigint(25) unsigned NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `layouts_html`
--

INSERT INTO `layouts_html` VALUES (1,'{\"ShowTopMenu\":true,\"ShowLeftMenu\":true,\"title\":\"وبلاگ\",\"url\":\"https:\\u002F\\u002Fcode-man.ir\\u002Fblog\"}',1723113891758),(2,'{\"ShowTopMenu\":true,\"ShowLeftMenu\":true,\"title\":\"پرفروش‌ترین\",\"url\":\"https:\\u002F\\u002Fcode-man.ir\\u002Fmain-store\\u002Fbest-selling\"}',1723113931550),(3,'{\"ShowTopMenu\":true,\"ShowLeftMenu\":true,\"title\":\"شگفت‌انگیز‌ها\",\"url\":\"https:\\u002F\\u002Fcode-man.ir\\u002Fmain-store\\u002Foffers\"}',1723113844311);

--
-- Table structure for table `lic`
--

CREATE TABLE `lic` (
  `FldKey` longtext DEFAULT NULL,
  `FldValue` longtext DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `lic`
--


--
-- Table structure for table `logtable`
--

CREATE TABLE `logtable` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `log` varchar(1005) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `logtable`
--


--
-- Temporary view structure for view `mainbasket`
--

/*!50001 DROP VIEW IF EXISTS `mainbasket`*/;
/*!50001 CREATE VIEW `mainbasket` AS SELECT 
 1 AS `idwebuser`,
 1 AS `idproduct`,
 1 AS `idtempUser`,
 1 AS `type`,
 1 AS `idexternalRequest`,
 1 AS `count`,
 1 AS `id_basket`,
 1 AS `id`,
 1 AS `ID_varient_product`,
 1 AS `fsku`,
 1 AS `fzarib`,
 1 AS `fname`,
 1 AS `fprice`,
 1 AS `fweight`,
 1 AS `fpriceUnit`,
 1 AS `fpriceAll`,
 1 AS `fis_amazing`,
 1 AS `amazing_startDate`,
 1 AS `amazing_endDate`,
 1 AS `fimages`,
 1 AS `CarriersData`,
 1 AS `fidCarrierId`,
 1 AS `factive`,
 1 AS `foff`,
 1 AS `fronding`,
 1 AS `amazing_foff`,
 1 AS `fdate_update_price`,
 1 AS `fis_down`,
 1 AS `fis_virtual`,
 1 AS `fisService`,
 1 AS `fis_Single_sale`,
 1 AS `fidCateg`,
 1 AS `fvariabelDependenc1desc`,
 1 AS `fvariabelDependenc2desc`,
 1 AS `fmax_sell_quantity`,
 1 AS `fkeys`,
 1 AS `fis_freeShip`,
 1 AS `fparent`,
 1 AS `storeName`,
 1 AS `storeLogo`,
 1 AS `storeUrl`,
 1 AS `storeRate`,
 1 AS `storeCode`,
 1 AS `storeis_new`,
 1 AS `storeis_official`,
 1 AS `storeis_trusted`,
 1 AS `fcanShappingByMainStore`,
 1 AS `fManage_stock_quantity`,
 1 AS `fstock_quantity`,
 1 AS `fcanShappingBySeller`,
 1 AS `fdaystoSendMainStore`,
 1 AS `storeId`,
 1 AS `furl`*/;

--
-- Temporary view structure for view `mainbasket_next`
--

/*!50001 DROP VIEW IF EXISTS `mainbasket_next`*/;
/*!50001 CREATE VIEW `mainbasket_next` AS SELECT 
 1 AS `idwebuser`,
 1 AS `idproduct`,
 1 AS `idtempUser`,
 1 AS `type`,
 1 AS `count`,
 1 AS `id_basket`,
 1 AS `id`,
 1 AS `fsku`,
 1 AS `fname`,
 1 AS `fprice`,
 1 AS `fpriceUnit`,
 1 AS `fpriceAll`,
 1 AS `fimages`,
 1 AS `factive`,
 1 AS `CarriersData`,
 1 AS `foff`,
 1 AS `fronding`,
 1 AS `amazing_foff`,
 1 AS `fis_amazing`,
 1 AS `amazing_startDate`,
 1 AS `amazing_endDate`,
 1 AS `fdate_update_price`,
 1 AS `fis_down`,
 1 AS `fzarib`,
 1 AS `fis_virtual`,
 1 AS `fis_Single_sale`,
 1 AS `fvariabelDependenc1desc`,
 1 AS `fvariabelDependenc2desc`,
 1 AS `fidCateg`,
 1 AS `fmax_sell_quantity`,
 1 AS `fkeys`,
 1 AS `fis_freeShip`,
 1 AS `fparent`,
 1 AS `storeName`,
 1 AS `storeLogo`,
 1 AS `storeUrl`,
 1 AS `storeRate`,
 1 AS `storeCode`,
 1 AS `storeis_new`,
 1 AS `storeis_official`,
 1 AS `storeis_trusted`,
 1 AS `storeId`,
 1 AS `furl`*/;

--
-- Table structure for table `moduls`
--

CREATE TABLE `moduls` (
  `Fldid` int(11) NOT NULL AUTO_INCREMENT,
  `FldName` varchar(255) DEFAULT NULL,
  `FldLic` longblob DEFAULT NULL,
  `FldISTrial` tinyint(1) DEFAULT 1,
  `FldActive` tinyint(1) DEFAULT 0,
  `FldFullNamesFa` varchar(255) DEFAULT NULL,
  `FldShortNamesFa` varchar(255) DEFAULT NULL,
  `FldFullNamesEn` varchar(255) DEFAULT NULL,
  `FldShortNamesEn` varchar(255) DEFAULT NULL,
  `FldIndexView` int(11) DEFAULT NULL,
  `FldWellcomeTrialMSG` varchar(2955) DEFAULT NULL,
  `FldWellcomeOrginalMSG` varchar(2955) DEFAULT NULL,
  `FldVisibal` tinyint(1) DEFAULT 0,
  `flddeleted` tinyint(1) DEFAULT 0,
  `FldHostName` varchar(100) NOT NULL,
  `FldInsertTime` timestamp NOT NULL DEFAULT current_timestamp(),
  `FldInsertUser` varchar(50) NOT NULL,
  PRIMARY KEY (`Fldid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `moduls`
--

INSERT INTO `moduls` VALUES (1,'MV01',NULL,0,0,'ماژول شنود هوشمند','شنود',NULL,NULL,0,NULL,NULL,0,0,'HOMEPC','2022-02-20 05:57:26','dbo'),(2,'MV02',NULL,0,0,'ماژول اعلام کد و نام اپراتور در صف','اعلام کد در صف',NULL,NULL,1,NULL,NULL,0,0,'HOMEPC','2022-02-20 05:57:26','dbo'),(3,'MV03',NULL,0,0,'ماژول امنیت سیستم تلفنی','امنیت',NULL,NULL,2,NULL,NULL,0,0,'HOMEPC','2022-02-20 05:57:26','dbo'),(4,'MV04',NULL,0,0,'ماژول گزارش گیری مرکز تلفن','گزارش گیری',NULL,NULL,3,NULL,NULL,0,0,'HOMEPC','2022-02-20 05:57:26','dbo'),(5,'MV05',NULL,0,0,'ماژول نوبت دهی تلفنی','نوبت دهی',NULL,NULL,4,NULL,NULL,0,0,'HOMEPC','2022-02-20 05:57:26','dbo'),(6,'MV06',NULL,0,0,'ماژول نظرسنجی در صف','نظرسنجی',NULL,NULL,5,NULL,NULL,0,0,'HOMEPC','2022-02-20 05:57:26','dbo'),(7,'MV07',NULL,0,0,'ماژول کالرآیدی و popup','کالرآیدی',NULL,NULL,6,NULL,NULL,0,0,'HOMEPC','2022-02-20 05:57:26','dbo'),(8,'MV08',NULL,0,0,'ماژول ارتباطی با بانک های اطلاعاتی','ارتباط با پایگاه داده',NULL,NULL,7,NULL,NULL,0,0,'HOMEPC','2022-02-20 05:57:26','dbo'),(9,'MV09',NULL,0,0,'ماژول ارسال پیامک','پیامک',NULL,NULL,8,NULL,NULL,0,0,'HOMEPC','2022-02-20 05:57:26','dbo'),(10,'NV10',NULL,0,0,'ماژول سیاست های تلفنی','سیاست های تلفنی',NULL,NULL,9,NULL,NULL,0,0,'HOMEPC','2022-02-20 05:57:26','dbo'),(11,'MV11',NULL,0,0,'ماژول دفتر تلفن هوشمند','دفتر تلفن',NULL,NULL,10,NULL,NULL,0,0,'HOMEPC','2022-02-20 05:57:26','dbo'),(12,'MV12',NULL,0,0,'ماژول تماس گیر خودکار','تماس خودکار',NULL,NULL,11,NULL,NULL,0,0,'HOMEPC','2022-02-20 05:57:26','dbo'),(13,'MV13',NULL,0,0,'ماژول مانیتورینگ مرکز تماس','مانیتورینگ',NULL,NULL,12,NULL,NULL,0,0,'HOMEPC','2022-02-20 05:57:26','dbo'),(14,'MV14',NULL,0,0,'ماژول کال بک در صف انتظار','کال بک صف',NULL,NULL,13,NULL,NULL,0,0,'HOMEPC','2022-02-20 05:57:26','dbo'),(15,'MV15',NULL,0,0,'ماژول راهنمای صوتی','راهنمای صوتی',NULL,NULL,14,NULL,NULL,0,0,'HOMEPC','2022-02-20 05:57:26','dbo'),(16,'MV16',NULL,0,1,'ماژول فروشگاه اینترنتی','فروشگاه اینترنتی',NULL,NULL,15,NULL,NULL,1,0,'HOMEPC','2023-09-08 19:17:22','dbo');

--
-- Table structure for table `modulssettings`
--

CREATE TABLE `modulssettings` (
  `fldid` int(11) NOT NULL AUTO_INCREMENT,
  `FldKey` varchar(255) DEFAULT NULL,
  `FldValue` varchar(255) DEFAULT NULL,
  `FldHostName` varchar(100) DEFAULT NULL,
  `FldDeleted` tinyint(1) NOT NULL DEFAULT 0,
  `FldInsertTime` timestamp NOT NULL DEFAULT current_timestamp(),
  `FldInsertUser` varchar(50) NOT NULL DEFAULT 'current_user',
  PRIMARY KEY (`fldid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `modulssettings`
--

INSERT INTO `modulssettings` VALUES (1,'PC_NAME_RUN_AGIS',NULL,NULL,0,'2023-09-08 18:16:44','user()'),(2,'PC_IP_RUN_AGIS',NULL,NULL,0,'2023-09-08 18:16:44','user()'),(3,'MSSQL_PORT',NULL,NULL,0,'2023-09-08 18:16:44','user()');

--
-- Table structure for table `nobat_allnobats`
--

CREATE TABLE `nobat_allnobats` (
  `Fldid` bigint(20) NOT NULL AUTO_INCREMENT,
  `FldIdCustomer` varchar(255) DEFAULT NULL,
  `FldidLastLevel` bigint(20) DEFAULT NULL,
  `FldLastLevel` smallint(6) DEFAULT NULL,
  `FldFlag` smallint(6) NOT NULL DEFAULT 0,
  `FldidDB` bigint(20) DEFAULT NULL,
  `Fldvoicepath` varchar(255) DEFAULT NULL,
  `Fldtitle` varchar(255) DEFAULT NULL,
  `FldDate` timestamp NOT NULL DEFAULT current_timestamp(),
  `FldTimeStart` int(11) DEFAULT NULL,
  `FldActive` tinyint(1) DEFAULT 1,
  `FldPcName` varchar(255) DEFAULT NULL,
  `FldDeleted` tinyint(1) NOT NULL DEFAULT 0,
  `FldCallerid` varchar(255) DEFAULT NULL,
  `FldCommentVoicePath` varchar(255) DEFAULT NULL,
  `FldCallTime` datetime(6) DEFAULT NULL,
  `FldTimeStartSTR` varchar(255) DEFAULT NULL,
  `FldTimeEndSTR` varchar(255) DEFAULT NULL,
  `FldTimeEnd` int(11) DEFAULT NULL,
  `FldCodeMeli` varchar(255) DEFAULT NULL,
  `FldMobileNO` varchar(255) DEFAULT NULL,
  `FldDesc` varchar(255) DEFAULT NULL,
  `FldHostName` varchar(100) DEFAULT NULL,
  `FldInsertTime` timestamp NOT NULL DEFAULT current_timestamp(),
  `FldInsertUser` varchar(150) DEFAULT NULL,
  `FldAproved` tinyint(1) NOT NULL DEFAULT 0,
  `FldLocked` tinyint(1) NOT NULL DEFAULT 0,
  `FldIdTransaction` bigint(20) DEFAULT 0,
  `FldLockedTime` timestamp NULL DEFAULT NULL,
  `FldTranUID` varchar(145) DEFAULT NULL,
  PRIMARY KEY (`Fldid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `nobat_allnobats`
--


--
-- Table structure for table `nobat_level1`
--

CREATE TABLE `nobat_level1` (
  `Fldid` int(11) NOT NULL AUTO_INCREMENT,
  `IdCustomer` bigint(20) DEFAULT NULL,
  `FldIdlevel2_Items` int(11) DEFAULT NULL,
  `Fldvoicepath` varchar(3500) DEFAULT NULL,
  `Fldtitle` varchar(255) DEFAULT NULL,
  `FldActive` tinyint(1) DEFAULT 1,
  `FldidDB` bigint(20) DEFAULT NULL,
  `FldPcName` varchar(255) DEFAULT NULL,
  `FldSex` varchar(255) DEFAULT NULL,
  `FldNationalCode` varchar(50) DEFAULT NULL,
  `FldMobile` varchar(500) DEFAULT NULL,
  `FldJobTitle` varchar(255) DEFAULT NULL,
  `FldActive_OV` tinyint(1) DEFAULT 1,
  `Fldvoicepath_OV` varchar(3500) DEFAULT NULL,
  `FldShortCode` int(11) DEFAULT NULL,
  `FldWebDesc` longtext DEFAULT NULL,
  `FldHostName` varchar(100) DEFAULT NULL,
  `FldInsertTime` timestamp NOT NULL DEFAULT current_timestamp(),
  `FldInsertUser` varchar(50) DEFAULT NULL,
  `FldDeleted` tinyint(1) NOT NULL DEFAULT 0,
  `FldLasRating` int(11) NOT NULL DEFAULT 0,
  `FldLastCommensCount` int(11) NOT NULL DEFAULT 0,
  `FldLastSuggest` int(11) NOT NULL DEFAULT 0,
  `fimages` longtext DEFAULT NULL,
  `fhtml` longtext DEFAULT NULL,
  `furl` varchar(405) DEFAULT NULL,
  `flast_update` datetime DEFAULT NULL,
  `fscript` longtext DEFAULT NULL,
  PRIMARY KEY (`Fldid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `nobat_level1`
--


--
-- Table structure for table `nobat_level2_items`
--

CREATE TABLE `nobat_level2_items` (
  `Fldid` int(11) NOT NULL AUTO_INCREMENT,
  `FldIdlevel3_Items` int(11) NOT NULL,
  `Fldvoicepath` varchar(1255) DEFAULT NULL,
  `Fldtitle` varchar(200) NOT NULL,
  `FldActive` tinyint(1) DEFAULT 1,
  `FldWebDesc` longtext DEFAULT NULL,
  `FldidDB` bigint(20) DEFAULT NULL,
  `FldPcName` varchar(255) DEFAULT NULL,
  `FldDeleted` tinyint(1) NOT NULL DEFAULT 0,
  `FldHostName` varchar(100) DEFAULT NULL,
  `FldInsertTime` timestamp NOT NULL DEFAULT current_timestamp(),
  `FldInsertUser` varchar(50) DEFAULT NULL,
  `fhtml` longtext DEFAULT NULL,
  `furl` varchar(405) DEFAULT NULL,
  `flast_update` datetime DEFAULT NULL,
  `fimages` longtext DEFAULT NULL,
  `fscript` longtext DEFAULT NULL,
  PRIMARY KEY (`Fldid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `nobat_level2_items`
--


--
-- Table structure for table `nobat_level3_items`
--

CREATE TABLE `nobat_level3_items` (
  `Fldid` int(11) NOT NULL AUTO_INCREMENT,
  `FldIdlevel4_Items` int(11) NOT NULL,
  `Fldvoicepath` varchar(255) DEFAULT NULL,
  `Fldtitle` varchar(100) NOT NULL,
  `FldActive` tinyint(1) DEFAULT 1,
  `FldWebDesc` varchar(3500) DEFAULT NULL,
  `FldidDB` bigint(20) DEFAULT NULL,
  `FldPcName` varchar(255) DEFAULT NULL,
  `FldDeleted` tinyint(1) NOT NULL DEFAULT 0,
  `FldHostName` varchar(100) NOT NULL,
  `FldInsertTime` timestamp NOT NULL DEFAULT current_timestamp(),
  `FldInsertUser` varchar(50) NOT NULL,
  PRIMARY KEY (`Fldid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `nobat_level3_items`
--


--
-- Table structure for table `nobat_level4_items`
--

CREATE TABLE `nobat_level4_items` (
  `Fldid` int(11) NOT NULL AUTO_INCREMENT,
  `Fldvoicepath` varchar(255) DEFAULT NULL,
  `Fldtitle` varchar(100) NOT NULL,
  `FldActive` tinyint(1) DEFAULT 1,
  `FldWebDesc` varchar(3500) DEFAULT NULL,
  `FldidDB` bigint(20) DEFAULT NULL,
  `FldPcName` varchar(255) DEFAULT NULL,
  `FldDeleted` tinyint(1) NOT NULL DEFAULT 0,
  `FldHostName` varchar(100) NOT NULL,
  `FldInsertTime` timestamp NOT NULL DEFAULT current_timestamp(),
  `FldInsertUser` varchar(50) NOT NULL,
  PRIMARY KEY (`Fldid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `nobat_level4_items`
--


--
-- Table structure for table `nobat_logforallcalls`
--

CREATE TABLE `nobat_logforallcalls` (
  `Fldid` int(11) NOT NULL AUTO_INCREMENT,
  `flddeleted` tinyint(1) DEFAULT 0,
  `FldCallerId` varchar(255) DEFAULT NULL,
  `FldmobileNo` varchar(255) DEFAULT NULL,
  `FldEndCallTime` datetime(6) DEFAULT NULL,
  `FldDesc` varchar(3500) DEFAULT NULL,
  `FldResult` varchar(255) DEFAULT NULL,
  `FldIVRSelect` varchar(255) DEFAULT NULL,
  `FldCallStartTme` varchar(255) DEFAULT NULL,
  `FldUNIQUEID` varchar(255) DEFAULT NULL,
  `FldCodeMeli` varchar(255) DEFAULT NULL,
  `FldHostName` varchar(100) NOT NULL,
  `FldInsertTime` timestamp NOT NULL DEFAULT current_timestamp(),
  `FldInsertUser` varchar(50) NOT NULL,
  PRIMARY KEY (`Fldid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `nobat_logforallcalls`
--


--
-- Table structure for table `nobat_settings`
--

CREATE TABLE `nobat_settings` (
  `Fldid` int(11) NOT NULL AUTO_INCREMENT,
  `fldkey` varchar(255) DEFAULT NULL,
  `fldval` varchar(255) DEFAULT NULL,
  `FldHostName` varchar(100) NOT NULL,
  `FldDeleted` tinyint(1) NOT NULL DEFAULT 0,
  `FldInsertTime` timestamp NOT NULL DEFAULT current_timestamp(),
  `FldInsertUser` varchar(50) NOT NULL,
  PRIMARY KEY (`Fldid`) USING BTREE,
  UNIQUE KEY `IX_nobat_settings` (`fldkey`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `nobat_settings`
--


--
-- Table structure for table `nobat_usermanange`
--

CREATE TABLE `nobat_usermanange` (
  `Fldid` bigint(20) NOT NULL AUTO_INCREMENT,
  `FldidUser` int(11) NOT NULL,
  `FldidLastLevel` int(11) NOT NULL,
  `FldLastLevel` varchar(50) DEFAULT NULL,
  `FldDeleted` tinyint(1) NOT NULL DEFAULT 0,
  `FldHostName` varchar(100) NOT NULL,
  `FldInsertTime` timestamp NOT NULL DEFAULT current_timestamp(),
  `FldInsertUser` varchar(50) NOT NULL,
  PRIMARY KEY (`Fldid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `nobat_usermanange`
--


--
-- Table structure for table `notifs_to_webuser`
--

CREATE TABLE `notifs_to_webuser` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `fidwebuser` bigint(20) DEFAULT NULL,
  `ftype` varchar(45) DEFAULT NULL,
  `fidref` bigint(20) DEFAULT NULL,
  `fupdatetime` timestamp NULL DEFAULT current_timestamp(),
  `finserttime` timestamp NULL DEFAULT current_timestamp(),
  `fstatus` varchar(250) NOT NULL DEFAULT 'NEW',
  `fdeleted` tinyint(4) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `notoftouser` (`fidwebuser`,`ftype`,`fidref`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `notifs_to_webuser`
--


--
-- Temporary view structure for view `oneproductattributes`
--

/*!50001 DROP VIEW IF EXISTS `oneproductattributes`*/;
/*!50001 CREATE VIEW `oneproductattributes` AS SELECT 
 1 AS `paid`,
 1 AS `paidproduct`,
 1 AS `forder`,
 1 AS `paidatribute`,
 1 AS `fenable_variation`,
 1 AS `fattribute_visibility`,
 1 AS `fview_mode`,
 1 AS `pafvalue`,
 1 AS `jsonValue`,
 1 AS `paaid`,
 1 AS `paafkey`,
 1 AS `category_name`,
 1 AS `category_order`,
 1 AS `paafactive`,
 1 AS `paaftype`*/;

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `ordercode` varchar(145) DEFAULT NULL,
  `fhost` varchar(245) NOT NULL,
  `fidproduct` int(11) NOT NULL,
  `fidcustomer` int(11) NOT NULL,
  `fstatus` varchar(20) NOT NULL,
  `fdesc` varchar(1120) NOT NULL,
  `flic` longtext DEFAULT NULL,
  `fdata` longtext DEFAULT NULL,
  `activadate` timestamp NULL DEFAULT NULL,
  `inserttime` timestamp NULL DEFAULT current_timestamp(),
  `fversion` varchar(20) NOT NULL DEFAULT '1.0.0.1',
  `fuserdata` longtext DEFAULT NULL,
  `domainChangesCount` int(11) DEFAULT 0,
  `domainsHistory` longtext DEFAULT NULL,
  `lastcheckeddomain` timestamp NULL DEFAULT NULL,
  `cronmin` int(11) NOT NULL,
  `pattrn` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `fcode_UNIQUE` (`ordercode`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `orders`
--


--
-- Table structure for table `pages`
--

CREATE TABLE `pages` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `fhtml` longtext DEFAULT NULL,
  `finserttime` timestamp NULL DEFAULT current_timestamp(),
  `fauthor` varchar(45) DEFAULT NULL,
  `ftype` varchar(45) DEFAULT NULL,
  `factive` tinyint(4) DEFAULT 1,
  `fname` varchar(145) DEFAULT NULL,
  `flast_update` datetime DEFAULT NULL,
  `fdeleted` tinyint(1) NOT NULL DEFAULT 0,
  `furl` varchar(425) DEFAULT NULL,
  `fscript` longtext DEFAULT NULL,
  `fcom_type` varchar(45) DEFAULT NULL,
  `fimage` varchar(405) DEFAULT NULL,
  `fcanedit` varchar(45) DEFAULT 'yes',
  `fdesc` varchar(945) DEFAULT NULL,
  `ffixtype` varchar(45) DEFAULT NULL,
  `flayout` longtext DEFAULT NULL,
  `fctitle` varchar(545) DEFAULT NULL,
  `fcanonical` varchar(1245) DEFAULT NULL,
  `fpicAlt` varchar(645) DEFAULT NULL,
  `fkeys` varchar(900) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `pages`
--

INSERT INTO `pages` VALUES (1,'','2022-12-19 20:30:13',NULL,'home',1,'پیشفرض',NULL,0,NULL,NULL,NULL,NULL,'yes',NULL,NULL,NULL,NULL,NULL,NULL,NULL),(2,'','2022-12-19 20:30:13',NULL,'about',1,'پیشفرض',NULL,0,NULL,NULL,NULL,NULL,'yes',NULL,NULL,NULL,NULL,NULL,NULL,NULL),(3,'','2022-12-19 20:30:13',NULL,'contactus',1,'پیشفرض',NULL,0,NULL,NULL,NULL,NULL,'yes',NULL,NULL,NULL,NULL,NULL,NULL,NULL),(4,'','2022-12-19 20:30:13',NULL,'blog',1,'پیشفرض',NULL,0,NULL,NULL,NULL,NULL,'yes',NULL,NULL,NULL,NULL,NULL,NULL,NULL),(5,'','2022-12-19 20:30:13',NULL,'store',1,'پیشفرض',NULL,0,NULL,NULL,NULL,NULL,'yes',NULL,NULL,NULL,NULL,NULL,NULL,NULL),(6,' ','2022-12-28 06:21:01',NULL,'others',1,'یک مورد را انتخاب نمایید','2022-12-28 09:51:01',0,NULL,NULL,NULL,NULL,'yes',NULL,NULL,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `post_comments`
--

CREATE TABLE `post_comments` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `fidpost` bigint(20) NOT NULL,
  `femail` varchar(100) NOT NULL,
  `fname` varchar(105) DEFAULT NULL,
  `frate` int(11) DEFAULT NULL,
  `ftext` mediumtext DEFAULT NULL,
  `fstatus` tinyint(4) DEFAULT 1,
  `fdeleted` tinyint(4) NOT NULL DEFAULT 0,
  `finsertime` timestamp NOT NULL DEFAULT current_timestamp(),
  `frepley_to` bigint(20) NOT NULL DEFAULT 0,
  `ftype` varchar(45) NOT NULL DEFAULT 'post',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `post_comments`
--


--
-- Table structure for table `posts`
--

CREATE TABLE `posts` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `fimagescount` int(11) DEFAULT NULL,
  `fcontent` longtext DEFAULT NULL,
  `fhtml` longtext DEFAULT NULL,
  `finserttime` timestamp NULL DEFAULT current_timestamp(),
  `fauthor` varchar(45) DEFAULT NULL,
  `ftype` int(11) DEFAULT NULL,
  `fidCateg` int(11) DEFAULT NULL,
  `fkeys` varchar(900) DEFAULT NULL,
  `factive` tinyint(4) DEFAULT 1,
  `fimages` longtext DEFAULT NULL,
  `fname` varchar(145) DEFAULT NULL,
  `flast_update` datetime DEFAULT NULL,
  `fdeleted` tinyint(1) NOT NULL DEFAULT 0,
  `furl` varchar(2405) DEFAULT NULL,
  `frate` int(11) DEFAULT 0,
  `fratecount` int(11) DEFAULT 0,
  `fscript` longtext DEFAULT NULL,
  `fextra` longtext DEFAULT NULL,
  `flayout` longtext DEFAULT NULL,
  `fdesc` varchar(945) DEFAULT NULL,
  `fctitle` varchar(545) DEFAULT NULL,
  `fseen` int(11) DEFAULT NULL,
  `fcanonical` varchar(1245) DEFAULT NULL,
  `fpicAlt` varchar(645) DEFAULT NULL,
  `fidwebuser` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `posts`
--


--
-- Table structure for table `postscatag`
--

CREATE TABLE `postscatag` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `fcontent` longtext DEFAULT NULL,
  `fhtml` longtext DEFAULT NULL,
  `finserttime` timestamp NULL DEFAULT current_timestamp(),
  `fauthor` varchar(45) DEFAULT NULL,
  `ftype` varchar(145) DEFAULT NULL,
  `fkeys` varchar(1045) DEFAULT NULL,
  `factive` tinyint(4) DEFAULT 1,
  `fimages` longtext DEFAULT NULL,
  `fname` varchar(145) DEFAULT NULL,
  `flast_update` datetime DEFAULT NULL,
  `fdeleted` tinyint(1) NOT NULL DEFAULT 0,
  `furl` varchar(2405) DEFAULT NULL,
  `frate` int(11) DEFAULT 0,
  `fratecount` int(11) DEFAULT 0,
  `fscript` longtext DEFAULT NULL,
  `fparent` int(11) DEFAULT NULL,
  `flayout` longtext DEFAULT NULL,
  `fctitle` varchar(545) DEFAULT NULL,
  `fproducts_msg` varchar(1255) DEFAULT NULL,
  `fproducts_msg2` varchar(1255) DEFAULT NULL,
  `fcomissionP` int(11) DEFAULT NULL,
  `forder` tinyint(3) DEFAULT 0,
  `fisLink` tinyint(3) DEFAULT NULL,
  `fshow_inMainCatags` tinyint(3) DEFAULT 1,
  `fshow_inRmnue` tinyint(3) DEFAULT 1,
  `fshow_inMegamenue` tinyint(3) DEFAULT 1,
  `fshow_inElemans` tinyint(3) DEFAULT 1,
  `fcanonical` varchar(1245) DEFAULT NULL,
  `fpicAlt` varchar(645) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `postscatag`
--

INSERT INTO `postscatag` VALUES (1,NULL,NULL,'2023-08-07 16:21:15','کاربر  ','product','',1,NULL,'بدون دسته‌بندی','2023-08-07 19:51:15',0,'%d8%a8%d8%af%d9%88%d9%86-%d8%af%d8%b3%d8%aa%d9%87-%d8%a8%d9%86%d8%af%db%8c',0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,0,NULL,1,1,1,1,NULL,NULL),(2,NULL,NULL,'2023-08-07 16:30:17','کاربر  ','post','',1,NULL,'بدون دسته‌بندی','2023-08-07 20:03:20',0,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,0,NULL,1,1,1,1,NULL,NULL),(3,NULL,NULL,'2023-08-07 16:31:06','کاربر  ','faq','',1,NULL,'بدون دسته‌بندی','2023-08-07 20:01:06',0,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,0,NULL,1,1,1,1,NULL,NULL),(4,NULL,NULL,'2023-08-07 19:13:36',NULL,'product_attribute',NULL,1,NULL,'مشخصات کلی',NULL,0,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,1,1,1,1,NULL,NULL),(5,NULL,NULL,'2023-08-07 19:13:36',NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,1,1,1,1,NULL,NULL),(6,NULL,NULL,'2023-08-07 19:13:36',NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,1,1,1,1,NULL,NULL),(7,NULL,NULL,'2023-08-07 19:13:36',NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,1,1,1,1,NULL,NULL),(8,NULL,NULL,'2023-08-07 19:13:36',NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,1,1,1,1,NULL,NULL),(9,NULL,NULL,'2023-08-07 19:13:36',NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,1,1,1,1,NULL,NULL),(10,NULL,NULL,'2023-08-07 19:13:36',NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,1,1,1,1,NULL,NULL),(11,NULL,NULL,'2023-08-07 19:13:36',NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,1,1,1,1,NULL,NULL),(12,NULL,NULL,'2023-08-07 19:13:36',NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,1,1,1,1,NULL,NULL),(13,NULL,NULL,'2023-08-07 19:13:36',NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,1,1,1,1,NULL,NULL),(14,NULL,NULL,'2023-08-07 19:13:36',NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,1,1,1,1,NULL,NULL),(15,NULL,NULL,'2023-08-07 19:13:36',NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,1,1,1,1,NULL,NULL),(16,NULL,NULL,'2023-08-07 19:13:55',NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,1,1,1,1,NULL,NULL),(17,NULL,NULL,'2023-08-07 19:13:55',NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,1,1,1,1,NULL,NULL),(18,NULL,NULL,'2023-08-07 19:13:55',NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,1,1,1,1,NULL,NULL),(19,NULL,NULL,'2023-08-07 19:13:55',NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,1,1,1,1,NULL,NULL),(20,NULL,NULL,'2023-08-07 19:13:55',NULL,NULL,NULL,1,NULL,NULL,NULL,0,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,1,1,1,1,NULL,NULL);

--
-- Table structure for table `product_allattribute`
--

CREATE TABLE `product_allattribute` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `fkey` varchar(900) NOT NULL,
  `factive` tinyint(4) DEFAULT 1,
  `ftype` varchar(45) NOT NULL,
  `fidCateg` int(11) DEFAULT 4,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=194 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `product_allattribute`
--

INSERT INTO `product_allattribute` VALUES (193,'عنوان محصول',1,'general',4);

--
-- Table structure for table `product_attribute`
--

CREATE TABLE `product_attribute` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idproduct` bigint(20) NOT NULL,
  `idatribute` int(11) NOT NULL,
  `fvalue` varchar(9945) DEFAULT NULL,
  `fenable_variation` tinyint(3) DEFAULT NULL,
  `fattribute_visibility` tinyint(3) DEFAULT NULL,
  `fview_mode` varchar(45) DEFAULT 'select',
  `forder` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `index2` (`idproduct`,`idatribute`),
  KEY `bbb_idx` (`idatribute`),
  CONSTRAINT `bbbb` FOREIGN KEY (`idatribute`) REFERENCES `product_allattribute` (`id`) ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=982 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `product_attribute`
--

INSERT INTO `product_attribute` VALUES (981,1542,193,'',1,1,'select','0');

--
-- Table structure for table `product_attribute_variant`
--

CREATE TABLE `product_attribute_variant` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `fidproduct_attribute` int(11) NOT NULL,
  `fvalue` varchar(945) DEFAULT NULL,
  `fdesc` varchar(945) DEFAULT NULL,
  `ftype` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `aaaa_idx` (`fidproduct_attribute`),
  CONSTRAINT `aaaa` FOREIGN KEY (`fidproduct_attribute`) REFERENCES `product_attribute` (`id`) ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `product_attribute_variant`
--


--
-- Table structure for table `product_brand`
--

CREATE TABLE `product_brand` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `fname` varchar(900) NOT NULL,
  `factive` tinyint(4) DEFAULT 1,
  `flatinName` varchar(900) DEFAULT NULL,
  `fimages` varchar(1900) DEFAULT NULL,
  `flayout` longtext DEFAULT NULL,
  `fdeleted` tinyint(3) DEFAULT 0,
  `fidcatags` mediumtext DEFAULT NULL,
  `fctitle` varchar(545) DEFAULT NULL,
  `fdesc` varchar(945) DEFAULT NULL,
  `furl` varchar(905) DEFAULT NULL,
  `fseen` int(11) DEFAULT NULL,
  `flast_update` datetime DEFAULT current_timestamp(),
  `fcanonical` varchar(1245) DEFAULT NULL,
  `fpicAlt` varchar(645) DEFAULT NULL,
  `fkeys` varchar(900) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `product_brand`
--


--
-- Table structure for table `product_download_manager`
--

CREATE TABLE `product_download_manager` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `fid_billdetails` varchar(900) NOT NULL,
  `finsertime` timestamp NULL DEFAULT current_timestamp(),
  `fip` varchar(900) DEFAULT NULL,
  `factive` tinyint(3) DEFAULT 0,
  `furl` varchar(2045) DEFAULT NULL,
  `fUID` varchar(445) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `product_download_manager`
--


--
-- Temporary view structure for view `product_export_to_excel`
--

/*!50001 DROP VIEW IF EXISTS `product_export_to_excel`*/;
/*!50001 CREATE VIEW `product_export_to_excel` AS SELECT 
 1 AS `id`,
 1 AS `varient_id`,
 1 AS `storeCode`,
 1 AS `fname`,
 1 AS `fprice`,
 1 AS `fpriceUnit`,
 1 AS `fdesc`,
 1 AS `fimages`,
 1 AS `fctitle`,
 1 AS `finfo2`,
 1 AS `fcustomBuyBoxdesc`,
 1 AS `flatiName`,
 1 AS `fzarib`,
 1 AS `factive`,
 1 AS `fpicAlt`,
 1 AS `V_factive`,
 1 AS `fis_freeShip`,
 1 AS `fronding`,
 1 AS `finfo1`,
 1 AS `foff`,
 1 AS `amazing_foff`,
 1 AS `furl`,
 1 AS `fdate_update_price`,
 1 AS `fidCateg`,
 1 AS `fkeys`,
 1 AS `fis_down`,
 1 AS `fis_virtual`,
 1 AS `fis_Single_sale`,
 1 AS `flow_stock_amount`,
 1 AS `fdaystoSendMainStore`,
 1 AS `fcanShappingByMainStore`,
 1 AS `fdaystoSendCustomerByMainStore`,
 1 AS `fdaystoSendCustomerBySeller`,
 1 AS `finMainStoreStock`,
 1 AS `fcanShappingBySeller`,
 1 AS `fvariabelDependenc1desc`,
 1 AS `fvariabelDependenc2desc`,
 1 AS `fmax_sell_quantity`,
 1 AS `fsku`,
 1 AS `fManage_stock_quantity`,
 1 AS `fstock_quantity`,
 1 AS `fis_soon`,
 1 AS `fis_amazing`,
 1 AS `fid_brand`,
 1 AS `ProductColors`*/;

--
-- Table structure for table `product_imagegallery`
--

CREATE TABLE `product_imagegallery` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idproduct` int(11) NOT NULL,
  `fimage` mediumtext DEFAULT NULL,
  `ftitle` varchar(1945) DEFAULT NULL,
  `forder` int(11) DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `product_imagegallery`
--


--
-- Temporary view structure for view `product_mini`
--

/*!50001 DROP VIEW IF EXISTS `product_mini`*/;
/*!50001 CREATE VIEW `product_mini` AS SELECT 
 1 AS `id`,
 1 AS `fseen`,
 1 AS `varient_id`,
 1 AS `storeId`,
 1 AS `storeCode`,
 1 AS `fname`,
 1 AS `fprice`,
 1 AS `fpriceUnit`,
 1 AS `fdesc`,
 1 AS `fdefult_variabels`,
 1 AS `fimages`,
 1 AS `frate`,
 1 AS `fctitle`,
 1 AS `fzarib`,
 1 AS `fpicAlt`,
 1 AS `fcomments`,
 1 AS `fsellcount`,
 1 AS `fronding`,
 1 AS `fsuggests`,
 1 AS `finfo2`,
 1 AS `fcustomBuyBoxdesc`,
 1 AS `flatiName`,
 1 AS `factive`,
 1 AS `V_factive`,
 1 AS `fis_freeShip`,
 1 AS `finfo1`,
 1 AS `foff`,
 1 AS `amazing_foff`,
 1 AS `furl`,
 1 AS `fdate_update_price`,
 1 AS `fidCateg`,
 1 AS `fkeys`,
 1 AS `fis_down`,
 1 AS `fis_virtual`,
 1 AS `fis_Single_sale`,
 1 AS `flow_stock_amount`,
 1 AS `fweight`,
 1 AS `flength`,
 1 AS `fdaystoSendMainStore`,
 1 AS `fcanShappingByMainStore`,
 1 AS `fdaystoSendCustomerByMainStore`,
 1 AS `fdaystoSendCustomerBySeller`,
 1 AS `finMainStoreStock`,
 1 AS `fcanShappingBySeller`,
 1 AS `flayout`,
 1 AS `fwidth`,
 1 AS `fvariabelDependenc1desc`,
 1 AS `fheight`,
 1 AS `fvariabelDependenc2desc`,
 1 AS `fmax_sell_quantity`,
 1 AS `fsku`,
 1 AS `fManage_stock_quantity`,
 1 AS `fstock_quantity`,
 1 AS `fis_soon`,
 1 AS `fis_amazing`,
 1 AS `fid_brand`,
 1 AS `CarriersData`,
 1 AS `ProductColors`,
 1 AS `amazing_startDate_fa`,
 1 AS `amazing_endDate_fa`,
 1 AS `amazing_startDate`,
 1 AS `amazing_endDate`,
 1 AS `amazing_startTime`,
 1 AS `amazing_endTime`*/;

--
-- Temporary view structure for view `product_mini_new`
--

/*!50001 DROP VIEW IF EXISTS `product_mini_new`*/;
/*!50001 CREATE VIEW `product_mini_new` AS SELECT 
 1 AS `id`,
 1 AS `fseen`,
 1 AS `varient_id`,
 1 AS `storeId`,
 1 AS `storeCode`,
 1 AS `fname`,
 1 AS `fprice`,
 1 AS `fdesc`,
 1 AS `fdefult_variabels`,
 1 AS `fimages`,
 1 AS `frate`,
 1 AS `fctitle`,
 1 AS `fzarib`,
 1 AS `fpicAlt`,
 1 AS `fcomments`,
 1 AS `fsellcount`,
 1 AS `fronding`,
 1 AS `fsuggests`,
 1 AS `finfo2`,
 1 AS `fcustomBuyBoxdesc`,
 1 AS `flatiName`,
 1 AS `factive`,
 1 AS `V_factive`,
 1 AS `fis_freeShip`,
 1 AS `finfo1`,
 1 AS `foff`,
 1 AS `amazing_foff`,
 1 AS `furl`,
 1 AS `fdate_update_price`,
 1 AS `fidCateg`,
 1 AS `fkeys`,
 1 AS `fis_down`,
 1 AS `fis_virtual`,
 1 AS `fis_Single_sale`,
 1 AS `flow_stock_amount`,
 1 AS `fweight`,
 1 AS `flength`,
 1 AS `fdaystoSendMainStore`,
 1 AS `fcanShappingByMainStore`,
 1 AS `fdaystoSendCustomerByMainStore`,
 1 AS `fdaystoSendCustomerBySeller`,
 1 AS `finMainStoreStock`,
 1 AS `fcanShappingBySeller`,
 1 AS `flayout`,
 1 AS `fwidth`,
 1 AS `fvariabelDependenc1desc`,
 1 AS `fheight`,
 1 AS `fvariabelDependenc2desc`,
 1 AS `fmax_sell_quantity`,
 1 AS `fsku`,
 1 AS `fManage_stock_quantity`,
 1 AS `fstock_quantity`,
 1 AS `fis_soon`,
 1 AS `fis_amazing`,
 1 AS `fid_brand`,
 1 AS `fpriceUnit`,
 1 AS `fidCarrierId`,
 1 AS `amazing_startDate_fa`,
 1 AS `amazing_endDate_fa`,
 1 AS `amazing_startDate`,
 1 AS `amazing_endDate`,
 1 AS `amazing_startTime`,
 1 AS `amazing_endTime`*/;

--
-- Table structure for table `product_monitoring_err_log`
--

CREATE TABLE `product_monitoring_err_log` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `idvarient` bigint(20) DEFAULT NULL,
  `sitename` varchar(145) DEFAULT NULL,
  `error` varchar(45) DEFAULT NULL,
  `finserttime` timestamp NULL DEFAULT current_timestamp(),
  `ftype` varchar(45) DEFAULT NULL,
  `settingsMonitoring` longtext DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `product_monitoring_err_log`
--


--
-- Table structure for table `product_monitoring_log`
--

CREATE TABLE `product_monitoring_log` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `idvarient` bigint(20) NOT NULL,
  `oldprice` bigint(20) DEFAULT NULL,
  `oldquantity` int(10) DEFAULT NULL,
  `newprice` bigint(20) DEFAULT NULL,
  `newquantity` int(10) DEFAULT NULL,
  `inserttime` timestamp NULL DEFAULT current_timestamp(),
  `oldfoff` tinyint(3) DEFAULT NULL,
  `oldfis_amazing` tinyint(3) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `product_monitoring_log`
--


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `fname` varchar(1200) NOT NULL,
  `fname_en` varchar(1245) DEFAULT NULL,
  `fdesc` longtext DEFAULT NULL,
  `fhtml` longtext DEFAULT NULL,
  `fimages` longtext DEFAULT NULL,
  `factive` tinyint(4) DEFAULT NULL,
  `finserttime` timestamp NULL DEFAULT current_timestamp(),
  `fdeleted` tinyint(4) DEFAULT 0,
  `fidCateg` int(10) DEFAULT NULL,
  `fkeys` varchar(1045) DEFAULT NULL,
  `furl` varchar(2405) DEFAULT NULL,
  `fscript` longtext DEFAULT NULL,
  `fis_down` tinyint(3) DEFAULT 0,
  `fis_virtual` tinyint(3) DEFAULT 0,
  `fis_soon` tinyint(3) DEFAULT 0,
  `fsku` varchar(145) DEFAULT NULL,
  `fdefult_variabels` bigint(20) DEFAULT NULL,
  `fid_brand` int(11) DEFAULT NULL,
  `finfo1` varchar(945) DEFAULT NULL,
  `finfo2` varchar(945) DEFAULT NULL,
  `flatiName` varchar(945) DEFAULT NULL,
  `fisService` tinyint(3) DEFAULT 0,
  `frate` int(11) DEFAULT 0,
  `fsuggests` int(11) DEFAULT 0,
  `fcomments` int(11) DEFAULT 0,
  `flayout` longtext DEFAULT NULL,
  `fctitle` varchar(545) DEFAULT NULL,
  `ftax` int(4) DEFAULT NULL,
  `ftax_shenase` varchar(45) DEFAULT NULL,
  `ftaxUnit` varchar(45) DEFAULT NULL,
  `fcomissionP` int(11) DEFAULT NULL,
  `ftype` varchar(145) DEFAULT NULL,
  `fweight` decimal(10,2) DEFAULT NULL,
  `flength` decimal(10,2) DEFAULT NULL,
  `fwidth` decimal(10,2) DEFAULT NULL,
  `fheight` decimal(10,2) DEFAULT NULL,
  `fhidden` int(4) DEFAULT NULL,
  `fcreatorInfo` longtext DEFAULT NULL,
  `fidstoreCreator` int(11) DEFAULT NULL,
  `fseen` int(11) DEFAULT NULL,
  `fcanonical` varchar(1245) DEFAULT NULL,
  `fQuestions` int(11) DEFAULT 0,
  `fpicAlt` varchar(645) DEFAULT NULL,
  `fzarib` tinyint(4) DEFAULT 1,
  `fidCarrierId` longtext DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1543 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `products`
--

INSERT INTO `products` VALUES (1542,'خرید از سایت‌های خارجی',NULL,'','','https://najirom.com/Pages_images/Setting/20231008T162547_R528091.webp',1,'2023-10-10 22:24:32',0,1,'',NULL,NULL,0,0,0,'SKU-999999999',NULL,0,NULL,NULL,NULL,0,100,13,13,'','',NULL,NULL,NULL,NULL,'v_product',0.00,0.00,0.00,0.00,1,NULL,NULL,44,NULL,0,NULL,1,NULL);

--
-- Table structure for table `products_log`
--

CREATE TABLE `products_log` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `fname` varchar(1200) NOT NULL,
  `fname_en` varchar(1245) DEFAULT NULL,
  `fprice` int(11) NOT NULL,
  `ftestdays` int(11) NOT NULL DEFAULT 30,
  `fversion_site` varchar(20) NOT NULL DEFAULT '1.0.0.1',
  `fversion_server` varchar(20) NOT NULL DEFAULT '1.0.0.1',
  `fdesc` longtext DEFAULT NULL,
  `fhtml` longtext DEFAULT NULL,
  `fimages` longtext DEFAULT NULL,
  `factive` tinyint(4) DEFAULT NULL,
  `foff` int(10) DEFAULT 0,
  `fdate_update_price` datetime DEFAULT NULL,
  `finserttime` timestamp NULL DEFAULT current_timestamp(),
  `fdeleted` tinyint(4) DEFAULT 0,
  `fidCateg` int(10) DEFAULT NULL,
  `fkeys` varchar(1045) DEFAULT NULL,
  `furl` varchar(405) DEFAULT NULL,
  `fscript` longtext DEFAULT NULL,
  `ftype` varchar(45) DEFAULT NULL,
  `fis_down` tinyint(3) DEFAULT 0,
  `fis_virtual` tinyint(3) DEFAULT 0,
  `fis_soon` tinyint(3) DEFAULT 0,
  `fis_amazing` tinyint(3) DEFAULT 0,
  `fis_Single_sale` tinyint(3) DEFAULT 0,
  `amazing_startDate` varchar(100) DEFAULT NULL,
  `amazing_endDate` varchar(100) DEFAULT NULL,
  `amazing_startTime` time DEFAULT NULL,
  `amazing_endTime` time DEFAULT NULL,
  `fManage_stock_quantity` tinyint(3) DEFAULT NULL,
  `fstock_quantity` int(10) DEFAULT NULL,
  `flow_stock_amount` int(10) DEFAULT NULL,
  `fweight` decimal(10,2) DEFAULT NULL,
  `flength` decimal(10,2) DEFAULT NULL,
  `fwidth` decimal(10,2) DEFAULT NULL,
  `fheight` decimal(10,2) DEFAULT NULL,
  `fmax_sell_quantity` int(10) DEFAULT NULL,
  `fsku` varchar(145) DEFAULT NULL,
  `fparent` bigint(20) DEFAULT NULL,
  `fvariabelDependenc1` bigint(20) DEFAULT NULL,
  `fvariabelDependenc2` bigint(20) DEFAULT NULL,
  `fdefult_variabels` tinyint(3) DEFAULT NULL,
  `fid_brand` int(11) DEFAULT NULL,
  `fvariabelDependenc1desc` varchar(405) DEFAULT NULL,
  `fvariabelDependenc2desc` varchar(405) DEFAULT NULL,
  `finfo1` varchar(945) DEFAULT NULL,
  `finfo2` varchar(945) DEFAULT NULL,
  `flatiName` varchar(945) DEFAULT NULL,
  `fisService` tinyint(3) NOT NULL DEFAULT 0,
  `fidProduct` bigint(25) DEFAULT NULL,
  `fdown_extra` longtext DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `products_log`
--


--
-- Table structure for table `products_varients`
--

CREATE TABLE `products_varients` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `fidproduct` bigint(20) DEFAULT NULL,
  `fidstore` int(11) DEFAULT NULL,
  `fprice` int(15) NOT NULL DEFAULT 0,
  `factive` tinyint(4) DEFAULT NULL,
  `foff` int(10) DEFAULT 0,
  `fdate_update_price` datetime DEFAULT NULL,
  `finserttime` timestamp NULL DEFAULT current_timestamp(),
  `fdeleted` tinyint(4) DEFAULT 0,
  `fis_amazing` tinyint(3) DEFAULT 0,
  `fis_Single_sale` tinyint(3) DEFAULT 0,
  `amazing_startDate` varchar(100) DEFAULT NULL,
  `amazing_endDate` varchar(100) DEFAULT NULL,
  `amazing_startTime` varchar(100) DEFAULT NULL,
  `amazing_endTime` varchar(100) DEFAULT NULL,
  `fManage_stock_quantity` tinyint(3) DEFAULT NULL,
  `fstock_quantity` int(10) DEFAULT NULL,
  `flow_stock_amount` int(10) DEFAULT NULL,
  `fweight` decimal(10,2) DEFAULT NULL,
  `flength` decimal(10,2) DEFAULT NULL,
  `fwidth` decimal(10,2) DEFAULT NULL,
  `fheight` decimal(10,2) DEFAULT NULL,
  `fmax_sell_quantity` int(10) DEFAULT NULL,
  `fvariabelDependenc1` bigint(20) DEFAULT NULL,
  `fvariabelDependenc2` bigint(20) DEFAULT NULL,
  `fvariabelDependenc1desc` varchar(405) DEFAULT NULL,
  `fvariabelDependenc2desc` varchar(405) DEFAULT NULL,
  `finfo1` varchar(945) DEFAULT NULL,
  `finfo2` varchar(945) DEFAULT NULL,
  `fsellcount` int(11) DEFAULT 0,
  `fdown_extra` longtext DEFAULT NULL,
  `amazing_foff` int(10) DEFAULT 0,
  `fis_freeShip` tinyint(3) DEFAULT NULL,
  `ftype` varchar(145) DEFAULT NULL,
  `frate` int(11) DEFAULT 0,
  `fsuggests` int(11) DEFAULT 0,
  `fcomments` int(11) DEFAULT 0,
  `fcanShappingByMainStore` tinyint(3) DEFAULT 0,
  `fcanShappingBySeller` tinyint(3) DEFAULT 0,
  `fdaystoSendMainStore` tinyint(3) DEFAULT NULL,
  `fdaystoSendCustomerByMainStore` tinyint(3) DEFAULT NULL,
  `fdaystoSendCustomerBySeller` tinyint(3) DEFAULT NULL,
  `fgarantidesc` varchar(2245) DEFAULT NULL,
  `fis_soon` tinyint(3) DEFAULT 0,
  `fcustomBuyBoxdesc` varchar(2245) DEFAULT NULL,
  `finMainStoreStock` tinyint(3) DEFAULT 0,
  `fronding` int(11) DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `idproduct_idx` (`fidproduct`),
  CONSTRAINT `idproduct` FOREIGN KEY (`fidproduct`) REFERENCES `products` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `products_varients`
--


--
-- Table structure for table `products_varients_extra`
--

CREATE TABLE `products_varients_extra` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `fkey` varchar(255) DEFAULT NULL,
  `fval` longtext DEFAULT NULL,
  `ftype` varchar(45) DEFAULT NULL,
  `fproduct_varient_id` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `IX_roducts_varients_extra_settings` (`fkey`,`fproduct_varient_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `products_varients_extra`
--


--
-- Table structure for table `products_varients_pricechange`
--

CREATE TABLE `products_varients_pricechange` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `fidproduct_variant` bigint(20) NOT NULL,
  `fidstore` int(10) DEFAULT NULL,
  `finsertime` timestamp NULL DEFAULT current_timestamp(),
  `fprice` int(15) DEFAULT 0,
  `foff` int(10) DEFAULT 0,
  `factive` tinyint(3) DEFAULT 0,
  `fronding` int(10) DEFAULT NULL,
  `fis_amazing` tinyint(3) DEFAULT 0,
  `amazing_foff` int(10) DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `products_varients_pricechange`
--


--
-- Temporary view structure for view `productview`
--

/*!50001 DROP VIEW IF EXISTS `productview`*/;
/*!50001 CREATE VIEW `productview` AS SELECT 
 1 AS `brand`,
 1 AS `CarriersData`,
 1 AS `Categ`,
 1 AS `id`,
 1 AS `fzarib`,
 1 AS `product_in_order_count`,
 1 AS `product_sell_count`,
 1 AS `fname`,
 1 AS `flatiName`,
 1 AS `fprice`,
 1 AS `frate`,
 1 AS `fcomments`,
 1 AS `fsuggests`,
 1 AS `fsellcount`,
 1 AS `fronding`,
 1 AS `fctitle`,
 1 AS `fpicAlt`,
 1 AS `fdesc`,
 1 AS `fcomissionP`,
 1 AS `fis_freeShip`,
 1 AS `fgarantidesc`,
 1 AS `finfo1`,
 1 AS `finfo2`,
 1 AS `fimages`,
 1 AS `flayout`,
 1 AS `factive`,
 1 AS `foff`,
 1 AS `amazing_foff`,
 1 AS `fdate_update_price`,
 1 AS `finserttime`,
 1 AS `fdeleted`,
 1 AS `fidCateg`,
 1 AS `fkeys`,
 1 AS `furl`,
 1 AS `ftype`,
 1 AS `fis_down`,
 1 AS `fis_virtual`,
 1 AS `fcustomBuyBoxdesc`,
 1 AS `fis_soon`,
 1 AS `fis_amazing`,
 1 AS `fis_Single_sale`,
 1 AS `amazing_startDate`,
 1 AS `amazing_endDate`,
 1 AS `amazing_startDate_fa`,
 1 AS `amazing_endDate_fa`,
 1 AS `amazing_startTime`,
 1 AS `amazing_endTime`,
 1 AS `fManage_stock_quantity`,
 1 AS `fstock_quantity`,
 1 AS `flow_stock_amount`,
 1 AS `fweight`,
 1 AS `flength`,
 1 AS `fwidth`,
 1 AS `fheight`,
 1 AS `fmax_sell_quantity`,
 1 AS `fsku`,
 1 AS `varient_id`,
 1 AS `ProductColors`,
 1 AS `fvariabelDependenc1`,
 1 AS `fvariabelDependenc2`,
 1 AS `fdefult_variabels`,
 1 AS `fid_brand`*/;

--
-- Temporary view structure for view `productview_fullhtml`
--

/*!50001 DROP VIEW IF EXISTS `productview_fullhtml`*/;
/*!50001 CREATE VIEW `productview_fullhtml` AS SELECT 
 1 AS `brand`,
 1 AS `CarriersData`,
 1 AS `Categ`,
 1 AS `id`,
 1 AS `product_in_order_count`,
 1 AS `product_sell_count`,
 1 AS `cataglevels`,
 1 AS `fname`,
 1 AS `flatiName`,
 1 AS `fprice`,
 1 AS `fdesc`,
 1 AS `fctitle`,
 1 AS `fpicAlt`,
 1 AS `fis_freeShip`,
 1 AS `fgarantidesc`,
 1 AS `fronding`,
 1 AS `fcustomBuyBoxdesc`,
 1 AS `finfo1`,
 1 AS `finfo2`,
 1 AS `fimages`,
 1 AS `fzarib`,
 1 AS `fcomissionP`,
 1 AS `factive`,
 1 AS `foff`,
 1 AS `amazing_foff`,
 1 AS `frate`,
 1 AS `fcomments`,
 1 AS `fsellcount`,
 1 AS `fsuggests`,
 1 AS `fdate_update_price`,
 1 AS `finserttime`,
 1 AS `fdeleted`,
 1 AS `fidCateg`,
 1 AS `fkeys`,
 1 AS `furl`,
 1 AS `fhtml`,
 1 AS `fscript`,
 1 AS `ftype`,
 1 AS `flayout`,
 1 AS `fis_down`,
 1 AS `fis_virtual`,
 1 AS `fis_soon`,
 1 AS `fis_amazing`,
 1 AS `fis_Single_sale`,
 1 AS `amazing_startDate`,
 1 AS `amazing_startDate_fa`,
 1 AS `amazing_endDate_fa`,
 1 AS `amazing_endDate`,
 1 AS `amazing_startTime`,
 1 AS `amazing_endTime`,
 1 AS `fManage_stock_quantity`,
 1 AS `fstock_quantity`,
 1 AS `flow_stock_amount`,
 1 AS `fweight`,
 1 AS `flength`,
 1 AS `fwidth`,
 1 AS `fheight`,
 1 AS `fmax_sell_quantity`,
 1 AS `fsku`,
 1 AS `varient_id`,
 1 AS `fvariabelDependenc1`,
 1 AS `fvariabelDependenc2`,
 1 AS `fdefult_variabels`,
 1 AS `fid_brand`,
 1 AS `brandImage`*/;

--
-- Table structure for table `province_cities`
--

CREATE TABLE `province_cities` (
  `id` bigint(20) unsigned NOT NULL,
  `user_id` bigint(20) unsigned NOT NULL DEFAULT 1,
  `parent` int(11) NOT NULL DEFAULT 0,
  `title` varchar(100) NOT NULL,
  `sort` tinyint(3) unsigned NOT NULL DEFAULT 1,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deactive` tinyint(3) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `province_cities`
--

INSERT INTO `province_cities` VALUES (1,1,0,'آذربایجان شرقی',1,NULL,NULL,NULL,NULL),(2,1,0,'آذربایجان غربی',1,NULL,NULL,NULL,NULL),(3,1,0,'اردبیل',1,NULL,NULL,NULL,NULL),(4,1,0,'اصفهان',1,NULL,NULL,NULL,NULL),(5,1,0,'البرز',1,NULL,NULL,NULL,NULL),(6,1,0,'ایلام',1,NULL,NULL,NULL,NULL),(7,1,0,'بوشهر',1,NULL,NULL,NULL,NULL),(8,1,0,'تهران',1,NULL,NULL,NULL,NULL),(9,1,0,'چهارمحال بختیاری',1,NULL,NULL,NULL,NULL),(10,1,0,'خراسان جنوبی',1,NULL,NULL,NULL,NULL),(11,1,0,'خراسان رضوی',1,NULL,NULL,NULL,NULL),(12,1,0,'خراسان شمالی',1,NULL,NULL,NULL,NULL),(13,1,0,'خوزستان',1,NULL,NULL,NULL,NULL),(14,1,0,'زنجان',1,NULL,NULL,NULL,NULL),(15,1,0,'سمنان',1,NULL,NULL,NULL,NULL),(16,1,0,'سیستان و بلوچستان',1,NULL,NULL,NULL,NULL),(17,1,0,'فارس',1,NULL,NULL,NULL,NULL),(18,1,0,'قزوین',1,NULL,NULL,NULL,NULL),(19,1,0,'قم',1,NULL,NULL,NULL,NULL),(20,1,0,'کردستان',1,NULL,NULL,NULL,NULL),(21,1,0,'کرمان',1,NULL,NULL,NULL,NULL),(22,1,0,'کرمانشاه',1,NULL,NULL,NULL,NULL),(23,1,0,'کهکیلویه و بویراحمد',1,NULL,NULL,NULL,NULL),(24,1,0,'گلستان',1,NULL,NULL,NULL,NULL),(25,1,0,'گیلان',1,NULL,NULL,NULL,NULL),(26,1,0,'لرستان',1,NULL,NULL,NULL,NULL),(27,1,0,'مازندران',1,NULL,NULL,NULL,NULL),(28,1,0,'مرکزی',1,NULL,NULL,NULL,NULL),(29,1,0,'هرمزگان',1,NULL,NULL,NULL,NULL),(30,1,0,'همدان',1,NULL,NULL,NULL,NULL),(31,1,0,'یزد',1,NULL,NULL,NULL,NULL),(32,1,1,'آذرشهر',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(33,1,1,'تیمورلو',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(34,1,1,'گوگان',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(35,1,1,'ممقان',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(36,1,1,'اسکو',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(37,1,1,'ایلخچی',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(38,1,1,'سهند',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(39,1,1,'اهر',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(40,1,1,'هوراند',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(41,1,1,'بستان آباد',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(42,1,1,'تیکمه داش',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(43,1,1,'بناب',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(44,1,1,'باسمنج',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(45,1,1,'تبریز',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(46,1,1,'خسروشاه',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(47,1,1,'سردرود',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(48,1,1,'جلفا',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(49,1,1,'سیه رود',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(50,1,1,'هادیشهر',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(51,1,1,'قره آغاج',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(52,1,1,'خمارلو',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(53,1,1,'دوزدوزان',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(54,1,1,'سراب',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(55,1,1,'شربیان',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(56,1,1,'مهربان',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(57,1,1,'تسوج',1,NULL,'2020-08-28 10:17:25','2020-08-28 10:17:25',NULL),(58,1,1,'خامنه',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(59,1,1,'سیس',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(60,1,1,'شبستر',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(61,1,1,'شرفخانه',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(62,1,1,'شندآباد',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(63,1,1,'صوفیان',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(64,1,1,'کوزه کنان',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(65,1,1,'وایقان',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(66,1,1,'جوان قلعه',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(67,1,1,'عجب شیر',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(68,1,1,'آبش احمد',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(69,1,1,'کلیبر',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(70,1,1,'خداجو(خراجو)',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(71,1,1,'مراغه',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(72,1,1,'بناب مرند',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(73,1,1,'زنوز',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(74,1,1,'کشکسرای',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(75,1,1,'مرند',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(76,1,1,'یامچی',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(77,1,1,'لیلان',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(78,1,1,'مبارک شهر',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(79,1,1,'ملکان',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(80,1,1,'آقکند',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(81,1,1,'اچاچی',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(82,1,1,'ترک',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(83,1,1,'ترکمانچای',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(84,1,1,'میانه',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(85,1,1,'خاروانا',1,NULL,'2020-08-28 10:17:26','2020-08-28 10:17:26',NULL),(86,1,1,'ورزقان',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(87,1,1,'بخشایش',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(88,1,1,'خواجه',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(89,1,1,'زرنق',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(90,1,1,'کلوانق',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(91,1,1,'هریس',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(92,1,1,'نظرکهریزی',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(93,1,1,'هشترود',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(94,1,2,'ارومیه',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(95,1,2,'سرو',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(96,1,2,'سیلوانه',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(97,1,2,'قوشچی',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(98,1,2,'نوشین',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(99,1,2,'اشنویه',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(100,1,2,'نالوس',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(101,1,2,'بوکان',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(102,1,2,'سیمینه',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(103,1,2,'پلدشت',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(104,1,2,'نازک علیا',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(105,1,2,'پیرانشهر',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(106,1,2,'گردکشانه',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(107,1,2,'تکاب',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(108,1,2,'آواجیق',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(109,1,2,'سیه چشمه',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(110,1,2,'قره ضیاءالدین',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(111,1,2,'ایواوغلی',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(112,1,2,'خوی',1,NULL,'2020-08-28 10:17:27','2020-08-28 10:17:27',NULL),(113,1,2,'دیزج دیز',1,NULL,'2020-08-28 10:17:28','2020-08-28 10:17:28',NULL),(114,1,2,'زرآباد',1,NULL,'2020-08-28 10:17:28','2020-08-28 10:17:28',NULL),(115,1,2,'فیرورق',1,NULL,'2020-08-28 10:17:28','2020-08-28 10:17:28',NULL),(116,1,2,'قطور',1,NULL,'2020-08-28 10:17:28','2020-08-28 10:17:28',NULL),(117,1,2,'ربط',1,NULL,'2020-08-28 10:17:28','2020-08-28 10:17:28',NULL),(118,1,2,'سردشت',1,NULL,'2020-08-28 10:17:28','2020-08-28 10:17:28',NULL),(119,1,2,'میرآباد',1,NULL,'2020-08-28 10:17:28','2020-08-28 10:17:28',NULL),(120,1,2,'تازه شهر',1,NULL,'2020-08-28 10:17:28','2020-08-28 10:17:28',NULL),(121,1,2,'سلماس',1,NULL,'2020-08-28 10:17:28','2020-08-28 10:17:28',NULL),(122,1,2,'شاهین دژ',1,NULL,'2020-08-28 10:17:28','2020-08-28 10:17:28',NULL),(123,1,2,'کشاورز',1,NULL,'2020-08-28 10:17:28','2020-08-28 10:17:28',NULL),(124,1,2,'محمودآباد',1,NULL,'2020-08-28 10:17:28','2020-08-28 10:17:28',NULL),(125,1,2,'شوط',1,NULL,'2020-08-28 10:17:28','2020-08-28 10:17:28',NULL),(126,1,2,'مرگنلر',1,NULL,'2020-08-28 10:17:28','2020-08-28 10:17:28',NULL),(127,1,2,'بازرگان',1,NULL,'2020-08-28 10:17:28','2020-08-28 10:17:28',NULL),(128,1,2,'ماکو',1,NULL,'2020-08-28 10:17:28','2020-08-28 10:17:28',NULL),(129,1,2,'خلیفان',1,NULL,'2020-08-28 10:17:28','2020-08-28 10:17:28',NULL),(130,1,2,'مهاباد',1,NULL,'2020-08-28 10:17:28','2020-08-28 10:17:28',NULL),(131,1,2,'باروق',1,NULL,'2020-08-28 10:17:28','2020-08-28 10:17:28',NULL),(132,1,2,'چهاربرج',1,NULL,'2020-08-28 10:17:28','2020-08-28 10:17:28',NULL),(133,1,2,'میاندوآب',1,NULL,'2020-08-28 10:17:28','2020-08-28 10:17:28',NULL),(134,1,2,'محمدیار',1,NULL,'2020-08-28 10:17:28','2020-08-28 10:17:28',NULL),(135,1,2,'نقده',1,NULL,'2020-08-28 10:17:28','2020-08-28 10:17:28',NULL),(136,1,3,'اردبیل',1,NULL,'2020-08-28 10:17:28','2020-08-28 10:17:28',NULL),(137,1,3,'هیر',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(138,1,3,'بیله سوار',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(139,1,3,'جعفرآباد',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(140,1,3,'اسلام اباد',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(141,1,3,'اصلاندوز',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(142,1,3,'پارس آباد',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(143,1,3,'تازه کند',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(144,1,3,'خلخال',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(145,1,3,'کلور',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(146,1,3,'هشتجین',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(147,1,3,'سرعین',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(148,1,3,'گیوی',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(149,1,3,'تازه کندانگوت',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(150,1,3,'گرمی',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(151,1,3,'رضی',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(152,1,3,'فخراباد',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(153,1,3,'قصابه',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(154,1,3,'لاهرود',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(155,1,3,'مرادلو',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(156,1,3,'مشگین شهر',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(157,1,3,'آبی بیگلو',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(158,1,3,'عنبران',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(159,1,3,'نمین',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(160,1,3,'کوراییم',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(161,1,3,'نیر',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(162,1,4,'آران وبیدگل',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(163,1,4,'ابوزیدآباد',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(164,1,4,'سفیدشهر',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(165,1,4,'نوش آباد',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(166,1,4,'اردستان',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(167,1,4,'زواره',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(168,1,4,'مهاباد',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(169,1,4,'اژیه',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(170,1,4,'اصفهان',1,NULL,'2020-08-28 10:17:29','2020-08-28 10:17:29',NULL),(171,1,4,'بهارستان',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(172,1,4,'تودشک',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(173,1,4,'حسن اباد',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(174,1,4,'زیار',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(175,1,4,'سجزی',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(176,1,4,'قهجاورستان',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(177,1,4,'کوهپایه',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(178,1,4,'محمدآباد',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(179,1,4,'نصرآباد',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(180,1,4,'نیک آباد',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(181,1,4,'ورزنه',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(182,1,4,'هرند',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(183,1,4,'حبیب آباد',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(184,1,4,'خورزوق',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(185,1,4,'دستگرد',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(186,1,4,'دولت آباد',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(187,1,4,'سین',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(188,1,4,'شاپورآباد',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(189,1,4,'کمشچه',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(190,1,4,'افوس',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(191,1,4,'بویین ومیاندشت',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(192,1,4,'تیران',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(193,1,4,'رضوانشهر',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(194,1,4,'عسگران',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(195,1,4,'چادگان',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(196,1,4,'رزوه',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(197,1,4,'اصغرآباد',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(198,1,4,'خمینی شهر',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(199,1,4,'درچه',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(200,1,4,'کوشک',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(201,1,4,'خوانسار',1,NULL,'2020-08-28 10:17:30','2020-08-28 10:17:30',NULL),(202,1,4,'جندق',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(203,1,4,'خور',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(204,1,4,'فرخی',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(205,1,4,'دهاقان',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(206,1,4,'گلشن',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(207,1,4,'حنا',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(208,1,4,'سمیرم',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(209,1,4,'کمه',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(210,1,4,'ونک',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(211,1,4,'شاهین شهر',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(212,1,4,'گرگاب',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(213,1,4,'گزبرخوار',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(214,1,4,'لای بید',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(215,1,4,'میمه',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(216,1,4,'وزوان',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(217,1,4,'شهرضا',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(218,1,4,'منظریه',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(219,1,4,'داران',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(220,1,4,'دامنه',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(221,1,4,'برف انبار',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(222,1,4,'فریدونشهر',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(223,1,4,'ابریشم',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(224,1,4,'ایمانشهر',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(225,1,4,'بهاران شهر',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(226,1,4,'پیربکران',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(227,1,4,'زازران',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(228,1,4,'فلاورجان',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(229,1,4,'قهدریجان',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(230,1,4,'کلیشادوسودرجان',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(231,1,4,'برزک',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(232,1,4,'جوشقان قالی',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(233,1,4,'قمصر',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(234,1,4,'کاشان',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(235,1,4,'کامو و چوگان',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(236,1,4,'مشکات',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(237,1,4,'نیاسر',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(238,1,4,'گلپایگان',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(239,1,4,'گلشهر',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(240,1,4,'گوگد',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(241,1,4,'باغ بهادران',1,NULL,'2020-08-28 10:17:31','2020-08-28 10:17:31',NULL),(242,1,4,'باغشاد',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(243,1,4,'چرمهین',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(244,1,4,'چمگردان',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(245,1,4,'زاینده رود',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(246,1,4,'زرین شهر',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(247,1,4,'سده لنجان',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(248,1,4,'فولادشهر',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(249,1,4,'ورنامخواست',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(250,1,4,'دیزیچه',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(251,1,4,'زیباشهر',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(252,1,4,'طالخونچه',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(253,1,4,'کرکوند',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(254,1,4,'مبارکه',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(255,1,4,'مجلسی',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(256,1,4,'انارک',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(257,1,4,'بافران',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(258,1,4,'نایین',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(259,1,4,'جوزدان',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(260,1,4,'دهق',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(261,1,4,'علویجه',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(262,1,4,'کهریزسنگ',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(263,1,4,'گلدشت',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(264,1,4,'نجف آباد',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(265,1,4,'بادرود',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(266,1,4,'خالدآباد',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(267,1,4,'طرق رود',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(268,1,4,'نطنز',1,NULL,'2020-08-28 10:17:32','2020-08-28 10:17:32',NULL),(269,1,5,'اشتهارد',1,NULL,'2020-08-28 10:17:33','2020-08-28 10:17:33',NULL),(270,1,5,'چهارباغ',1,NULL,'2020-08-28 10:17:33','2020-08-28 10:17:33',NULL),(271,1,5,'شهرجدیدهشتگرد',1,NULL,'2020-08-28 10:17:33','2020-08-28 10:17:33',NULL),(272,1,5,'کوهسار',1,NULL,'2020-08-28 10:17:33','2020-08-28 10:17:33',NULL),(273,1,5,'گلسار',1,NULL,'2020-08-28 10:17:33','2020-08-28 10:17:33',NULL),(274,1,5,'هشتگرد',1,NULL,'2020-08-28 10:17:33','2020-08-28 10:17:33',NULL),(275,1,5,'طالقان',1,NULL,'2020-08-28 10:17:33','2020-08-28 10:17:33',NULL),(276,1,5,'فردیس',1,NULL,'2020-08-28 10:17:33','2020-08-28 10:17:33',NULL),(277,1,5,'مشکین دشت',1,NULL,'2020-08-28 10:17:33','2020-08-28 10:17:33',NULL),(278,1,5,'آسارا',1,NULL,'2020-08-28 10:17:33','2020-08-28 10:17:33',NULL),(279,1,5,'کرج',1,NULL,'2020-08-28 10:17:33','2020-08-28 10:17:33',NULL),(280,1,5,'کمال شهر',1,NULL,'2020-08-28 10:17:33','2020-08-28 10:17:33',NULL),(281,1,5,'گرمدره',1,NULL,'2020-08-28 10:17:33','2020-08-28 10:17:33',NULL),(282,1,5,'ماهدشت',1,NULL,'2020-08-28 10:17:33','2020-08-28 10:17:33',NULL),(283,1,5,'محمدشهر',1,NULL,'2020-08-28 10:17:33','2020-08-28 10:17:33',NULL),(284,1,5,'تنکمان',1,NULL,'2020-08-28 10:17:33','2020-08-28 10:17:33',NULL),(285,1,5,'نظرآباد',1,NULL,'2020-08-28 10:17:33','2020-08-28 10:17:33',NULL),(286,1,6,'آبدانان',1,NULL,'2020-08-28 10:17:33','2020-08-28 10:17:33',NULL),(287,1,6,'سراب باغ',1,NULL,'2020-08-28 10:17:33','2020-08-28 10:17:33',NULL),(288,1,6,'مورموری',1,NULL,'2020-08-28 10:17:33','2020-08-28 10:17:33',NULL),(289,1,6,'ایلام',1,NULL,'2020-08-28 10:17:33','2020-08-28 10:17:33',NULL),(290,1,6,'چوار',1,NULL,'2020-08-28 10:17:33','2020-08-28 10:17:33',NULL),(291,1,6,'ایوان',1,NULL,'2020-08-28 10:17:33','2020-08-28 10:17:33',NULL),(292,1,6,'زرنه',1,NULL,'2020-08-28 10:17:33','2020-08-28 10:17:33',NULL),(293,1,6,'بدره',1,NULL,'2020-08-28 10:17:34','2020-08-28 10:17:34',NULL),(294,1,6,'آسمان آباد',1,NULL,'2020-08-28 10:17:34','2020-08-28 10:17:34',NULL),(295,1,6,'بلاوه',1,NULL,'2020-08-28 10:17:34','2020-08-28 10:17:34',NULL),(296,1,6,'توحید',1,NULL,'2020-08-28 10:17:34','2020-08-28 10:17:34',NULL),(297,1,6,'سرابله',1,NULL,'2020-08-28 10:17:34','2020-08-28 10:17:34',NULL),(298,1,6,'شباب',1,NULL,'2020-08-28 10:17:34','2020-08-28 10:17:34',NULL),(299,1,6,'دره شهر',1,NULL,'2020-08-28 10:17:34','2020-08-28 10:17:34',NULL),(300,1,6,'ماژین',1,NULL,'2020-08-28 10:17:34','2020-08-28 10:17:34',NULL),(301,1,6,'پهله',1,NULL,'2020-08-28 10:17:34','2020-08-28 10:17:34',NULL),(302,1,6,'دهلران',1,NULL,'2020-08-28 10:17:34','2020-08-28 10:17:34',NULL),(303,1,6,'موسیان',1,NULL,'2020-08-28 10:17:34','2020-08-28 10:17:34',NULL),(304,1,6,'میمه',1,NULL,'2020-08-28 10:17:34','2020-08-28 10:17:34',NULL),(305,1,6,'لومار',1,NULL,'2020-08-28 10:17:35','2020-08-28 10:17:35',NULL),(306,1,6,'ارکواز',1,NULL,'2020-08-28 10:17:35','2020-08-28 10:17:35',NULL),(307,1,6,'دلگشا',1,NULL,'2020-08-28 10:17:35','2020-08-28 10:17:35',NULL),(308,1,6,'مهر',1,NULL,'2020-08-28 10:17:35','2020-08-28 10:17:35',NULL),(309,1,6,'صالح آباد',1,NULL,'2020-08-28 10:17:35','2020-08-28 10:17:35',NULL),(310,1,6,'مهران',1,NULL,'2020-08-28 10:17:35','2020-08-28 10:17:35',NULL),(311,1,7,'بوشهر',1,NULL,'2020-08-28 10:17:35','2020-08-28 10:17:35',NULL),(312,1,7,'چغادک',1,NULL,'2020-08-28 10:17:35','2020-08-28 10:17:35',NULL),(313,1,7,'خارک',1,NULL,'2020-08-28 10:17:36','2020-08-28 10:17:36',NULL),(314,1,7,'عالی شهر',1,NULL,'2020-08-28 10:17:36','2020-08-28 10:17:36',NULL),(315,1,7,'آباد',1,NULL,'2020-08-28 10:17:36','2020-08-28 10:17:36',NULL),(316,1,7,'اهرم',1,NULL,'2020-08-28 10:17:36','2020-08-28 10:17:36',NULL),(317,1,7,'دلوار',1,NULL,'2020-08-28 10:17:36','2020-08-28 10:17:36',NULL),(318,1,7,'انارستان',1,NULL,'2020-08-28 10:17:36','2020-08-28 10:17:36',NULL),(319,1,7,'جم',1,NULL,'2020-08-28 10:17:36','2020-08-28 10:17:36',NULL),(320,1,7,'ریز',1,NULL,'2020-08-28 10:17:36','2020-08-28 10:17:36',NULL),(321,1,7,'آب پخش',1,NULL,'2020-08-28 10:17:36','2020-08-28 10:17:36',NULL),(322,1,7,'برازجان',1,NULL,'2020-08-28 10:17:36','2020-08-28 10:17:36',NULL),(323,1,7,'بوشکان',1,NULL,'2020-08-28 10:17:36','2020-08-28 10:17:36',NULL),(324,1,7,'تنگ ارم',1,NULL,'2020-08-28 10:17:36','2020-08-28 10:17:36',NULL),(325,1,7,'دالکی',1,NULL,'2020-08-28 10:17:36','2020-08-28 10:17:36',NULL),(326,1,7,'سعد آباد',1,NULL,'2020-08-28 10:17:37','2020-08-28 10:17:37',NULL),(327,1,7,'شبانکاره',1,NULL,'2020-08-28 10:17:37','2020-08-28 10:17:37',NULL),(328,1,7,'کلمه',1,NULL,'2020-08-28 10:17:37','2020-08-28 10:17:37',NULL),(329,1,7,'وحدتیه',1,NULL,'2020-08-28 10:17:37','2020-08-28 10:17:37',NULL),(330,1,7,'بادوله',1,NULL,'2020-08-28 10:17:37','2020-08-28 10:17:37',NULL),(331,1,7,'خورموج',1,NULL,'2020-08-28 10:17:37','2020-08-28 10:17:37',NULL),(332,1,7,'شنبه',1,NULL,'2020-08-28 10:17:37','2020-08-28 10:17:37',NULL),(333,1,7,'کاکی',1,NULL,'2020-08-28 10:17:37','2020-08-28 10:17:37',NULL),(334,1,7,'آبدان',1,NULL,'2020-08-28 10:17:37','2020-08-28 10:17:37',NULL),(335,1,7,'بردخون',1,NULL,'2020-08-28 10:17:37','2020-08-28 10:17:37',NULL),(336,1,7,'بردستان',1,NULL,'2020-08-28 10:17:37','2020-08-28 10:17:37',NULL),(337,1,7,'بندردیر',1,NULL,'2020-08-28 10:17:37','2020-08-28 10:17:37',NULL),(338,1,7,'دوراهک',1,NULL,'2020-08-28 10:17:37','2020-08-28 10:17:37',NULL),(339,1,7,'امام حسن',1,NULL,'2020-08-28 10:17:37','2020-08-28 10:17:37',NULL),(340,1,7,'بندردیلم',1,NULL,'2020-08-28 10:17:37','2020-08-28 10:17:37',NULL),(341,1,7,'عسلویه',1,NULL,'2020-08-28 10:17:37','2020-08-28 10:17:37',NULL),(342,1,7,'نخل تقی',1,NULL,'2020-08-28 10:17:37','2020-08-28 10:17:37',NULL),(343,1,7,'بندرکنگان',1,NULL,'2020-08-28 10:17:37','2020-08-28 10:17:37',NULL),(344,1,7,'بنک',1,NULL,'2020-08-28 10:17:37','2020-08-28 10:17:37',NULL),(345,1,7,'سیراف',1,NULL,'2020-08-28 10:17:37','2020-08-28 10:17:37',NULL),(346,1,7,'بندرریگ',1,NULL,'2020-08-28 10:17:38','2020-08-28 10:17:38',NULL),(347,1,7,'بندرگناوه',1,NULL,'2020-08-28 10:17:38','2020-08-28 10:17:38',NULL),(348,1,8,'احمد آباد مستوفی',1,NULL,'2020-08-28 10:17:38','2020-08-28 10:17:38',NULL),(349,1,8,'اسلامشهر',1,NULL,'2020-08-28 10:17:38','2020-08-28 10:17:38',NULL),(350,1,8,'چهاردانگه',1,NULL,'2020-08-28 10:17:38','2020-08-28 10:17:38',NULL),(351,1,8,'صالحیه',1,NULL,'2020-08-28 10:17:38','2020-08-28 10:17:38',NULL),(352,1,8,'گلستان',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(353,1,8,'نسیم شهر',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(354,1,8,'پاکدشت',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(355,1,8,'شریف آباد',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(356,1,8,'فرون اباد',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(357,1,8,'بومهن',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(358,1,8,'پردیس',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(359,1,8,'پیشوا',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(360,1,8,'تهران',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(361,1,8,'آبسرد',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(362,1,8,'آبعلی',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(363,1,8,'دماوند',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(364,1,8,'رودهن',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(365,1,8,'کیلان',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(366,1,8,'پرند',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(367,1,8,'رباطکریم',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(368,1,8,'نصیرشهر',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(369,1,8,'باقرشهر',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(370,1,8,'حسن آباد',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(371,1,8,'ری',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(372,1,8,'کهریزک',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(373,1,8,'تجریش',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(374,1,8,'شمشک',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(375,1,8,'فشم',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(376,1,8,'لواسان',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(377,1,8,'اندیشه',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(378,1,8,'باغستان',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(379,1,8,'شاهدشهر',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(380,1,8,'شهریار',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(381,1,8,'صباشهر',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(382,1,8,'فردوسیه',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(383,1,8,'وحیدیه',1,NULL,'2020-08-28 10:17:39','2020-08-28 10:17:39',NULL),(384,1,8,'ارجمند',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(385,1,8,'فیروزکوه',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(386,1,8,'قدس',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(387,1,8,'قرچک',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(388,1,8,'صفادشت',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(389,1,8,'ملارد',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(390,1,8,'جوادآباد',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(391,1,8,'ورامین',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(392,1,9,'اردل',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(393,1,9,'دشتک',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(394,1,9,'سرخون',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(395,1,9,'کاج',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(396,1,9,'بروجن',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(397,1,9,'بلداجی',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(398,1,9,'سفیددشت',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(399,1,9,'فرادبنه',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(400,1,9,'گندمان',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(401,1,9,'نقنه',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(402,1,9,'بن',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(403,1,9,'وردنجان',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(404,1,9,'سامان',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(405,1,9,'سودجان',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(406,1,9,'سورشجان',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(407,1,9,'شهرکرد',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(408,1,9,'طاقانک',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(409,1,9,'فرخ شهر',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(410,1,9,'کیان',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(411,1,9,'نافچ',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(412,1,9,'هارونی',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(413,1,9,'هفشجان',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(414,1,9,'باباحیدر',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(415,1,9,'پردنجان',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(416,1,9,'جونقان',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(417,1,9,'چلیچه',1,NULL,'2020-08-28 10:17:40','2020-08-28 10:17:40',NULL),(418,1,9,'فارسان',1,NULL,'2020-08-28 10:17:41','2020-08-28 10:17:41',NULL),(419,1,9,'گوجان',1,NULL,'2020-08-28 10:17:41','2020-08-28 10:17:41',NULL),(420,1,9,'بازفت',1,NULL,'2020-08-28 10:17:41','2020-08-28 10:17:41',NULL),(421,1,9,'چلگرد',1,NULL,'2020-08-28 10:17:41','2020-08-28 10:17:41',NULL),(422,1,9,'صمصامی',1,NULL,'2020-08-28 10:17:41','2020-08-28 10:17:41',NULL),(423,1,9,'دستنا',1,NULL,'2020-08-28 10:17:41','2020-08-28 10:17:41',NULL),(424,1,9,'شلمزار',1,NULL,'2020-08-28 10:17:41','2020-08-28 10:17:41',NULL),(425,1,9,'گهرو',1,NULL,'2020-08-28 10:17:41','2020-08-28 10:17:41',NULL),(426,1,9,'ناغان',1,NULL,'2020-08-28 10:17:41','2020-08-28 10:17:41',NULL),(427,1,9,'آلونی',1,NULL,'2020-08-28 10:17:41','2020-08-28 10:17:41',NULL),(428,1,9,'سردشت',1,NULL,'2020-08-28 10:17:41','2020-08-28 10:17:41',NULL),(429,1,9,'لردگان',1,NULL,'2020-08-28 10:17:41','2020-08-28 10:17:41',NULL),(430,1,9,'مال خلیفه',1,NULL,'2020-08-28 10:17:41','2020-08-28 10:17:41',NULL),(431,1,9,'منج',1,NULL,'2020-08-28 10:17:41','2020-08-28 10:17:41',NULL),(432,1,10,'ارسک',1,NULL,'2020-08-28 10:17:41','2020-08-28 10:17:41',NULL),(433,1,10,'بشرویه',1,NULL,'2020-08-28 10:17:41','2020-08-28 10:17:41',NULL),(434,1,10,'بیرجند',1,NULL,'2020-08-28 10:17:41','2020-08-28 10:17:41',NULL),(435,1,10,'خوسف',1,NULL,'2020-08-28 10:17:41','2020-08-28 10:17:41',NULL),(436,1,10,'محمدشهر',1,NULL,'2020-08-28 10:17:41','2020-08-28 10:17:41',NULL),(437,1,10,'اسدیه',1,NULL,'2020-08-28 10:17:41','2020-08-28 10:17:41',NULL),(438,1,10,'طبس مسینا',1,NULL,'2020-08-28 10:17:41','2020-08-28 10:17:41',NULL),(439,1,10,'قهستان',1,NULL,'2020-08-28 10:17:41','2020-08-28 10:17:41',NULL),(440,1,10,'گزیک',1,NULL,'2020-08-28 10:17:41','2020-08-28 10:17:41',NULL),(441,1,10,'حاجی آباد',1,NULL,'2020-08-28 10:17:41','2020-08-28 10:17:41',NULL),(442,1,10,'زهان',1,NULL,'2020-08-28 10:17:41','2020-08-28 10:17:41',NULL),(443,1,10,'آیسک',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(444,1,10,'سرایان',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(445,1,10,'سه قلعه',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(446,1,10,'سربیشه',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(447,1,10,'مود',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(448,1,10,'دیهوک',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(449,1,10,'طبس',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(450,1,10,'عشق آباد',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(451,1,10,'اسلامیه',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(452,1,10,'فردوس',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(453,1,10,'آرین شهر',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(454,1,10,'اسفدن',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(455,1,10,'خضری دشت بیاض',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(456,1,10,'قاین',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(457,1,10,'نیمبلوک',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(458,1,10,'شوسف',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(459,1,10,'نهبندان',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(460,1,11,'باخرز',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(461,1,11,'بجستان',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(462,1,11,'یونسی',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(463,1,11,'انابد',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(464,1,11,'بردسکن',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(465,1,11,'شهراباد',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(466,1,11,'شاندیز',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(467,1,11,'طرقبه',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(468,1,11,'تایباد',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(469,1,11,'کاریز',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(470,1,11,'مشهدریزه',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(471,1,11,'احمدابادصولت',1,NULL,'2020-08-28 10:17:42','2020-08-28 10:17:42',NULL),(472,1,11,'تربت جام',1,NULL,'2020-08-28 10:17:43','2020-08-28 10:17:43',NULL),(473,1,11,'صالح آباد',1,NULL,'2020-08-28 10:17:43','2020-08-28 10:17:43',NULL),(474,1,11,'نصرآباد',1,NULL,'2020-08-28 10:17:43','2020-08-28 10:17:43',NULL),(475,1,11,'نیل شهر',1,NULL,'2020-08-28 10:17:43','2020-08-28 10:17:43',NULL),(476,1,11,'بایک',1,NULL,'2020-08-28 10:17:43','2020-08-28 10:17:43',NULL),(477,1,11,'تربت حیدریه',1,NULL,'2020-08-28 10:17:43','2020-08-28 10:17:43',NULL),(478,1,11,'رباط سنگ',1,NULL,'2020-08-28 10:17:43','2020-08-28 10:17:43',NULL),(479,1,11,'کدکن',1,NULL,'2020-08-28 10:17:43','2020-08-28 10:17:43',NULL),(480,1,11,'جغتای',1,NULL,'2020-08-28 10:17:43','2020-08-28 10:17:43',NULL),(481,1,11,'نقاب',1,NULL,'2020-08-28 10:17:43','2020-08-28 10:17:43',NULL),(482,1,11,'چناران',1,NULL,'2020-08-28 10:17:43','2020-08-28 10:17:43',NULL),(483,1,11,'گلبهار',1,NULL,'2020-08-28 10:17:43','2020-08-28 10:17:43',NULL),(484,1,11,'گلمکان',1,NULL,'2020-08-28 10:17:43','2020-08-28 10:17:43',NULL),(485,1,11,'خلیل آباد',1,NULL,'2020-08-28 10:17:43','2020-08-28 10:17:43',NULL),(486,1,11,'کندر',1,NULL,'2020-08-28 10:17:43','2020-08-28 10:17:43',NULL),(487,1,11,'خواف',1,NULL,'2020-08-28 10:17:43','2020-08-28 10:17:43',NULL),(488,1,11,'سلامی',1,NULL,'2020-08-28 10:17:43','2020-08-28 10:17:43',NULL),(489,1,11,'سنگان',1,NULL,'2020-08-28 10:17:43','2020-08-28 10:17:43',NULL),(490,1,11,'قاسم آباد',1,NULL,'2020-08-28 10:17:43','2020-08-28 10:17:43',NULL),(491,1,11,'نشتیفان',1,NULL,'2020-08-28 10:17:43','2020-08-28 10:17:43',NULL),(492,1,11,'سلطان آباد',1,NULL,'2020-08-28 10:17:43','2020-08-28 10:17:43',NULL),(493,1,11,'داورزن',1,NULL,'2020-08-28 10:17:43','2020-08-28 10:17:43',NULL),(494,1,11,'چاپشلو',1,NULL,'2020-08-28 10:17:43','2020-08-28 10:17:43',NULL),(495,1,11,'درگز',1,NULL,'2020-08-28 10:17:43','2020-08-28 10:17:43',NULL),(496,1,11,'لطف آباد',1,NULL,'2020-08-28 10:17:44','2020-08-28 10:17:44',NULL),(497,1,11,'نوخندان',1,NULL,'2020-08-28 10:17:44','2020-08-28 10:17:44',NULL),(498,1,11,'جنگل',1,NULL,'2020-08-28 10:17:44','2020-08-28 10:17:44',NULL),(499,1,11,'رشتخوار',1,NULL,'2020-08-28 10:17:44','2020-08-28 10:17:44',NULL),(500,1,11,'دولت آباد',1,NULL,'2020-08-28 10:17:44','2020-08-28 10:17:44',NULL),(501,1,11,'روداب',1,NULL,'2020-08-28 10:17:44','2020-08-28 10:17:44',NULL),(502,1,11,'سبزوار',1,NULL,'2020-08-28 10:17:44','2020-08-28 10:17:44',NULL),(503,1,11,'ششتمد',1,NULL,'2020-08-28 10:17:44','2020-08-28 10:17:44',NULL),(504,1,11,'سرخس',1,NULL,'2020-08-28 10:17:44','2020-08-28 10:17:44',NULL),(505,1,11,'مزدآوند',1,NULL,'2020-08-28 10:17:44','2020-08-28 10:17:44',NULL),(506,1,11,'سفیدسنگ',1,NULL,'2020-08-28 10:17:44','2020-08-28 10:17:44',NULL),(507,1,11,'فرهادگرد',1,NULL,'2020-08-28 10:17:44','2020-08-28 10:17:44',NULL),(508,1,11,'فریمان',1,NULL,'2020-08-28 10:17:44','2020-08-28 10:17:44',NULL),(509,1,11,'قلندرآباد',1,NULL,'2020-08-28 10:17:44','2020-08-28 10:17:44',NULL),(510,1,11,'فیروزه',1,NULL,'2020-08-28 10:17:44','2020-08-28 10:17:44',NULL),(511,1,11,'همت آباد',1,NULL,'2020-08-28 10:17:44','2020-08-28 10:17:44',NULL),(512,1,11,'باجگیران',1,NULL,'2020-08-28 10:17:44','2020-08-28 10:17:44',NULL),(513,1,11,'قوچان',1,NULL,'2020-08-28 10:17:44','2020-08-28 10:17:44',NULL),(514,1,11,'ریوش',1,NULL,'2020-08-28 10:17:44','2020-08-28 10:17:44',NULL),(515,1,11,'کاشمر',1,NULL,'2020-08-28 10:17:44','2020-08-28 10:17:44',NULL),(516,1,11,'شهرزو',1,NULL,'2020-08-28 10:17:44','2020-08-28 10:17:44',NULL),(517,1,11,'کلات',1,NULL,'2020-08-28 10:17:44','2020-08-28 10:17:44',NULL),(518,1,11,'بیدخت',1,NULL,'2020-08-28 10:17:44','2020-08-28 10:17:44',NULL),(519,1,11,'کاخک',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(520,1,11,'گناباد',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(521,1,11,'رضویه',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(522,1,11,'مشهد',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(523,1,11,'مشهد ثامن',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(524,1,11,'ملک آباد',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(525,1,11,'شادمهر',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(526,1,11,'فیض آباد',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(527,1,11,'بار',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(528,1,11,'چکنه',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(529,1,11,'خرو',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(530,1,11,'درود',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(531,1,11,'عشق آباد',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(532,1,11,'قدمگاه',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(533,1,11,'نیشابور',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(534,1,12,'اسفراین',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(535,1,12,'صفی آباد',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(536,1,12,'بجنورد',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(537,1,12,'چناران شهر',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(538,1,12,'حصارگرمخان',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(539,1,12,'جاجرم',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(540,1,12,'سنخواست',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(541,1,12,'شوقان',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(542,1,12,'راز',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(543,1,12,'زیارت',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(544,1,12,'شیروان',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(545,1,12,'قوشخانه',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(546,1,12,'لوجلی',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(547,1,12,'تیتکانلو',1,NULL,'2020-08-28 10:17:45','2020-08-28 10:17:45',NULL),(548,1,12,'فاروج',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(549,1,12,'ایور',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(550,1,12,'درق',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(551,1,12,'گرمه',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(552,1,12,'آشخانه',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(553,1,12,'آوا',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(554,1,12,'پیش قلعه',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(555,1,12,'قاضی',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(556,1,13,'آبادان',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(557,1,13,'اروندکنار',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(558,1,13,'چویبده',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(559,1,13,'آغاجاری',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(560,1,13,'امیدیه',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(561,1,13,'جایزان',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(562,1,13,'آبژدان',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(563,1,13,'قلعه خواجه',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(564,1,13,'آزادی',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(565,1,13,'اندیمشک',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(566,1,13,'بیدروبه',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(567,1,13,'چم گلک',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(568,1,13,'حسینیه',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(569,1,13,'الهایی',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(570,1,13,'اهواز',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(571,1,13,'ایذه',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(572,1,13,'دهدز',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(573,1,13,'باغ ملک',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(574,1,13,'صیدون',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(575,1,13,'قلعه تل',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(576,1,13,'میداود',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(577,1,13,'شیبان',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(578,1,13,'ملاثانی',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(579,1,13,'ویس',1,NULL,'2020-08-28 10:17:46','2020-08-28 10:17:46',NULL),(580,1,13,'بندرامام خمینی',1,NULL,'2020-08-28 10:17:47','2020-08-28 10:17:47',NULL),(581,1,13,'بندرماهشهر',1,NULL,'2020-08-28 10:17:47','2020-08-28 10:17:47',NULL),(582,1,13,'چمران',1,NULL,'2020-08-28 10:17:47','2020-08-28 10:17:47',NULL),(583,1,13,'بهبهان',1,NULL,'2020-08-28 10:17:47','2020-08-28 10:17:47',NULL),(584,1,13,'تشان',1,NULL,'2020-08-28 10:17:47','2020-08-28 10:17:47',NULL),(585,1,13,'سردشت',1,NULL,'2020-08-28 10:17:47','2020-08-28 10:17:47',NULL),(586,1,13,'منصوریه',1,NULL,'2020-08-28 10:17:47','2020-08-28 10:17:47',NULL),(587,1,13,'حمیدیه',1,NULL,'2020-08-28 10:17:47','2020-08-28 10:17:47',NULL),(588,1,13,'خرمشهر',1,NULL,'2020-08-28 10:17:47','2020-08-28 10:17:47',NULL),(589,1,13,'مقاومت',1,NULL,'2020-08-28 10:17:47','2020-08-28 10:17:47',NULL),(590,1,13,'مینوشهر',1,NULL,'2020-08-28 10:17:47','2020-08-28 10:17:47',NULL),(591,1,13,'چغامیش',1,NULL,'2020-08-28 10:17:47','2020-08-28 10:17:47',NULL),(592,1,13,'حمزه',1,NULL,'2020-08-28 10:17:47','2020-08-28 10:17:47',NULL),(593,1,13,'دزفول',1,NULL,'2020-08-28 10:17:47','2020-08-28 10:17:47',NULL),(594,1,13,'سالند',1,NULL,'2020-08-28 10:17:47','2020-08-28 10:17:47',NULL),(595,1,13,'سیاه منصور',1,NULL,'2020-08-28 10:17:47','2020-08-28 10:17:47',NULL),(596,1,13,'شمس آباد',1,NULL,'2020-08-28 10:17:47','2020-08-28 10:17:47',NULL),(597,1,13,'شهر امام',1,NULL,'2020-08-28 10:17:47','2020-08-28 10:17:47',NULL),(598,1,13,'صفی آباد',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(599,1,13,'میانرود',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(600,1,13,'ابوحمیظه',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(601,1,13,'بستان',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(602,1,13,'سوسنگرد',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(603,1,13,'کوت سیدنعیم',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(604,1,13,'رامشیر',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(605,1,13,'مشراگه',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(606,1,13,'رامهرمز',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(607,1,13,'خنافره',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(608,1,13,'دارخوین',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(609,1,13,'شادگان',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(610,1,13,'الوان',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(611,1,13,'حر',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(612,1,13,'شاوور',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(613,1,13,'شوش',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(614,1,13,'فتح المبین',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(615,1,13,'سرداران',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(616,1,13,'شرافت',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(617,1,13,'شوشتر',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(618,1,13,'گوریه',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(619,1,13,'کوت عبداله',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(620,1,13,'ترکالکی',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(621,1,13,'جنت مکان',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(622,1,13,'سماله',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(623,1,13,'صالح شهر',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(624,1,13,'گتوند',1,NULL,'2020-08-28 10:17:48','2020-08-28 10:17:48',NULL),(625,1,13,'لالی',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(626,1,13,'گلگیر',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(627,1,13,'مسجدسلیمان',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(628,1,13,'هفتگل',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(629,1,13,'زهره',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(630,1,13,'هندیجان',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(631,1,13,'رفیع',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(632,1,13,'هویزه',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(633,1,14,'ابهر',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(634,1,14,'صایین قلعه',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(635,1,14,'هیدج',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(636,1,14,'حلب',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(637,1,14,'زرین آباد',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(638,1,14,'زرین رود',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(639,1,14,'سجاس',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(640,1,14,'سهرورد',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(641,1,14,'قیدار',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(642,1,14,'کرسف',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(643,1,14,'گرماب',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(644,1,14,'نوربهار',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(645,1,14,'خرمدره',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(646,1,14,'ارمغانخانه',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(647,1,14,'زنجان',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(648,1,14,'نیک پی',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(649,1,14,'سلطانیه',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(650,1,14,'آب بر',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(651,1,14,'چورزق',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(652,1,14,'دندی',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(653,1,14,'ماه نشان',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(654,1,15,'آرادان',1,NULL,'2020-08-28 10:17:49','2020-08-28 10:17:49',NULL),(655,1,15,'کهن آباد',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(656,1,15,'امیریه',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(657,1,15,'دامغان',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(658,1,15,'دیباج',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(659,1,15,'کلاته',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(660,1,15,'سرخه',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(661,1,15,'سمنان',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(662,1,15,'بسطام',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(663,1,15,'بیارجمند',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(664,1,15,'رودیان',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(665,1,15,'شاهرود',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(666,1,15,'کلاته خیج',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(667,1,15,'مجن',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(668,1,15,'ایوانکی',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(669,1,15,'گرمسار',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(670,1,15,'درجزین',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(671,1,15,'شهمیرزاد',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(672,1,15,'مهدی شهر',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(673,1,15,'میامی',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(674,1,16,'ایرانشهر',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(675,1,16,'بزمان',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(676,1,16,'بمپور',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(677,1,16,'محمدان',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(678,1,16,'چابهار',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(679,1,16,'نگور',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(680,1,16,'خاش',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(681,1,16,'نوک آباد',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(682,1,16,'گلمورتی',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(683,1,16,'بنجار',1,NULL,'2020-08-28 10:17:50','2020-08-28 10:17:50',NULL),(684,1,16,'زابل',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(685,1,16,'زاهدان',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(686,1,16,'نصرت آباد',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(687,1,16,'زهک',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(688,1,16,'جالق',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(689,1,16,'سراوان',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(690,1,16,'سیرکان',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(691,1,16,'گشت',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(692,1,16,'محمدی',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(693,1,16,'پیشین',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(694,1,16,'راسک',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(695,1,16,'سرباز',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(696,1,16,'سوران',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(697,1,16,'هیدوچ',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(698,1,16,'فنوج',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(699,1,16,'قصرقند',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(700,1,16,'زرآباد',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(701,1,16,'کنارک',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(702,1,16,'مهرستان',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(703,1,16,'میرجاوه',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(704,1,16,'اسپکه',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(705,1,16,'بنت',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(706,1,16,'نیک شهر',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(707,1,16,'ادیمی',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(708,1,16,'شهرک علی اکبر',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(709,1,16,'محمدآباد',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(710,1,16,'دوست محمد',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(711,1,17,'آباده',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(712,1,17,'ایزدخواست',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(713,1,17,'بهمن',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(714,1,17,'سورمق',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(715,1,17,'صغاد',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(716,1,17,'ارسنجان',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(717,1,17,'استهبان',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(718,1,17,'ایج',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(719,1,17,'رونیز',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(720,1,17,'اقلید',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(721,1,17,'حسن اباد',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(722,1,17,'دژکرد',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(723,1,17,'سده',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(724,1,17,'بوانات',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(725,1,17,'حسامی',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(726,1,17,'کره ای',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(727,1,17,'مزایجان',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(728,1,17,'سعادت شهر',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(729,1,17,'مادرسلیمان',1,NULL,'2020-08-28 10:17:51','2020-08-28 10:17:51',NULL),(730,1,17,'باب انار',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(731,1,17,'جهرم',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(732,1,17,'خاوران',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(733,1,17,'دوزه',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(734,1,17,'قطب آباد',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(735,1,17,'خرامه',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(736,1,17,'سلطان شهر',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(737,1,17,'صفاشهر',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(738,1,17,'قادراباد',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(739,1,17,'خنج',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(740,1,17,'جنت شهر',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(741,1,17,'داراب',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(742,1,17,'دوبرجی',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(743,1,17,'فدامی',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(744,1,17,'کوپن',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(745,1,17,'مصیری',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(746,1,17,'حاجی آباد',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(747,1,17,'دبیران',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(748,1,17,'شهرپیر',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(749,1,17,'اردکان',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(750,1,17,'بیضا',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(751,1,17,'هماشهر',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(752,1,17,'سروستان',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(753,1,17,'کوهنجان',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(754,1,17,'خانه زنیان',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(755,1,17,'داریان',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(756,1,17,'زرقان',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(757,1,17,'شهرصدرا',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(758,1,17,'شیراز',1,NULL,'2020-08-28 10:17:52','2020-08-28 10:17:52',NULL),(759,1,17,'لپویی',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(760,1,17,'دهرم',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(761,1,17,'فراشبند',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(762,1,17,'نوجین',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(763,1,17,'زاهدشهر',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(764,1,17,'ششده',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(765,1,17,'فسا',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(766,1,17,'قره بلاغ',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(767,1,17,'میانشهر',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(768,1,17,'نوبندگان',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(769,1,17,'فیروزآباد',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(770,1,17,'میمند',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(771,1,17,'افزر',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(772,1,17,'امام شهر',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(773,1,17,'قیر',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(774,1,17,'کارزین (فتح آباد)',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(775,1,17,'مبارک آباددیز',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(776,1,17,'بالاده',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(777,1,17,'خشت',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(778,1,17,'قایمیه',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(779,1,17,'کازرون',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(780,1,17,'کنارتخته',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(781,1,17,'نودان',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(782,1,17,'کوار',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(783,1,17,'گراش',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(784,1,17,'اوز',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(785,1,17,'بنارویه',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(786,1,17,'بیرم',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(787,1,17,'جویم',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(788,1,17,'خور',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(789,1,17,'عمادده',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(790,1,17,'لار',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(791,1,17,'لطیفی',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(792,1,17,'اشکنان',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(793,1,17,'اهل',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(794,1,17,'علامرودشت',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(795,1,17,'لامرد',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(796,1,17,'خانیمن',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(797,1,17,'رامجرد',1,NULL,'2020-08-28 10:17:53','2020-08-28 10:17:53',NULL),(798,1,17,'سیدان',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(799,1,17,'کامفیروز',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(800,1,17,'مرودشت',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(801,1,17,'بابامنیر',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(802,1,17,'خومه زار',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(803,1,17,'نورآباد',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(804,1,17,'اسیر',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(805,1,17,'خوزی',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(806,1,17,'گله دار',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(807,1,17,'مهر',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(808,1,17,'وراوی',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(809,1,17,'آباده طشک',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(810,1,17,'قطرویه',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(811,1,17,'مشکان',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(812,1,17,'نی ریز',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(813,1,18,'آبیک',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(814,1,18,'خاکعلی',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(815,1,18,'آبگرم',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(816,1,18,'آوج',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(817,1,18,'الوند',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(818,1,18,'بیدستان',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(819,1,18,'شریفیه',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(820,1,18,'محمدیه',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(821,1,18,'ارداق',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(822,1,18,'بویین زهرا',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(823,1,18,'دانسفهان',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(824,1,18,'سگزآباد',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(825,1,18,'شال',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(826,1,18,'اسفرورین',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(827,1,18,'تاکستان',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(828,1,18,'خرمدشت',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(829,1,18,'ضیاڈآباد',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(830,1,18,'نرجه',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(831,1,18,'اقبالیه',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(832,1,18,'رازمیان',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(833,1,18,'سیردان',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(834,1,18,'قزوین',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(835,1,18,'کوهین',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(836,1,18,'محمودآبادنمونه',1,NULL,'2020-08-28 10:17:54','2020-08-28 10:17:54',NULL),(837,1,18,'معلم کلایه',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(838,1,19,'جعفریه',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(839,1,19,'دستجرد',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(840,1,19,'سلفچگان',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(841,1,19,'قم',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(842,1,19,'قنوات',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(843,1,19,'کهک',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(844,1,20,'آرمرده',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(845,1,20,'بانه',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(846,1,20,'بویین سفلی',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(847,1,20,'کانی سور',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(848,1,20,'بابارشانی',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(849,1,20,'بیجار',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(850,1,20,'پیرتاج',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(851,1,20,'توپ آغاج',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(852,1,20,'یاسوکند',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(853,1,20,'بلبان آباد',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(854,1,20,'دهگلان',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(855,1,20,'دیواندره',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(856,1,20,'زرینه',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(857,1,20,'اورامان تخت',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(858,1,20,'سروآباد',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(859,1,20,'سقز',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(860,1,20,'صاحب',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(861,1,20,'سنندج',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(862,1,20,'شویشه',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(863,1,20,'دزج',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(864,1,20,'دلبران',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(865,1,20,'سریش آباد',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(866,1,20,'قروه',1,NULL,'2020-08-28 10:17:55','2020-08-28 10:17:55',NULL),(867,1,20,'کامیاران',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(868,1,20,'موچش',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(869,1,20,'برده رشه',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(870,1,20,'چناره',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(871,1,20,'کانی دینار',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(872,1,20,'مریوان',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(873,1,21,'ارزوییه',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(874,1,21,'امین شهر',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(875,1,21,'انار',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(876,1,21,'بافت',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(877,1,21,'بزنجان',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(878,1,21,'بردسیر',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(879,1,21,'دشتکار',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(880,1,21,'گلزار',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(881,1,21,'لاله زار',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(882,1,21,'نگار',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(883,1,21,'بروات',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(884,1,21,'بم',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(885,1,21,'بلوک',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(886,1,21,'جبالبارز',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(887,1,21,'جیرفت',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(888,1,21,'درب بهشت',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(889,1,21,'رابر',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(890,1,21,'هنزا',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(891,1,21,'راور',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(892,1,21,'هجدک',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(893,1,21,'بهرمان',1,NULL,'2020-08-28 10:17:56','2020-08-28 10:17:56',NULL),(894,1,21,'رفسنجان',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(895,1,21,'صفاییه',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(896,1,21,'کشکوییه',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(897,1,21,'مس سرچشمه',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(898,1,21,'رودبار',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(899,1,21,'زهکلوت',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(900,1,21,'گنبکی',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(901,1,21,'محمدآباد',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(902,1,21,'خانوک',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(903,1,21,'ریحان',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(904,1,21,'زرند',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(905,1,21,'یزدان شهر',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(906,1,21,'بلورد',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(907,1,21,'پاریز',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(908,1,21,'خواجو شهر',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(909,1,21,'زیدآباد',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(910,1,21,'سیرجان',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(911,1,21,'نجف شهر',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(912,1,21,'هماشهر',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(913,1,21,'جوزم',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(914,1,21,'خاتون اباد',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(915,1,21,'خورسند',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(916,1,21,'دهج',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(917,1,21,'شهربابک',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(918,1,21,'دوساری',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(919,1,21,'عنبرآباد',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(920,1,21,'مردهک',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(921,1,21,'فاریاب',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(922,1,21,'فهرج',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(923,1,21,'قلعه گنج',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(924,1,21,'اختیارآباد',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(925,1,21,'اندوهجرد',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(926,1,21,'باغین',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(927,1,21,'جوپار',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(928,1,21,'چترود',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(929,1,21,'راین',1,NULL,'2020-08-28 10:17:57','2020-08-28 10:17:57',NULL),(930,1,21,'زنگی آباد',1,NULL,'2020-08-28 10:17:58','2020-08-28 10:17:58',NULL),(931,1,21,'شهداد',1,NULL,'2020-08-28 10:17:58','2020-08-28 10:17:58',NULL),(932,1,21,'کاظم آباد',1,NULL,'2020-08-28 10:17:58','2020-08-28 10:17:58',NULL),(933,1,21,'کرمان',1,NULL,'2020-08-28 10:17:58','2020-08-28 10:17:58',NULL),(934,1,21,'گلباف',1,NULL,'2020-08-28 10:17:58','2020-08-28 10:17:58',NULL),(935,1,21,'ماهان',1,NULL,'2020-08-28 10:17:58','2020-08-28 10:17:58',NULL),(936,1,21,'محی آباد',1,NULL,'2020-08-28 10:17:58','2020-08-28 10:17:58',NULL),(937,1,21,'کوهبنان',1,NULL,'2020-08-28 10:17:58','2020-08-28 10:17:58',NULL),(938,1,21,'کیانشهر',1,NULL,'2020-08-28 10:17:58','2020-08-28 10:17:58',NULL),(939,1,21,'کهنوج',1,NULL,'2020-08-28 10:17:58','2020-08-28 10:17:58',NULL),(940,1,21,'منوجان',1,NULL,'2020-08-28 10:17:58','2020-08-28 10:17:58',NULL),(941,1,21,'نودژ',1,NULL,'2020-08-28 10:17:58','2020-08-28 10:17:58',NULL),(942,1,21,'نرماشیر',1,NULL,'2020-08-28 10:17:58','2020-08-28 10:17:58',NULL),(943,1,21,'نظام شهر',1,NULL,'2020-08-28 10:17:58','2020-08-28 10:17:58',NULL),(944,1,22,'اسلام آبادغرب',1,NULL,'2020-08-28 10:17:58','2020-08-28 10:17:58',NULL),(945,1,22,'حمیل',1,NULL,'2020-08-28 10:17:58','2020-08-28 10:17:58',NULL),(946,1,22,'بانوره',1,NULL,'2020-08-28 10:17:58','2020-08-28 10:17:58',NULL),(947,1,22,'باینگان',1,NULL,'2020-08-28 10:17:58','2020-08-28 10:17:58',NULL),(948,1,22,'پاوه',1,NULL,'2020-08-28 10:17:58','2020-08-28 10:17:58',NULL),(949,1,22,'نودشه',1,NULL,'2020-08-28 10:17:58','2020-08-28 10:17:58',NULL),(950,1,22,'نوسود',1,NULL,'2020-08-28 10:17:58','2020-08-28 10:17:58',NULL),(951,1,22,'ازگله',1,NULL,'2020-08-28 10:17:58','2020-08-28 10:17:58',NULL),(952,1,22,'تازه آباد',1,NULL,'2020-08-28 10:17:58','2020-08-28 10:17:58',NULL),(953,1,22,'جوانرود',1,NULL,'2020-08-28 10:17:58','2020-08-28 10:17:58',NULL),(954,1,22,'ریجاب',1,NULL,'2020-08-28 10:17:58','2020-08-28 10:17:58',NULL),(955,1,22,'کرند',1,NULL,'2020-08-28 10:17:59','2020-08-28 10:17:59',NULL),(956,1,22,'گهواره',1,NULL,'2020-08-28 10:17:59','2020-08-28 10:17:59',NULL),(957,1,22,'روانسر',1,NULL,'2020-08-28 10:17:59','2020-08-28 10:17:59',NULL),(958,1,22,'شاهو',1,NULL,'2020-08-28 10:17:59','2020-08-28 10:17:59',NULL),(959,1,22,'سرپل ذهاب',1,NULL,'2020-08-28 10:17:59','2020-08-28 10:17:59',NULL),(960,1,22,'سطر',1,NULL,'2020-08-28 10:17:59','2020-08-28 10:17:59',NULL),(961,1,22,'سنقر',1,NULL,'2020-08-28 10:17:59','2020-08-28 10:17:59',NULL),(962,1,22,'صحنه',1,NULL,'2020-08-28 10:17:59','2020-08-28 10:17:59',NULL),(963,1,22,'میان راهان',1,NULL,'2020-08-28 10:17:59','2020-08-28 10:17:59',NULL),(964,1,22,'سومار',1,NULL,'2020-08-28 10:17:59','2020-08-28 10:17:59',NULL),(965,1,22,'قصرشیرین',1,NULL,'2020-08-28 10:17:59','2020-08-28 10:17:59',NULL),(966,1,22,'رباط',1,NULL,'2020-08-28 10:17:59','2020-08-28 10:17:59',NULL),(967,1,22,'کرمانشاه',1,NULL,'2020-08-28 10:17:59','2020-08-28 10:17:59',NULL),(968,1,22,'کوزران',1,NULL,'2020-08-28 10:17:59','2020-08-28 10:17:59',NULL),(969,1,22,'هلشی',1,NULL,'2020-08-28 10:17:59','2020-08-28 10:17:59',NULL),(970,1,22,'کنگاور',1,NULL,'2020-08-28 10:17:59','2020-08-28 10:17:59',NULL),(971,1,22,'گودین',1,NULL,'2020-08-28 10:17:59','2020-08-28 10:17:59',NULL),(972,1,22,'سرمست',1,NULL,'2020-08-28 10:17:59','2020-08-28 10:17:59',NULL),(973,1,22,'گیلانغرب',1,NULL,'2020-08-28 10:17:59','2020-08-28 10:17:59',NULL),(974,1,22,'بیستون',1,NULL,'2020-08-28 10:17:59','2020-08-28 10:17:59',NULL),(975,1,22,'هرسین',1,NULL,'2020-08-28 10:17:59','2020-08-28 10:17:59',NULL),(976,1,23,'باشت',1,NULL,'2020-08-28 10:17:59','2020-08-28 10:17:59',NULL),(977,1,23,'چیتاب',1,NULL,'2020-08-28 10:17:59','2020-08-28 10:17:59',NULL),(978,1,23,'گراب سفلی',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(979,1,23,'مادوان',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(980,1,23,'مارگون',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(981,1,23,'یاسوج',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(982,1,23,'لیکک',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(983,1,23,'چرام',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(984,1,23,'سرفاریاب',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(985,1,23,'پاتاوه',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(986,1,23,'سی سخت',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(987,1,23,'دهدشت',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(988,1,23,'دیشموک',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(989,1,23,'سوق',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(990,1,23,'قلعه رییسی',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(991,1,23,'دوگنبدان',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(992,1,23,'لنده',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(993,1,24,'آزادشهر',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(994,1,24,'نگین شهر',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(995,1,24,'نوده خاندوز',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(996,1,24,'آق قلا',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(997,1,24,'انبارآلوم',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(998,1,24,'بندرگز',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(999,1,24,'نوکنده',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(1000,1,24,'بندرترکمن',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(1001,1,24,'تاتارعلیا',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(1002,1,24,'خان ببین',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(1003,1,24,'دلند',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(1004,1,24,'رامیان',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(1005,1,24,'سنگدوین',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(1006,1,24,'علی اباد',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(1007,1,24,'فاضل آباد',1,NULL,'2020-08-28 10:18:00','2020-08-28 10:18:00',NULL),(1008,1,24,'مزرعه',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1009,1,24,'کردکوی',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1010,1,24,'فراغی',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1011,1,24,'کلاله',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1012,1,24,'گالیکش',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1013,1,24,'جلین',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1014,1,24,'سرخنکلاته',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1015,1,24,'گرگان',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1016,1,24,'سیمین شهر',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1017,1,24,'گمیش تپه',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1018,1,24,'اینچه برون',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1019,1,24,'گنبدکاووس',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1020,1,24,'مراوه',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1021,1,24,'مینودشت',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1022,1,25,'آستارا',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1023,1,25,'لوندویل',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1024,1,25,'آستانه اشرفیه',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1025,1,25,'کیاشهر',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1026,1,25,'املش',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1027,1,25,'رانکوه',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1028,1,25,'بندرانزلی',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1029,1,25,'خشکبیجار',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1030,1,25,'خمام',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1031,1,25,'رشت',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1032,1,25,'سنگر',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1033,1,25,'کوچصفهان',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1034,1,25,'لشت نشاء',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1035,1,25,'لولمان',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1036,1,25,'پره سر',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1037,1,25,'رضوانشهر',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1038,1,25,'بره سر',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1039,1,25,'توتکابن',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1040,1,25,'جیرنده',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1041,1,25,'رستم آباد',1,NULL,'2020-08-28 10:18:01','2020-08-28 10:18:01',NULL),(1042,1,25,'رودبار',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1043,1,25,'لوشان',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1044,1,25,'منجیل',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1045,1,25,'چابکسر',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1046,1,25,'رحیم آباد',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1047,1,25,'رودسر',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1048,1,25,'کلاچای',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1049,1,25,'واجارگاه',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1050,1,25,'دیلمان',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1051,1,25,'سیاهکل',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1052,1,25,'احمدسرگوراب',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1053,1,25,'شفت',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1054,1,25,'صومعه سرا',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1055,1,25,'گوراب زرمیخ',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1056,1,25,'مرجقل',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1057,1,25,'اسالم',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1058,1,25,'چوبر',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1059,1,25,'حویق',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1060,1,25,'لیسار',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1061,1,25,'هشتپر (تالش)',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1062,1,25,'فومن',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1063,1,25,'ماسوله',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1064,1,25,'ماکلوان',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1065,1,25,'رودبنه',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1066,1,25,'لاهیجان',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1067,1,25,'اطاقور',1,NULL,'2020-08-28 10:18:02','2020-08-28 10:18:02',NULL),(1068,1,25,'چاف و چمخاله',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1069,1,25,'شلمان',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1070,1,25,'کومله',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1071,1,25,'لنگرود',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1072,1,25,'بازار جمعه',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1073,1,25,'ماسال',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1074,1,26,'ازنا',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1075,1,26,'مومن آباد',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1076,1,26,'الیگودرز',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1077,1,26,'شول آباد',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1078,1,26,'اشترینان',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1079,1,26,'بروجرد',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1080,1,26,'پلدختر',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1081,1,26,'معمولان',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1082,1,26,'بیران شهر',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1083,1,26,'خرم آباد',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1084,1,26,'زاغه',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1085,1,26,'سپیددشت',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1086,1,26,'نورآباد',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1087,1,26,'هفت چشمه',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1088,1,26,'چالانچولان',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1089,1,26,'دورود',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1090,1,26,'سراب دوره',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1091,1,26,'ویسیان',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1092,1,26,'چقابل',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1093,1,26,'الشتر',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1094,1,26,'فیروزآباد',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1095,1,26,'درب گنبد',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1096,1,26,'کوهدشت',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1097,1,26,'کوهنانی',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1098,1,26,'گراب',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1099,1,27,'آمل',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1100,1,27,'امامزاده عبدالله',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1101,1,27,'دابودشت',1,NULL,'2020-08-28 10:18:03','2020-08-28 10:18:03',NULL),(1102,1,27,'رینه',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1103,1,27,'گزنک',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1104,1,27,'امیرکلا',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1105,1,27,'بابل',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1106,1,27,'خوش رودپی',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1107,1,27,'زرگرمحله',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1108,1,27,'گتاب',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1109,1,27,'گلوگاه',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1110,1,27,'مرزیکلا',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1111,1,27,'بابلسر',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1112,1,27,'بهنمیر',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1113,1,27,'هادی شهر',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1114,1,27,'بهشهر',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1115,1,27,'خلیل شهر',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1116,1,27,'رستمکلا',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1117,1,27,'تنکابن',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1118,1,27,'خرم آباد',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1119,1,27,'شیرود',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1120,1,27,'نشتارود',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1121,1,27,'جویبار',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1122,1,27,'کوهی خیل',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1123,1,27,'چالوس',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1124,1,27,'مرزن آباد',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1125,1,27,'هچیرود',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1126,1,27,'رامسر',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1127,1,27,'کتالم وسادات شهر',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1128,1,27,'پایین هولار',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1129,1,27,'ساری',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1130,1,27,'فریم',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1131,1,27,'کیاسر',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1132,1,27,'آلاشت',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1133,1,27,'پل سفید',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1134,1,27,'زیرآب',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1135,1,27,'شیرگاه',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1136,1,27,'کیاکلا',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1137,1,27,'سلمان شهر',1,NULL,'2020-08-28 10:18:04','2020-08-28 10:18:04',NULL),(1138,1,27,'عباس اباد',1,NULL,'2020-08-28 10:18:05','2020-08-28 10:18:05',NULL),(1139,1,27,'کلارآباد',1,NULL,'2020-08-28 10:18:05','2020-08-28 10:18:05',NULL),(1140,1,27,'فریدونکنار',1,NULL,'2020-08-28 10:18:05','2020-08-28 10:18:05',NULL),(1141,1,27,'ارطه',1,NULL,'2020-08-28 10:18:05','2020-08-28 10:18:05',NULL),(1142,1,27,'قایم شهر',1,NULL,'2020-08-28 10:18:05','2020-08-28 10:18:05',NULL),(1143,1,27,'کلاردشت',1,NULL,'2020-08-28 10:18:05','2020-08-28 10:18:05',NULL),(1144,1,27,'گلوگاه',1,NULL,'2020-08-28 10:18:05','2020-08-28 10:18:05',NULL),(1145,1,27,'سرخرود',1,NULL,'2020-08-28 10:18:05','2020-08-28 10:18:05',NULL),(1146,1,27,'محمودآباد',1,NULL,'2020-08-28 10:18:05','2020-08-28 10:18:05',NULL),(1147,1,27,'سورک',1,NULL,'2020-08-28 10:18:05','2020-08-28 10:18:05',NULL),(1148,1,27,'نکا',1,NULL,'2020-08-28 10:18:05','2020-08-28 10:18:05',NULL),(1149,1,27,'ایزدشهر',1,NULL,'2020-08-28 10:18:05','2020-08-28 10:18:05',NULL),(1150,1,27,'بلده',1,NULL,'2020-08-28 10:18:05','2020-08-28 10:18:05',NULL),(1151,1,27,'چمستان',1,NULL,'2020-08-28 10:18:05','2020-08-28 10:18:05',NULL),(1152,1,27,'رویان',1,NULL,'2020-08-28 10:18:05','2020-08-28 10:18:05',NULL),(1153,1,27,'نور',1,NULL,'2020-08-28 10:18:05','2020-08-28 10:18:05',NULL),(1154,1,27,'پول',1,NULL,'2020-08-28 10:18:05','2020-08-28 10:18:05',NULL),(1155,1,27,'کجور',1,NULL,'2020-08-28 10:18:05','2020-08-28 10:18:05',NULL),(1156,1,27,'نوشهر',1,NULL,'2020-08-28 10:18:05','2020-08-28 10:18:05',NULL),(1157,1,28,'آشتیان',1,NULL,'2020-08-28 10:18:05','2020-08-28 10:18:05',NULL),(1158,1,28,'اراک',1,NULL,'2020-08-28 10:18:05','2020-08-28 10:18:05',NULL),(1159,1,28,'داودآباد',1,NULL,'2020-08-28 10:18:05','2020-08-28 10:18:05',NULL),(1160,1,28,'ساروق',1,NULL,'2020-08-28 10:18:05','2020-08-28 10:18:05',NULL),(1161,1,28,'کارچان',1,NULL,'2020-08-28 10:18:05','2020-08-28 10:18:05',NULL),(1162,1,28,'تفرش',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1163,1,28,'خمین',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1164,1,28,'قورچی باشی',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1165,1,28,'جاورسیان',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1166,1,28,'خنداب',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1167,1,28,'دلیجان',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1168,1,28,'نراق',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1169,1,28,'پرندک',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1170,1,28,'خشکرود',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1171,1,28,'رازقان',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1172,1,28,'زاویه',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1173,1,28,'مامونیه',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1174,1,28,'آوه',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1175,1,28,'ساوه',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1176,1,28,'غرق آباد',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1177,1,28,'نوبران',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1178,1,28,'آستانه',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1179,1,28,'توره',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1180,1,28,'شازند',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1181,1,28,'شهباز',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1182,1,28,'مهاجران',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1183,1,28,'هندودر',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1184,1,28,'خنجین',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1185,1,28,'فرمهین',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1186,1,28,'کمیجان',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1187,1,28,'میلاجرد',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1188,1,28,'محلات',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1189,1,28,'نیمور',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1190,1,29,'ابوموسی',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1191,1,29,'بستک',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1192,1,29,'جناح',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1193,1,29,'سردشت',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1194,1,29,'گوهران',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1195,1,29,'بندرعباس',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1196,1,29,'تازیان پایین',1,NULL,'2020-08-28 10:18:06','2020-08-28 10:18:06',NULL),(1197,1,29,'تخت',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1198,1,29,'فین',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1199,1,29,'قلعه قاضی',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1200,1,29,'بندرلنگه',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1201,1,29,'چارک',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1202,1,29,'کنگ',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1203,1,29,'کیش',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1204,1,29,'لمزان',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1205,1,29,'پارسیان',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1206,1,29,'دشتی',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1207,1,29,'کوشکنار',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1208,1,29,'بندرجاسک',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1209,1,29,'حاجی اباد',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1210,1,29,'سرگز',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1211,1,29,'فارغان',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1212,1,29,'خمیر',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1213,1,29,'رویدر',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1214,1,29,'بیکاء',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1215,1,29,'دهبارز',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1216,1,29,'زیارتعلی',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1217,1,29,'سیریک',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1218,1,29,'کوهستک',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1219,1,29,'گروک',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1220,1,29,'درگهان',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1221,1,29,'سوزا',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1222,1,29,'قشم',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1223,1,29,'هرمز',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1224,1,29,'تیرور',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1225,1,29,'سندرک',1,NULL,'2020-08-28 10:18:07','2020-08-28 10:18:07',NULL),(1226,1,29,'میناب',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1227,1,29,'هشتبندی',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1228,1,30,'آجین',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1229,1,30,'اسدآباد',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1230,1,30,'بهار',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1231,1,30,'صالح آباد',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1232,1,30,'لالجین',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1233,1,30,'مهاجران',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1234,1,30,'تویسرکان',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1235,1,30,'سرکان',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1236,1,30,'فرسفج',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1237,1,30,'دمق',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1238,1,30,'رزن',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1239,1,30,'قروه درجزین',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1240,1,30,'فامنین',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1241,1,30,'شیرین سو',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1242,1,30,'کبودرآهنگ',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1243,1,30,'گل تپه',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1244,1,30,'ازندریان',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1245,1,30,'جوکار',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1246,1,30,'زنگنه',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1247,1,30,'سامن',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1248,1,30,'ملایر',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1249,1,30,'برزول',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1250,1,30,'فیروزان',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1251,1,30,'گیان',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1252,1,30,'نهاوند',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1253,1,30,'جورقان',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1254,1,30,'قهاوند',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1255,1,30,'مریانج',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1256,1,30,'همدان',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1257,1,31,'ابرکوه',1,NULL,'2020-08-28 10:18:08','2020-08-28 10:18:08',NULL),(1258,1,31,'مهردشت',1,NULL,'2020-08-28 10:18:09','2020-08-28 10:18:09',NULL),(1259,1,31,'احمدآباد',1,NULL,'2020-08-28 10:18:09','2020-08-28 10:18:09',NULL),(1260,1,31,'اردکان',1,NULL,'2020-08-28 10:18:09','2020-08-28 10:18:09',NULL),(1261,1,31,'عقدا',1,NULL,'2020-08-28 10:18:09','2020-08-28 10:18:09',NULL),(1262,1,31,'اشکذر',1,NULL,'2020-08-28 10:18:09','2020-08-28 10:18:09',NULL),(1263,1,31,'خضرآباد',1,NULL,'2020-08-28 10:18:09','2020-08-28 10:18:09',NULL),(1264,1,31,'بافق',1,NULL,'2020-08-28 10:18:09','2020-08-28 10:18:09',NULL),(1265,1,31,'بهاباد',1,NULL,'2020-08-28 10:18:09','2020-08-28 10:18:09',NULL),(1266,1,31,'تفت',1,NULL,'2020-08-28 10:18:09','2020-08-28 10:18:09',NULL),(1267,1,31,'نیر',1,NULL,'2020-08-28 10:18:09','2020-08-28 10:18:09',NULL),(1268,1,31,'مروست',1,NULL,'2020-08-28 10:18:09','2020-08-28 10:18:09',NULL),(1269,1,31,'هرات',1,NULL,'2020-08-28 10:18:09','2020-08-28 10:18:09',NULL),(1270,1,31,'مهریز',1,NULL,'2020-08-28 10:18:09','2020-08-28 10:18:09',NULL),(1271,1,31,'بفروییه',1,NULL,'2020-08-28 10:18:09','2020-08-28 10:18:09',NULL),(1272,1,31,'میبد',1,NULL,'2020-08-28 10:18:09','2020-08-28 10:18:09',NULL),(1273,1,31,'ندوشن',1,NULL,'2020-08-28 10:18:09','2020-08-28 10:18:09',NULL),(1274,1,31,'حمیدیا',1,NULL,'2020-08-28 10:18:09','2020-08-28 10:18:09',NULL),(1275,1,31,'زارچ',1,NULL,'2020-08-28 10:18:09','2020-08-28 10:18:09',NULL),(1276,1,31,'شاهدیه',1,NULL,'2020-08-28 10:18:09','2020-08-28 10:18:09',NULL),(1277,1,31,'یزد',1,NULL,'2020-08-28 10:18:09','2020-08-28 10:18:09',NULL);

--
-- Table structure for table `questions`
--

CREATE TABLE `questions` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `fidref` bigint(20) DEFAULT NULL,
  `fidwebuser` bigint(20) DEFAULT NULL,
  `femail` varchar(100) DEFAULT NULL,
  `fname` varchar(105) DEFAULT NULL,
  `fmobile` varchar(105) DEFAULT NULL,
  `ftext` mediumtext DEFAULT NULL,
  `fstatus` varchar(250) NOT NULL DEFAULT 'NEW',
  `fdeleted` tinyint(4) NOT NULL DEFAULT 0,
  `finsertime` timestamp NOT NULL DEFAULT current_timestamp(),
  `frepley_to` bigint(20) NOT NULL DEFAULT 0,
  `ftype` varchar(45) NOT NULL DEFAULT 'product',
  `fis_buyer` tinyint(4) DEFAULT NULL,
  `fis_trusted` tinyint(4) DEFAULT NULL,
  `fis_ownerAnswer` tinyint(4) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `questions`
--


--
-- Table structure for table `questions_like_dislike`
--

CREATE TABLE `questions_like_dislike` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `fidquestions` bigint(20) NOT NULL,
  `fstatus` varchar(50) NOT NULL,
  `fInsertTime` timestamp NULL DEFAULT current_timestamp(),
  `fidwebuser` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `bbbbbn` (`fidquestions`,`fidwebuser`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `questions_like_dislike`
--


--
-- Table structure for table `rating`
--

CREATE TABLE `rating` (
  `Fldid` bigint(20) NOT NULL AUTO_INCREMENT,
  `FldIdCustomer` bigint(20) NOT NULL,
  `FldIdNobat` bigint(20) NOT NULL,
  `FldRate` int(11) DEFAULT NULL,
  `FldStatus` tinyint(4) DEFAULT NULL,
  `FldComment` mediumtext DEFAULT NULL,
  `flddeleted` tinyint(4) NOT NULL DEFAULT 0,
  `FldHostName` varchar(45) DEFAULT NULL,
  `FldInsertTime` timestamp NULL DEFAULT current_timestamp(),
  `FldInsertUser` varchar(45) DEFAULT NULL,
  `FldSuggest` int(11) DEFAULT NULL,
  PRIMARY KEY (`Fldid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `rating`
--


--
-- Table structure for table `redirect_url_manager`
--

CREATE TABLE `redirect_url_manager` (
  `id` int(25) NOT NULL AUTO_INCREMENT,
  `fold_url` varchar(3000) NOT NULL,
  `fredirect_to` varchar(3000) NOT NULL,
  `fpart1` varchar(545) DEFAULT NULL,
  `type` varchar(300) DEFAULT NULL,
  `inserttime` timestamp NULL DEFAULT current_timestamp(),
  `fullUrl` varchar(3000) DEFAULT NULL,
  `fref_id` int(25) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `redirect_url_manager`
--


--
-- Table structure for table `reports`
--

CREATE TABLE `reports` (
  `RptID` int(11) NOT NULL,
  `ModuleID` int(11) NOT NULL,
  `RptName` varchar(600) NOT NULL,
  `FormCode` varchar(200) NOT NULL,
  `RptContent` longtext DEFAULT NULL,
  UNIQUE KEY `RptID_UNIQUE` (`RptID`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `reports`
--


--
-- Table structure for table `security_settings`
--

CREATE TABLE `security_settings` (
  `Fldid` int(11) NOT NULL AUTO_INCREMENT,
  `fldkey` varchar(255) DEFAULT NULL,
  `fldval` longtext DEFAULT NULL,
  `ftype` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`Fldid`),
  UNIQUE KEY `IX_nobat_settings` (`fldkey`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `security_settings`
--

INSERT INTO `security_settings` VALUES (1,'ApiIpinfo_io',NULL,'public'),(2,'AutoBlockIp',NULL,'private'),(3,'ExternalStoreLimiterConfig',NULL,'private'),(4,'LoginLimiterConfig',NULL,'private'),(5,'MainLimiterConfig',NULL,'private'),(6,'ProductLimiterConfig',NULL,'private'),(7,'SettingsLimiterConfig',NULL,'private'),(8,'TicketLimiterConfig',NULL,'private'),(9,'WebStoreLimiterConfig',NULL,'private');

--
-- Table structure for table `sendedemail`
--

CREATE TABLE `sendedemail` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `fname` varchar(145) DEFAULT NULL,
  `femail` varchar(145) DEFAULT NULL,
  `fresult` varchar(445) DEFAULT NULL,
  `fdesc` varchar(145) DEFAULT NULL,
  `finserttime` timestamp NULL DEFAULT current_timestamp(),
  `fgroup` varchar(345) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `sendedemail`
--


--
-- Table structure for table `sendedsms`
--

CREATE TABLE `sendedsms` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `fname` varchar(145) DEFAULT NULL,
  `fmobile` varchar(145) DEFAULT NULL,
  `fresult` varchar(445) DEFAULT NULL,
  `fdesc` varchar(145) DEFAULT NULL,
  `finserttime` timestamp NULL DEFAULT current_timestamp(),
  `fgroup` varchar(345) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `sendedsms`
--


--
-- Temporary view structure for view `service_view`
--

/*!50001 DROP VIEW IF EXISTS `service_view`*/;
/*!50001 CREATE VIEW `service_view` AS SELECT 
 1 AS `id`,
 1 AS `fidbilling_details`,
 1 AS `fdesc`,
 1 AS `fstatus`,
 1 AS `ftype`,
 1 AS `inserttime`,
 1 AS `fextra`,
 1 AS `fdeleted`,
 1 AS `fexpireDate`,
 1 AS `fname`,
 1 AS `fname_en`,
 1 AS `fimages`,
 1 AS `fidproduct`,
 1 AS `fidwebuser`,
 1 AS `username`*/;

--
-- Table structure for table `services`
--

CREATE TABLE `services` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `fidbilling_details` bigint(20) NOT NULL,
  `fdesc` varchar(1200) DEFAULT NULL,
  `factive` tinyint(4) NOT NULL DEFAULT 1,
  `inserttime` timestamp NULL DEFAULT current_timestamp(),
  `fextra` longtext DEFAULT NULL,
  `fdeleted` tinyint(4) DEFAULT 0,
  `fexpireDate` varchar(245) DEFAULT NULL,
  `fstatus` varchar(145) DEFAULT NULL,
  `ftype` varchar(145) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `fidbilling_details_UNIQUE` (`fidbilling_details`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `services`
--


--
-- Table structure for table `store_sellers_messages`
--

CREATE TABLE `store_sellers_messages` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idStore` bigint(20) NOT NULL,
  `fhtml` longtext DEFAULT NULL,
  `ftext` longtext DEFAULT NULL,
  `finserttime` timestamp NULL DEFAULT current_timestamp(),
  `ftype` varchar(100) DEFAULT NULL,
  `factive` tinyint(4) DEFAULT 1,
  `fname` varchar(145) DEFAULT NULL,
  `fdeleted` tinyint(1) NOT NULL DEFAULT 0,
  `fsmsStatus` longtext DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `store_sellers_messages`
--


--
-- Table structure for table `store_settings`
--

CREATE TABLE `store_settings` (
  `Fldid` int(11) NOT NULL AUTO_INCREMENT,
  `fldkey` varchar(255) DEFAULT NULL,
  `fldval` longtext DEFAULT NULL,
  `ftype` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`Fldid`),
  UNIQUE KEY `IX_nobat_settings` (`fldkey`)
) ENGINE=InnoDB AUTO_INCREMENT=106 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `store_settings`
--

INSERT INTO `store_settings` VALUES (1,'ACTIVE_STORE','1',NULL),(2,'CHANGE_HOME_TO_STORE','1',NULL),(3,'STOR_BAR_LAYOUT','',NULL),(4,'STOR_LAYOUT','',NULL),(5,'STOR_LAYOUT_BRANDS','',NULL),(6,'STOR_LAYOUT_CATAGORY','',NULL),(7,'STOR_LAYOUT_SEARCH','',NULL),(8,'STORE_ACTIVE_DOWN_LINK_MIN','30',NULL),(9,'STORE_ACTIVE_TAX','',NULL),(10,'STORE_ADD_COMMENT','1',NULL),(11,'STORE_ADD_COMMENT_BY_OWNER','1',NULL),(12,'STORE_ADDRESS','تهران',NULL),(13,'STORE_AWAIT_PAYMENT_MIN','120',NULL),(14,'STORE_DISCOUNT_COUPON_ACTIVE','1',NULL),(15,'STORE_GOTO_BASKET_AFTER_ADD','',NULL),(16,'STORE_IMAGELIST1','[]',NULL),(17,'STORE_IMAGELIST2','[]',NULL),(18,'STORE_IMAGELIST3','',NULL),(19,'STORE_LENGTH_UNIT','CM',NULL),(20,'STORE_MONETARY_UNIT','TOMAN',NULL),(21,'STORE_POSTALCODE','1234567891',NULL),(22,'STORE_SHOW_FILTER_SIDE','1',NULL),(23,'STORE_SHOW_PRICE_UPDATE_DATE','1',NULL),(24,'STORE_SLIDER_MAIN','\"\"',NULL),(25,'STORE_SORTE_MODE','newfirst',NULL),(26,'STORE_TAX','',NULL),(27,'STORE_WEIGHT_UNIT','GR',NULL),(28,'STOR_LAYOUT_BESTSELLS','',NULL),(29,'STOR_LAYOUT_OFFERS','',NULL),(30,'STOR_LAYOUT_BASKET','',NULL),(31,'STOR_LAYOUT_BILLING','[]',NULL),(32,'STOR_PRODUCTS_COUNT_PER_LOAD','25',NULL),(33,'STOR_MULTI_SELLER_ACTIVE','0','public'),(34,'STOR_TAX_API_URL','','private'),(35,'STOR_TAX_CLIENTID','','private'),(36,'STOR_TAX_EGHTESADI_NO','','private'),(37,'STOR_TAX_FACKTOR_MOHR_IMAGE','','private'),(38,'STOR_TAX_PAY_SWICH_NO','','private'),(39,'STOR_TAX_PRIVATEKEY','','private'),(40,'STOR_TAX_SABT_NO','','private'),(41,'STOR_TAX_SHENASE_MELI','','private'),(42,'STOR_TAX_SNAME','','private'),(43,'STOR_TAX_TEL_FAX','','private'),(44,'STOR_TAX_TERMINAL_SERIAL','','private'),(45,'STOR_TXT_NO_STOCK','',NULL),(46,'STORE_TXT_ZERO_PRICE','',NULL),(47,'STOR_CONV_NUM_TO_PERSION','',NULL),(48,'STOR_MULTI_SELLER_SEND_BY_SELLERS','0',NULL),(50,'STOR_MULTI_SELLER_ALLOW_SELLERS_ADD_PRODUCT','0',NULL),(60,'STORE_CUSTOMER_POSTALCODE_NO_NEED','',NULL),(61,'STORE_CUSTOMER_POSTALCODE_NO_SHOW','',NULL),(62,'STORE_NOT_SHOW_POPAP_AFTER_ADDTOBASKET','',NULL),(64,'STORE_CHAT_BEFOR_BUY_PRODUCT_PAGE','',NULL),(65,'STOR_PRODUCT_PAGE_CHAT_TELEGRAM','',NULL),(66,'STOR_PRODUCT_PAGE_CHAT_BALE','',NULL),(67,'STOR_PRODUCT_PAGE_CHAT_WHATSAPP','',NULL),(68,'STOR_PRODUCT_PAGE_CHAT_MOBILE','',NULL),(73,'STORE_SHOW_FILTER_SIDE_SCROLL','',NULL),(74,'STORE_FILTER_SIDE_AND_OR','',NULL),(75,'STORE_FILTER_SIDE_ATTRIB_NO_ROOT_CATEG','1',NULL),(76,'STORE_FILTER_SIDE_ATTRIB_NO_ROOT_BRAND','1',NULL),(77,'STORE_FILTER_SIDE_ATTRIB_NO_ROOT_TAG','1',NULL),(78,'STORE_FILTER_SIDE_ATTRIB_NO_ROOT_STORE','1',NULL),(79,'STORE_FILTER_SIDE_ATTRIB_NO_ROOT_SEARCH','1',NULL),(80,'STORE_SHOW_ADD_TO_BASKET_IN_STORE_PRODUCTS','',NULL),(81,'STORE_RESET_RONDING_END_OF_AMAZING','',NULL),(84,'STORE_PRODUCTS_IFINITESCROLL','1',NULL),(87,'STORE_GOTO_BILLING_AFTER_ADD','',NULL),(88,'STORE_HIDE_CARIERINFO_IN_PRODUCT_PAGE','',NULL),(92,'STORE_FREE_DELEVERI_ONLY_SHOW','1',NULL),(95,'STORE_DEFAULT_VARIENT_POL','cheapest',NULL),(96,'STOR_TXT_IS_SOON','',NULL),(98,'STOR_PRODUCT_TITLE_PATTERN','',NULL),(99,'STOR_CATAG_TITLE_PATTERN','',NULL),(100,'STOR_BRAND_TITLE_PATTERN','',NULL),(101,'STOR_TXT_SEND_TODAY_DESC','',NULL),(103,'NoReviewFound','',NULL);

--
-- Temporary view structure for view `store_varient_product_info`
--

/*!50001 DROP VIEW IF EXISTS `store_varient_product_info`*/;
/*!50001 CREATE VIEW `store_varient_product_info` AS SELECT 
 1 AS `id`,
 1 AS `ID_varient_product`,
 1 AS `fgarantidesc`,
 1 AS `fidproduct`,
 1 AS `fidstore`,
 1 AS `fprice`,
 1 AS `factive`,
 1 AS `foff`,
 1 AS `fdate_update_price`,
 1 AS `fdeleted`,
 1 AS `fis_amazing`,
 1 AS `fis_Single_sale`,
 1 AS `amazing_startDate`,
 1 AS `fcustomBuyBoxdesc`,
 1 AS `amazing_endDate`,
 1 AS `amazing_startTime`,
 1 AS `amazing_endTime`,
 1 AS `fManage_stock_quantity`,
 1 AS `fstock_quantity`,
 1 AS `flow_stock_amount`,
 1 AS `fweight`,
 1 AS `flength`,
 1 AS `fis_soon`,
 1 AS `fwidth`,
 1 AS `fheight`,
 1 AS `fmax_sell_quantity`,
 1 AS `fvariabelDependenc1`,
 1 AS `fvariabelDependenc2`,
 1 AS `fvariabelDependenc1desc`,
 1 AS `fvariabelDependenc2desc`,
 1 AS `finfo1`,
 1 AS `finfo2`,
 1 AS `fsellcount`,
 1 AS `fdown_extra`,
 1 AS `amazing_foff`,
 1 AS `fis_freeShip`,
 1 AS `fcanShappingByMainStore`,
 1 AS `fcanShappingBySeller`,
 1 AS `fdaystoSendMainStore`,
 1 AS `finMainStoreStock`,
 1 AS `fdaystoSendCustomerByMainStore`,
 1 AS `fdaystoSendCustomerBySeller`,
 1 AS `ftype`,
 1 AS `frate`,
 1 AS `fsuggests`,
 1 AS `fcomments`,
 1 AS `fronding`,
 1 AS `storeName`,
 1 AS `storeLogo`,
 1 AS `storeUrl`,
 1 AS `storeCode`,
 1 AS `storeRate`,
 1 AS `storeComments`,
 1 AS `storeSuggests`,
 1 AS `storeImages`,
 1 AS `fzarib`,
 1 AS `CarriersData`,
 1 AS `store_on_time_shipping`,
 1 AS `store_on_commitment`,
 1 AS `store_on_no_return`,
 1 AS `store_Inserttime`,
 1 AS `storeis_new`,
 1 AS `storeis_official`,
 1 AS `storeis_trusted`,
 1 AS `products_varients_extra`,
 1 AS `fpriceUnit`,
 1 AS `amazing_startDate_fa`,
 1 AS `amazing_endDate_fa`*/;

--
-- Table structure for table `stores`
--

CREATE TABLE `stores` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `fidwebuser` bigint(20) NOT NULL,
  `fname` varchar(145) DEFAULT NULL,
  `flatinName` varchar(545) DEFAULT NULL,
  `fdesc` longtext DEFAULT NULL,
  `factive` tinyint(4) DEFAULT 1,
  `fimages` longtext DEFAULT NULL,
  `fstatus` varchar(45) DEFAULT 'New',
  `furl` varchar(405) DEFAULT NULL,
  `fextra` longtext DEFAULT NULL,
  `flayout` longtext DEFAULT NULL,
  `fctitle` varchar(545) DEFAULT NULL,
  `flast_update` datetime DEFAULT NULL,
  `finserttime` timestamp NULL DEFAULT current_timestamp(),
  `fdeleted` tinyint(1) NOT NULL DEFAULT 0,
  `fname_og` varchar(445) DEFAULT NULL,
  `fencode_og` varchar(45) DEFAULT NULL,
  `fsabtNo_og` varchar(45) DEFAULT NULL,
  `faddress_og` varchar(1045) DEFAULT NULL,
  `ftell_og` varchar(45) DEFAULT NULL,
  `fshenaseMeli_og` varchar(45) DEFAULT NULL,
  `fcode` varchar(45) DEFAULT NULL,
  `is_new` tinyint(4) DEFAULT NULL,
  `is_official` tinyint(4) DEFAULT NULL,
  `is_trusted` tinyint(4) DEFAULT NULL,
  `fcomissionP` int(11) DEFAULT NULL,
  `on_no_return` int(11) DEFAULT NULL,
  `on_commitment` int(11) DEFAULT NULL,
  `on_time_shipping` int(11) DEFAULT NULL,
  `fsuggests` int(11) DEFAULT 0,
  `fcomments` int(11) DEFAULT 0,
  `frate` int(11) DEFAULT 0,
  `ftypeStore` varchar(45) NOT NULL DEFAULT 'general',
  `fid_province_cities` int(11) NOT NULL,
  `fplak` varchar(45) DEFAULT NULL,
  `fvahed` varchar(45) DEFAULT NULL,
  `fpostalcode` varchar(15) DEFAULT NULL,
  `fstreet` varchar(945) DEFAULT NULL,
  `fmapCenter` varchar(145) DEFAULT NULL,
  `fmapAddress` longtext DEFAULT NULL,
  `fBankInfo` longtext DEFAULT NULL,
  `fsupportMobile` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `fidwebuser_UNIQUE` (`fidwebuser`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `stores`
--


--
-- Table structure for table `stores_request_sell_products`
--

CREATE TABLE `stores_request_sell_products` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `finserttime` timestamp NULL DEFAULT current_timestamp(),
  `fdeleted` tinyint(4) DEFAULT 0,
  `fidstore` int(11) DEFAULT NULL,
  `fidproduct` int(11) DEFAULT NULL,
  `fextra` longtext DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `stores_request_sell_products`
--


--
-- Table structure for table `story`
--

CREATE TABLE `story` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `fname` varchar(145) NOT NULL,
  `fdesc` varchar(1200) NOT NULL,
  `factive` tinyint(4) NOT NULL DEFAULT 1,
  `inserttime` timestamp NULL DEFAULT current_timestamp(),
  `fextra` longtext DEFAULT NULL,
  `fdeleted` tinyint(4) DEFAULT 0,
  `fitems` longtext DEFAULT NULL,
  `fallowSellersAdd` tinyint(4) DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `story`
--


--
-- Table structure for table `tags`
--

CREATE TABLE `tags` (
  `id` bigint(20) NOT NULL,
  `fname` varchar(900) NOT NULL,
  `factive` tinyint(4) DEFAULT 1,
  `fimages` varchar(1900) DEFAULT NULL,
  `flayout` longtext DEFAULT NULL,
  `fdeleted` tinyint(3) DEFAULT 0,
  `fctitle` varchar(545) DEFAULT NULL,
  `fdesc` varchar(945) DEFAULT NULL,
  `furl` varchar(905) DEFAULT NULL,
  `fseen` int(11) DEFAULT NULL,
  `flast_update` datetime DEFAULT current_timestamp(),
  `fidwebuser` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `tags`
--


--
-- Table structure for table `tags_objects`
--

CREATE TABLE `tags_objects` (
  `id` bigint(20) NOT NULL,
  `frefid` bigint(20) NOT NULL,
  `fidtag` bigint(20) NOT NULL,
  `inserttime` timestamp NULL DEFAULT current_timestamp(),
  `ftype` varchar(45) DEFAULT 'product',
  `fidwebuser` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `index2_tags` (`frefid`,`fidtag`,`ftype`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `tags_objects`
--


--
-- Table structure for table `tbl_demoreques`
--

CREATE TABLE `tbl_demoreques` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `utm` longtext DEFAULT NULL,
  `insertTime` datetime DEFAULT current_timestamp(),
  `femail` varchar(45) NOT NULL,
  `fname` varchar(145) DEFAULT NULL,
  `fmsg` varchar(405) DEFAULT NULL,
  `ftypedemo` varchar(45) DEFAULT NULL,
  `fmobile` varchar(45) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `tbl_demoreques`
--


--
-- Table structure for table `tbl_faq`
--

CREATE TABLE `tbl_faq` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `fquestion` longtext DEFAULT NULL,
  `fanswer` longtext DEFAULT NULL,
  `fhtml` longtext DEFAULT NULL,
  `finserttime` timestamp NULL DEFAULT current_timestamp(),
  `fauthor` varchar(45) DEFAULT NULL,
  `fidcatags` mediumtext DEFAULT NULL,
  `fkeys` varchar(900) DEFAULT NULL,
  `factive` tinyint(4) DEFAULT 1,
  `fimages` longtext DEFAULT NULL,
  `flast_update` datetime DEFAULT NULL,
  `fdeleted` tinyint(1) NOT NULL DEFAULT 0,
  `furl` varchar(405) DEFAULT NULL,
  `frate` int(11) DEFAULT 0,
  `fratecount` int(11) DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `tbl_faq`
--


--
-- Table structure for table `tbl_forms`
--

CREATE TABLE `tbl_forms` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `finserttime` timestamp NULL DEFAULT current_timestamp(),
  `ftitle` varchar(345) DEFAULT NULL,
  `factive` tinyint(4) DEFAULT 1,
  `flast_update` datetime DEFAULT NULL,
  `fdeleted` tinyint(1) NOT NULL DEFAULT 0,
  `flayout` longtext DEFAULT NULL,
  `fauthor` varchar(245) DEFAULT NULL,
  `fmobiletoSms` varchar(45) DEFAULT NULL,
  `femailtoSend` varchar(245) DEFAULT NULL,
  `fbtntext` varchar(45) DEFAULT NULL,
  `fsuccessMsg` varchar(545) DEFAULT NULL,
  `ffailMsg` varchar(545) DEFAULT NULL,
  `fredirectto` varchar(445) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `tbl_forms`
--


--
-- Table structure for table `tbl_forms_resuls`
--

CREATE TABLE `tbl_forms_resuls` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `fidform` int(11) NOT NULL,
  `fresult` longtext DEFAULT NULL,
  `finserttime` timestamp NULL DEFAULT current_timestamp(),
  `fauthor` varchar(45) DEFAULT NULL,
  `fdeleted` tinyint(1) NOT NULL DEFAULT 0,
  `fvisitorInfo` longtext DEFAULT NULL,
  `femailresult` varchar(145) DEFAULT NULL,
  `fsmsresult` varchar(145) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `tbl_forms_resuls`
--


--
-- Table structure for table `tbl_review_and_rate`
--

CREATE TABLE `tbl_review_and_rate` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `fiditem` bigint(20) NOT NULL COMMENT 'موردی که برای آن ثبت نظر میشود مثلا محصول یا کارشناس',
  `fidref` bigint(20) DEFAULT NULL COMMENT 'مرجع ثبت نظر به طور مثال شناسه نوبت یا سفارش',
  `fidwebuser` bigint(20) NOT NULL DEFAULT 0,
  `frate` int(11) DEFAULT NULL,
  `ftext` mediumtext DEFAULT NULL,
  `fstatus` tinyint(4) DEFAULT 1 COMMENT 'تایید:2       رد:0       همه:4      تایید نشده:1',
  `ftype` varchar(45) NOT NULL DEFAULT 'product' COMMENT '   نوبت ---- >nobat      محصولات--->product',
  `fdeleted` tinyint(4) NOT NULL DEFAULT 0,
  `finsertime` timestamp NOT NULL DEFAULT current_timestamp(),
  `fcons` longtext DEFAULT NULL,
  `fpositivePoints` longtext DEFAULT NULL,
  `fanonymous` tinyint(3) NOT NULL DEFAULT 0 COMMENT 'ناشناس:1',
  `ftitle` varchar(445) DEFAULT NULL,
  `fsuggest` tinyint(3) DEFAULT NULL COMMENT 'پیشنهاد:1     عدم پیشنهاد:2      نظری ندارم:0',
  `flikes` int(11) DEFAULT NULL,
  `fdislikes` int(11) DEFAULT NULL,
  `fextra` longtext DEFAULT NULL,
  `flastUpdate` timestamp NULL DEFAULT NULL,
  `fidstore` int(11) DEFAULT 0,
  `fidproducts_varients` varchar(45) DEFAULT NULL,
  `fbullktype` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `tbl_review_and_rate`
--


--
-- Table structure for table `tbl_review_and_rate_like_dislike`
--

CREATE TABLE `tbl_review_and_rate_like_dislike` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `fidreview_and_rate` bigint(20) NOT NULL,
  `fstatus` varchar(50) NOT NULL,
  `fInsertTime` timestamp NULL DEFAULT current_timestamp(),
  `fidwebuser` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `aaaa` (`fidreview_and_rate`,`fidwebuser`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `tbl_review_and_rate_like_dislike`
--


--
-- Table structure for table `tbl_unsubscribe`
--

CREATE TABLE `tbl_unsubscribe` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `url` varchar(405) DEFAULT NULL,
  `source` varchar(45) DEFAULT NULL,
  `title` varchar(45) DEFAULT NULL,
  `code` varchar(50) DEFAULT NULL,
  `visitorinfo` longtext DEFAULT NULL,
  `insertTime` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `tbl_unsubscribe`
--


--
-- Table structure for table `tbl_utm`
--

CREATE TABLE `tbl_utm` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `url` varchar(405) DEFAULT NULL,
  `source` varchar(45) DEFAULT NULL,
  `title` varchar(45) DEFAULT NULL,
  `code` varchar(50) DEFAULT NULL,
  `visitorinfo` longtext DEFAULT NULL,
  `insertTime` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `tbl_utm`
--


--
-- Table structure for table `tblholidays`
--

CREATE TABLE `tblholidays` (
  `FldId` int(11) NOT NULL AUTO_INCREMENT,
  `FldTitle` varchar(200) NOT NULL,
  `FldDate` datetime NOT NULL,
  `Flddeleted` tinyint(1) NOT NULL DEFAULT 0,
  `FldHostName` varchar(100) NOT NULL DEFAULT 'webhost',
  `FldInsertTime` timestamp NOT NULL DEFAULT current_timestamp(),
  `FldInsertUser` varchar(50) NOT NULL DEFAULT 'webuser',
  PRIMARY KEY (`FldId`) USING BTREE,
  UNIQUE KEY `IX_TblHolidays` (`FldDate`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=58 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `tblholidays`
--

INSERT INTO `tblholidays` VALUES (20,'۳ مهر رحلت رسول اکرم؛شهادت امام حسن مجتبی علیه السلام [ ٢٨ صفر ]','2022-09-25 00:00:00',0,'WEBHOST','2022-10-08 10:30:35','voipmani_general@localhost'),(21,'۵ مهر شهادت امام رضا علیه السلام [ ٣٠ صفر ]','2022-09-27 00:00:00',0,'WEBHOST','2022-10-08 11:28:19','voipmani_general@localhost'),(22,'ddddddddd','2022-10-18 00:00:00',0,'WEBHOST','2022-10-08 13:32:31','voipmani_general@localhost'),(24,' ولادت حضرت امام علی علیه السلام (تعطیل)','2023-02-03 00:00:00',0,'webhost','2023-01-30 14:02:43','webuser'),(25,'پيروزي انقلاب اسلامي ايران و سقوط نظام شاهنشاهي (تعطيل)','2023-02-11 00:00:00',0,'webhost','2023-01-30 14:03:01','webuser'),(26,'مبعث حضرت رسول اکرم صلی الله علیه و آله (تعطیل)','2023-02-18 00:00:00',0,'webhost','2023-01-30 14:04:56','webuser'),(27,'ولادت حضرت قائم عجل الله تعالی فرجه (تعطیل)','2023-03-08 00:00:00',0,'webhost','2023-01-30 14:05:41','webuser'),(28,' روز ملي شدن صنعت نفت ايران  (تعطيل)','2023-03-20 00:00:00',0,'webhost','2023-01-30 14:05:57','webuser'),(29,'آغاز نوروز (تعطيل)','2023-03-21 00:00:00',0,'webhost','2023-01-30 14:06:53','webuser'),(30,' عيد نوروز (تعطيل)','2023-03-22 00:00:00',0,'webhost','2023-01-30 14:07:21','webuser'),(31,'عيد نوروز (تعطيل)  ','2023-03-23 00:00:00',0,'webhost','2023-01-30 14:07:39','webuser'),(32,'عيد نوروز (تعطيل)','2023-03-24 00:00:00',0,'webhost','2023-01-30 14:07:51','webuser'),(33,'روز جمهوري اسلامي ايران (تعطيل)','2023-04-01 00:00:00',0,'webhost','2023-01-30 14:08:07','webuser'),(34,'روز طبیعت (تعطیل)','2023-04-02 00:00:00',0,'webhost','2023-01-30 14:08:21','webuser'),(35,'شهادت حضرت امام علی علیه السلام (تعطیل)','2023-04-12 00:00:00',0,'webhost','2023-01-30 14:08:48','webuser'),(36,'عید سعید فطر(تعطیل)','2023-04-22 00:00:00',0,'webhost','2023-01-30 14:09:06','webuser'),(37,' تعطیل به مناسبت عید سعید فطر','2023-04-23 00:00:00',0,'webhost','2023-01-30 14:09:30','webuser'),(38,'شهادت حضرت امام جعفر صادق علیه السلام (تعطیل)','2023-05-16 00:00:00',0,'webhost','2023-01-30 14:09:48','webuser'),(39,' رحلت حضرت امام خميني (رحمه الله عليه) رهبركبير انقلاب و بنيانگذار جمهوري اسلامي ايران _  انتخاب حضرت آيت الله امام خامنه اي به رهبري  (تعطيل)','2023-06-04 00:00:00',0,'webhost','2023-01-30 14:10:07','webuser'),(40,'قیام خونین 15 خرداد (تعطیل)','2023-06-05 00:00:00',0,'webhost','2023-01-30 14:10:22','webuser'),(41,' عيد سعيد قربان (تعطيل)','2023-06-29 00:00:00',0,'webhost','2023-01-30 14:10:41','webuser'),(42,'عيد سعيد غدیر خم (تعطيل)','2023-07-07 00:00:00',0,'webhost','2023-01-30 14:10:58','webuser'),(43,'تاسوعای حسینی (تعطیل)','2023-07-27 00:00:00',0,'webhost','2023-01-30 14:11:14','webuser'),(44,'عاشورای حسینی (تعطیل)','2023-07-28 00:00:00',0,'webhost','2023-01-30 14:11:32','webuser'),(45,'اربعین حسینی (تعطیل)','2023-09-06 00:00:00',0,'webhost','2023-01-30 14:11:51','webuser'),(46,' رحلت حضرت رسول اکرم صلی الله علیه و آله_ شهادت حضرت امام حسن مجتبی علیه السلام (تعطیل)','2023-09-14 00:00:00',0,'webhost','2023-01-30 14:12:08','webuser'),(47,'شهادت حضرت امام رضا علیه السلام (تعطیل)','2023-09-16 00:00:00',0,'webhost','2023-01-30 14:12:25','webuser'),(48,'شهادت حضرت امام حسن عسکری علیه السلام  و آغاز امامت حضرت ولی عصر (عج)(تعطیل)','2023-09-24 00:00:00',0,'webhost','2023-01-30 14:12:42','webuser'),(49,' ولادت حضرت رسول اكرم صلي الله عليه و آله  و روز اخلاق و مهرورزي _ ولادت حضرت امام جعفر صادق عليه السلام مؤسس مذهب جعفري (تعطيل)','2023-10-03 00:00:00',0,'webhost','2023-01-30 14:13:00','webuser'),(50,' شهادت حضرت فاطمه زهرا سلام الله عليها (تعطيل)','2023-12-17 00:00:00',0,'webhost','2023-01-30 14:13:21','webuser'),(51,'ولادت حضرت امام علی علیه السلام (تعطیل)','2024-01-25 00:00:00',0,'webhost','2023-01-30 14:13:41','webuser'),(52,' مبعث حضرت رسول اکرم صلی الله علیه و آله (تعطیل)','2024-02-08 00:00:00',0,'webhost','2023-01-30 14:13:57','webuser'),(53,'پيروزي انقلاب اسلامي ايران و سقوط نظام شاهنشاهي (تعطيل)','2024-02-11 00:00:00',0,'webhost','2023-01-30 14:14:18','webuser'),(54,' ولادت حضرت قائم عجل الله تعالی فرجه (تعطیل)','2024-02-25 00:00:00',0,'webhost','2023-01-30 14:15:03','webuser'),(55,' روز ملي شدن صنعت نفت ايران  (تعطيل)','2024-03-19 00:00:00',0,'webhost','2023-01-30 14:15:31','webuser'),(56,'222222222','2023-01-29 00:00:00',0,'webhost','2023-02-04 22:05:02','webuser'),(57,'wwwwww','2023-02-04 00:00:00',0,'webhost','2023-02-04 22:05:30','webuser');

--
-- Table structure for table `tblinstagram`
--

CREATE TABLE `tblinstagram` (
  `id` int(21) NOT NULL AUTO_INCREMENT,
  `media_url` varchar(2500) DEFAULT NULL,
  `permalink` varchar(2500) DEFAULT NULL,
  `is_shared_to_feed` tinyint(2) DEFAULT NULL,
  `media_type` varchar(2500) DEFAULT NULL,
  `timestamp` varchar(2500) DEFAULT '0',
  `InsertTime` timestamp NULL DEFAULT current_timestamp(),
  `localmedia` varchar(2500) DEFAULT NULL,
  `postid` varchar(245) DEFAULT NULL,
  `caption` varchar(2545) DEFAULT NULL,
  `parentid` varchar(245) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `tblinstagram`
--


--
-- Table structure for table `tblsounds`
--

CREATE TABLE `tblsounds` (
  `FldId` int(11) NOT NULL AUTO_INCREMENT,
  `FldUserName` varchar(50) NOT NULL,
  `FldPass` varchar(200) NOT NULL,
  `Fldname` varchar(50) NOT NULL,
  `FldLastName` varchar(50) DEFAULT NULL,
  `FldType` tinyint(3) unsigned DEFAULT NULL,
  `FldExtension` varchar(50) DEFAULT NULL,
  `FldInsertTime` timestamp NULL DEFAULT current_timestamp(),
  `FldDeleted` tinyint(1) DEFAULT 0,
  `FldHostName` varchar(50) DEFAULT NULL,
  `FldIsAdmin` tinyint(1) DEFAULT 0,
  `FldIsActive` tinyint(1) DEFAULT 1,
  `FldMobile` varchar(50) DEFAULT NULL,
  `FldEmail` varchar(50) DEFAULT NULL,
  `FldNeddChangePass` tinyint(1) DEFAULT 0,
  PRIMARY KEY (`FldId`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `tblsounds`
--


--
-- Table structure for table `tbluserlogininfo`
--

CREATE TABLE `tbluserlogininfo` (
  `FldId` int(11) NOT NULL AUTO_INCREMENT,
  `FldIdUser` int(11) DEFAULT NULL,
  `FldUserName` varchar(50) DEFAULT NULL,
  `FldPass` varchar(200) DEFAULT NULL,
  `FldIp` varchar(50) DEFAULT NULL,
  `FldIsAdmin` varchar(50) DEFAULT '0',
  `FldIsActive` varchar(50) DEFAULT '1',
  `FldResultStatus` varchar(50) DEFAULT NULL,
  `FldDeleted` tinyint(1) NOT NULL DEFAULT 0,
  `FldInsertTime` timestamp NULL DEFAULT current_timestamp(),
  `FldHostName` varchar(50) DEFAULT NULL,
  `FldInsertUser` varchar(50) DEFAULT NULL,
  `roles` varchar(405) DEFAULT NULL,
  `fagent` varchar(1500) DEFAULT NULL,
  PRIMARY KEY (`FldId`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `tbluserlogininfo`
--


--
-- Table structure for table `tblusers`
--

CREATE TABLE `tblusers` (
  `FldId` int(11) NOT NULL AUTO_INCREMENT,
  `FldUserName` varchar(50) NOT NULL,
  `FldPass` varchar(200) NOT NULL,
  `Fldname` varchar(50) NOT NULL,
  `FldLastName` varchar(50) DEFAULT NULL,
  `FldType` tinyint(3) unsigned NOT NULL DEFAULT 4,
  `FldExtension` varchar(50) DEFAULT NULL,
  `FldInsertTime` timestamp NULL DEFAULT current_timestamp(),
  `FldDeleted` tinyint(1) DEFAULT 0,
  `FldHostName` varchar(50) DEFAULT NULL,
  `FldIsAdmin` tinyint(1) DEFAULT 0,
  `FldIsActive` tinyint(1) DEFAULT 1,
  `FldMobile` varchar(50) DEFAULT NULL,
  `FldEmail` varchar(50) DEFAULT NULL,
  `FldNeddChangePass` tinyint(1) DEFAULT 0,
  `FldInsertUser` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`FldId`) USING BTREE,
  UNIQUE KEY `IX_TblUsers` (`FldId`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `tblusers`
--


--
-- Table structure for table `tblvoipserverinfo`
--

CREATE TABLE `tblvoipserverinfo` (
  `fldid` int(11) NOT NULL,
  `FldType` varchar(50) DEFAULT NULL,
  `FldUser` varchar(50) DEFAULT NULL,
  `FldPass` varchar(50) DEFAULT NULL,
  `FldPort` varchar(50) DEFAULT NULL,
  `FldIpServerVoip` varchar(50) DEFAULT NULL,
  `FldHostName` varchar(100) NOT NULL,
  `FldDeleted` tinyint(1) NOT NULL DEFAULT 0,
  `FldInsertTime` timestamp NOT NULL DEFAULT current_timestamp(),
  `FldInsertUser` varchar(50) NOT NULL,
  PRIMARY KEY (`fldid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `tblvoipserverinfo`
--


--
-- Table structure for table `tblwebsettingsportall`
--

CREATE TABLE `tblwebsettingsportall` (
  `FldId` int(11) NOT NULL AUTO_INCREMENT,
  `FldKey` varchar(150) NOT NULL,
  `FldValue` longtext DEFAULT NULL,
  `FldOldValue` longtext DEFAULT NULL,
  `FldShowInSettings` tinyint(1) NOT NULL DEFAULT 0,
  `FldType` int(10) NOT NULL DEFAULT 0,
  PRIMARY KEY (`FldId`),
  UNIQUE KEY `uniqKey` (`FldKey`)
) ENGINE=InnoDB AUTO_INCREMENT=612 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `tblwebsettingsportall`
--

INSERT INTO `tblwebsettingsportall` VALUES (1,'nobatAgreementRule','','',0,0),(2,'PortallFirstPageLogoAdress','/fix_img//CM.png','',0,0),(4,'PortallTell','','',0,0),(7,'PortallSiteDescription','کدمن یک سایت ساز برای طراحی و راه اندازی سامانه های فروشگاه آنلاین , مارکت پلیس های قدرتمند و با سرعت بالا می‌باشد.','',0,0),(8,'PortallRegisterAgreementRuleHTMLFull','','',0,0),(9,'PortallLoginPageDescreption','','',0,0),(10,'getFastNobat','1','',0,0),(11,'showTodayNobat','1','',0,0),(12,'showTimeNobat','0','',0,0),(20,'HomePageHeader','','',0,0),(24,'AppDirectLink','/app/code-man store.apk','',0,0),(25,'AudioNobatActive','1','',0,0),(28,'PortallFooter','     تمام حقوق مادی و معنوی این وب سایت متعلق به           <a href=\"/\">کـــدمــن</a> میباشد .','',0,0),(29,'PortallSiteName','فروشگاهی کدمن','',0,0),(34,'HomePageWellcomeMSG','','',0,0),(36,'AppBazarLink','https://cafebazaar.ir/app/io.gonative.android.ddokqx','',0,0),(37,'AppMyketLink','','',0,0),(38,'AppSectionDesc','','',0,0),(43,'canRegister','1','',0,0),(45,'PortallSecoundLogoAdress','','',0,0),(46,'PortallMobile','09128983015','',0,0),(51,'DeactiveUserMessage','کاربر گرامی،   حساب   ایجاد شده   غیر فعال شده است   ','',0,0),(52,'SHOW_ABOUT','1','',0,0),(54,'SHOW_CONTACTUS','1','',0,0),(62,'MAP_SRC','','',0,0),(63,'CONTACTUS_PAGE_TYPE','94','',0,0),(64,'ABOUT_PAGE_TYPE','153','',0,0),(65,'HOME_PAGE_TYPE','45','',0,0),(70,'SITE_KEYWORD','فروشگاه ساز,اسکریپت فروشگاهی ، کدمن ،  code-man','',0,0),(71,'SHOW_LOGIN_CAPCHA','0','',0,0),(72,'TELEGRAM','vahidpur','',0,0),(73,'WHATSAPP','','',0,0),(74,'INSTAGRAM','','',0,0),(75,'TWITTER','','',0,0),(76,'ABOVE_FOTTER_TXT','','',0,0),(77,'E_NAMAD','<a\n  referrerpolicy=\"origin\"\n  target=\"_blank\"\n  href=\"https://trustseal.enamad.ir/?id=test&amp;Code=test\"\n  ><img\n    referrerpolicy=\"origin\"\n    src=\"/fix_img/namad01.png\"\n    alt=\"\"\n    style=\"cursor: pointer\"\n    id=\"test\"  class=\" m-1 th1 op-70 r-20d \"\n/></a>\n','',0,0),(78,'S_NAMAD','<a\n  referrerpolicy=\"origin\"\n  target=\"_blank\"\n  href=\"https://trustseal.enamad.ir/?id=test&amp;Code=test\"\n  ><img\n    referrerpolicy=\"origin\"\n    src=\"/fix_img/namad03.png\"\n    alt=\"\"\n    style=\"cursor: pointer\"\n    id=\"test\"  class=\" m-1 th1 op-70 r-20d \"\n/></a>','',0,0),(79,'EMAIL_F','','',0,0),(80,'PRODUCTS_PAGE_TYPE','2','',0,0),(86,'SHOW_PRODUCTS','1','',0,0),(91,'SHOW_POSTS','1','',0,0),(92,'POSTS_PAGE_TYPE','158','',0,0),(93,'ALLOWSEND_CRASHINFO','1','',0,0),(94,'THM_COLOR_MAIN','{\"color_p_500\":\"#ef394e\",\"color_p_700\":\"#ef4056\",\"header_bg_color\":\"#f4f4f4\",\"page_bg_color\":\"#ffffff\",\"color_p_300\":\"#f37a8a\",\"color_s_500\":\"#19bfd3\",\"color_s_700\":\"#008eb2\",\"color_s_300\":\"#008deb\",\"dashbord_admin\":\"#f4f4f4\",\"dashbord_user\":\"#ecf2ff\",\"dashbord_seller\":\"#b0dee0\",\"fontMain\":\"IRANYekan\",\"fontDashboard\":\"Vazir\",\"thm1_body\":\"#f7ffff\"}','',0,0),(95,'SHOW_CHAT','0','',0,0),(96,'SHOW_CHAT_APICODE','','',0,0),(98,'GOOGLE_TAG_HEAD','','',0,0),(99,'GOOGLE_TAG_BODY','','',0,0),(100,'DEBUGMODE','0','',0,0),(101,'URL_STORE','store','',0,0),(102,'URL_BLOG','blog','',0,0),(103,'URL_ABOUT','about','',0,0),(104,'URL_CONTACTUS','contact','',0,0),(105,'HEADER_TYPE','0','',0,0),(106,'SHOW_HEADER','0','',0,0),(107,'FOOTER_TYPE','0','',0,0),(108,'SHOW_FOOTER','0','',0,0),(109,'MENUE_TYPE','0','',0,0),(110,'SHOW_MENUE','0','',0,0),(111,'GOOGLE_TAG_DISABLE','1','',0,0),(112,'SMS_OPERATOR','0','',0,0),(113,'SMS_USERNAME',NULL,'',0,0),(114,'SMSCODE_ERASAL_USER_PASS','449698','',0,0),(115,'SMSCODE_FAALSAZI_HESAB','662416','',0,0),(116,'SMSCODE_SABT_NOBAT','','',0,0),(117,'SMSCODE_TAEED','','',0,0),(118,'SMSCODE_YADAVARI_NOBAT','','',0,0),(119,'VERIFY_METHOD','email','',0,0),(120,'SHOW_Coming_Soon','0','',0,0),(121,'SOON_TYPE','159','',0,0),(122,'PWA','1','',0,0),(123,'POST_COMMENT','0',NULL,0,0),(124,'ABOUT_PAGE_HTML',NULL,NULL,0,1),(125,'EMAILCODE_ERASAL_USER_PASS',NULL,NULL,0,0),(126,'EMAILCODE_FAALSAZI_HESAB',NULL,NULL,0,0),(127,'EMAILCODE_SABT_NOBAT',NULL,NULL,0,0),(128,'EMAILCODE_TAEED',NULL,NULL,0,0),(129,'EMAILCODE_YADAVARI_NOBAT',NULL,NULL,0,0),(130,'SMSCODE_SABT_NOBAT_TOADMIN','',NULL,0,0),(131,'SITE_MAIN_BANER_IMGS','[]',NULL,0,0),(132,'VALIDATE_CODEMELI','',NULL,0,0),(133,'INSTAGRAM_PAGE',NULL,NULL,0,0),(134,'INSTAGRAM_TOKEN',NULL,NULL,0,0),(135,'SHOW_INSTAGRAM',NULL,NULL,0,0),(136,'TINYMCEEDITOR_APIKEY','',NULL,0,0),(138,'FOOTER_GRIDFLOW','0',NULL,0,0),(139,'FOOTER_CLOCK',NULL,NULL,0,0),(142,'HIDE_CODE_MAN_LINKS','',NULL,0,0),(143,'PWA_SETTINGS','{\"background\":\"#2630C7\",\"theme_color\":\"#54BBED\",\"appName\":\"کدمن\",\"appShortName\":\"کدمن\",\"appDescription\":\"فروشگاه اینترنتی کدمن\",\"appleStatusBarStyle\":\"black-translucent\",\"display\":\"standalone\",\"orientation\":\"any\",\"icons\":{\"android\":1,\"appleIcon\":0,\"appleStartup\":0,\"favicons\":1,\"windows\":0,\"yandex\":0}}',NULL,0,0),(144,'USER_ADDRESS_MAP_SETTINGS','',NULL,0,0),(145,'FAST_LOGIN','1',NULL,0,0),(146,'SITE_CONDITIONS_PAGE','',NULL,0,0),(147,'SITE_RULES_PAGE','',NULL,0,0),(148,'USER_DASH_LAYOUT','',NULL,0,0),(149,'FAQ_FIX_SITE','',NULL,0,0),(150,'SHOWLOADING','0',NULL,0,0),(151,'SHOWLOGOINLOADING','0',NULL,0,0),(152,'MAIN_TITLE','اسکریپت کدمن',NULL,0,0),(153,'SMSCODE_ORDER_REGISTER','',NULL,0,0),(154,'SMSCODE_NEW_TICKET','',NULL,0,0),(155,'SMSCODE_TICKET_ANSWER','',NULL,0,0),(156,'SMSCODE_EXREQUEST_ACCEPT','',NULL,0,0),(157,'SMSCODE_EXREQUEST_RECEIVED','',NULL,0,0),(158,'SMSCODE_ORDER_STATUS_CHANGE','',NULL,0,0),(159,'SMSCODE_EXREQUEST_REJECTED','',NULL,0,0),(160,'SMSCODE_ORDER_REGISTER_ADMIN','',NULL,0,0),(162,'SMSCODE_ORDER_POST_INFO','',NULL,0,0),(190,'SHOWMOBILE_INHEADER','0912-898-3015',NULL,0,0),(198,'filename','/fix_img//CM.png',NULL,0,0),(199,'path','../public_html',NULL,0,0),(200,'handleIndexUpdate','1',NULL,0,0),(256,'SMSCODE_FAIL_ONLINE_PAY','',NULL,0,0),(262,'SMSCODE_WALLET_DEPOSITE_USER','',NULL,0,0),(263,'SMSCODE_WALLET_DEPOSITE_ADMIN','',NULL,0,0),(264,'SMSCODE_WALLET_CHANGE_BY_ADMIN_FOR_USER','',NULL,0,0),(271,'SMS_APICODE','',NULL,0,0),(272,'SMS_LINE_NUMBER','',NULL,0,0),(436,'SELLER_DASH_LAYOUT','',NULL,0,0),(522,'handleRedirects','1',NULL,0,0),(528,'LOGOSETTINGS','{\"mobile\":{\"mini\":\"60px\",\"medium\":\"90px\",\"large\":\"120px\"},\"desktop\":{\"mini\":\"90px\",\"medium\":\"120px\",\"large\":\"160px\"},\"haveclogo\":1}',NULL,0,0),(558,'notShowEndSupport','',NULL,0,0),(560,'SHOWLOADING_REFRESH','',NULL,0,0),(562,'FORCE_GET_USER_INFO_REGISTER_TIME','',NULL,0,0),(564,'GIFT_USER_BY_REGISTER','',NULL,0,0),(565,'SITE_ADMINS_MOBILES','',NULL,0,0),(566,'CUSTOM_META_TAGS_INDEXFILE','',NULL,0,0),(567,'GIFT_USER_BY_FIRST_REVIEW','',NULL,0,0),(568,'GIFT_USER_BY_FIRST_ORDER_BY_WALLET','',NULL,0,0),(570,'LOGIN_BY_PASSWORD_FOR_REGISTERED_USERS','',NULL,0,0),(577,'HIDE_CODE_MAN_EXTRACOMMENTS','',NULL,0,0),(586,'NOINDEXMODE','1',NULL,0,0),(587,'NOCACHEVIEWDATA','',NULL,0,0),(588,'SHOE_WWW_IN_URL','',NULL,0,0),(589,'NOTFOUND_REDIRECT_TO_HOME','1',NULL,0,0),(590,'HOME_HEADER_URI','',NULL,0,0),(592,'TOP_FIXNAV_CIRCLE','1',NULL,0,0),(594,'HEADERINFO','{\"mobile\":{\"BanerFix_h\":35,\"Header_h\":68,\"_p\":2},\"desktop\":{\"MenueBar_h\":51,\"_p\":6,\"Header_h\":68,\"BanerFix_h\":60}}',NULL,0,0),(595,'HEADER_THEME_DESCKTOP','theme-1',NULL,0,0),(596,'HEADER_THEME_MOBILE','theme-1',NULL,0,0),(605,'FOOTER_SHOW_DEFAULT_TH','1',NULL,0,0),(606,'BUTTOM_FIXNAV_CIRCLE','1',NULL,0,0),(607,'BUTTOM_FIXNAV_SHOW_TITLE','1',NULL,0,0),(608,'BOTTOM_NAVBAR_THEME_MOBILE','theme-1',NULL,0,0);

--
-- Table structure for table `tblwebusers`
--

CREATE TABLE `tblwebusers` (
  `FldId` bigint(20) NOT NULL AUTO_INCREMENT,
  `fmnulist` longtext DEFAULT NULL,
  `FldUsername` varchar(50) NOT NULL,
  `FldMobile` varchar(200) NOT NULL,
  `FldEmail` varchar(200) DEFAULT NULL,
  `FldNationalCode` varchar(20) DEFAULT NULL,
  `FldPassword` longtext NOT NULL,
  `FldIdLevel1` smallint(6) DEFAULT 0,
  `FldActivation` tinyint(1) NOT NULL DEFAULT 1,
  `FldPasswordChangeDate` timestamp NOT NULL DEFAULT current_timestamp(),
  `FldLastLogin` timestamp NOT NULL DEFAULT current_timestamp(),
  `FldCommitedInfo` tinyint(1) NOT NULL DEFAULT 0,
  `FldDateFldCommitedInfo` datetime(6) DEFAULT NULL,
  `FldInsertTime` timestamp NULL DEFAULT current_timestamp(),
  `FldDeleted` tinyint(1) DEFAULT 0,
  `FldNeedPassChange` tinyint(1) NOT NULL DEFAULT 0,
  `FldIsAdmin` tinyint(1) NOT NULL DEFAULT 0,
  `FldEmailVerifyInfo` varchar(405) NOT NULL DEFAULT 'NO',
  `FldName` varchar(145) DEFAULT 'کاربر',
  `FldLastName` varchar(145) DEFAULT 'جدید',
  `FldMobile2` varchar(45) DEFAULT NULL,
  `FldTelManzel` varchar(45) DEFAULT NULL,
  `fldAdress` varchar(245) DEFAULT 'نامشخص',
  `FldSex` varchar(145) DEFAULT NULL,
  `Fldvoicepath` varchar(245) DEFAULT '',
  `FldFlag` int(11) DEFAULT 0,
  `FldTypeUser` varchar(45) DEFAULT 'general',
  `FldMobileVerifyInfo` varchar(405) NOT NULL DEFAULT 'NO',
  `fname_og` varchar(445) DEFAULT NULL,
  `fencode_og` varchar(45) DEFAULT NULL,
  `fsabtNo_og` varchar(45) DEFAULT NULL,
  `faddress_og` varchar(1045) DEFAULT NULL,
  `ftell_og` varchar(45) DEFAULT NULL,
  `fshenaseMeli_og` varchar(45) DEFAULT NULL,
  `FldIsSeller` tinyint(1) DEFAULT NULL,
  `FldHoughui` tinyint(1) DEFAULT NULL,
  `flastLoginIp` varchar(45) DEFAULT NULL,
  `fcode` varchar(145) DEFAULT NULL,
  PRIMARY KEY (`FldId`),
  UNIQUE KEY `FldMobile_UNIQUE` (`FldMobile`),
  UNIQUE KEY `FldUsername_UNIQUE` (`FldUsername`),
  UNIQUE KEY `FldEmail_UNIQUE` (`FldEmail`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `tblwebusers`
--


--
-- Table structure for table `tempactivatecode`
--

CREATE TABLE `tempactivatecode` (
  `FldId` bigint(20) NOT NULL AUTO_INCREMENT,
  `email` varchar(50) DEFAULT NULL,
  `tell` varchar(50) DEFAULT NULL,
  `G_code` varchar(50) DEFAULT NULL,
  `insertTime` timestamp NOT NULL DEFAULT current_timestamp(),
  `result` varchar(900) DEFAULT NULL,
  `message` varchar(500) DEFAULT NULL,
  PRIMARY KEY (`FldId`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `tempactivatecode`
--


--
-- Table structure for table `transactions`
--

CREATE TABLE `transactions` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `TransactionCode` varchar(900) NOT NULL,
  `ClientFirstName` varchar(900) NOT NULL,
  `ClientLastName` varchar(900) NOT NULL,
  `ClientEmail` varchar(900) NOT NULL,
  `ClientPhone` varchar(900) NOT NULL,
  `ClientAmount` varchar(900) NOT NULL,
  `ClientDescription` varchar(900) NOT NULL,
  `payDate` varchar(900) NOT NULL,
  `PID` varchar(900) NOT NULL,
  `IDRef` bigint(30) DEFAULT NULL,
  `Result` varchar(405) DEFAULT NULL,
  `IDCustomer` int(11) NOT NULL DEFAULT 0,
  `IDLevel1` int(11) NOT NULL DEFAULT 0,
  `ResultData` longtext DEFAULT NULL,
  `PG` varchar(45) DEFAULT NULL,
  `STATUS` int(11) DEFAULT NULL,
  `ftype` varchar(145) NOT NULL DEFAULT 'nobat',
  `finserttime` timestamp NULL DEFAULT current_timestamp(),
  `fextra` longtext DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `transactions`
--


--
-- Table structure for table `trim_url_manager`
--

CREATE TABLE `trim_url_manager` (
  `id` int(25) NOT NULL AUTO_INCREMENT,
  `fredirect_to` varchar(3000) NOT NULL,
  `inserttime` timestamp NULL DEFAULT current_timestamp(),
  `fviewCount` int(20) DEFAULT 0,
  `fcode` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `fcode_UNIQUE` (`fcode`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `trim_url_manager`
--


--
-- Table structure for table `user_favorite`
--

CREATE TABLE `user_favorite` (
  `id` int(25) NOT NULL AUTO_INCREMENT,
  `idwebuser` int(25) NOT NULL,
  `idproduct` int(25) NOT NULL,
  `type` varchar(100) NOT NULL DEFAULT 'product',
  `inserttime` timestamp NULL DEFAULT current_timestamp(),
  `fidVariantProduct` int(25) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `index2` (`idwebuser`,`idproduct`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `user_favorite`
--


--
-- Table structure for table `visitors_search_history`
--

CREATE TABLE `visitors_search_history` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `fiduser` bigint(20) DEFAULT NULL,
  `fresult_json` longtext DEFAULT NULL,
  `inserttime` timestamp NULL DEFAULT current_timestamp(),
  `fsearch` varchar(145) DEFAULT NULL,
  `fcount` int(11) DEFAULT 0,
  `fip` varchar(45) DEFAULT NULL,
  `fresultCount` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `visitors_search_history`
--


--
-- Table structure for table `voip_man_lic_tmp`
--

CREATE TABLE `voip_man_lic_tmp` (
  `vl` longtext DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `voip_man_lic_tmp`
--


--
-- Table structure for table `wallet`
--

CREATE TABLE `wallet` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `fidwebuser` bigint(20) DEFAULT NULL,
  `fdeposit` bigint(20) DEFAULT NULL,
  `fwithdrawal` bigint(20) DEFAULT NULL,
  `finserttime` timestamp NOT NULL DEFAULT current_timestamp(),
  `fdesc` longtext DEFAULT NULL,
  `fextra` longtext DEFAULT NULL,
  `fref` varchar(2045) DEFAULT NULL,
  `ftype_ref` varchar(545) DEFAULT NULL,
  `finsertedUser` bigint(20) NOT NULL,
  `finsertedUserFullName` varchar(545) NOT NULL,
  `fdeleted` tinyint(3) NOT NULL DEFAULT 0,
  `fdeleteduser` varchar(545) DEFAULT NULL,
  `fdeletedUserId` bigint(20) DEFAULT NULL,
  `ftranUID` varchar(945) DEFAULT NULL,
  `fidtransaction` varchar(945) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `wallet`
--


--
-- Table structure for table `webuser_bill_address`
--

CREATE TABLE `webuser_bill_address` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `fid_province_cities` int(11) NOT NULL,
  `inserttime` timestamp NULL DEFAULT current_timestamp(),
  `fplak` varchar(45) DEFAULT NULL,
  `fvahed` varchar(45) DEFAULT NULL,
  `fpostalcode` varchar(15) DEFAULT NULL,
  `fname` varchar(145) DEFAULT NULL,
  `fmobile` varchar(45) DEFAULT NULL,
  `flastname` varchar(245) DEFAULT NULL,
  `fstreet` varchar(945) DEFAULT NULL,
  `fdeleted` tinyint(3) DEFAULT 0,
  `factive` tinyint(3) DEFAULT 1,
  `fidwebuser` bigint(20) NOT NULL,
  `fdefault` tinyint(3) DEFAULT NULL,
  `fmapCenter` varchar(145) DEFAULT NULL,
  `fmapAddress` longtext DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `webuser_bill_address`
--


--
-- Table structure for table `webuser_seened`
--

CREATE TABLE `webuser_seened` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `ftype` varchar(50) DEFAULT NULL,
  `updatetime` timestamp NOT NULL DEFAULT current_timestamp(),
  `fref` bigint(20) NOT NULL,
  `idwebuser` int(11) NOT NULL,
  `fcount` int(11) DEFAULT 1,
  PRIMARY KEY (`id`),
  UNIQUE KEY `uniqueview` (`ftype`,`fref`,`idwebuser`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `webuser_seened`
--


--
-- Dumping events for database 'nodatadata5.9.7.13'
--

--
-- Dumping routines for database 'nodatadata5.9.7.13'
--
/*!50003 DROP FUNCTION IF EXISTS `fConvertTimeToInt` */;
DELIMITER ;;
CREATE  FUNCTION `fConvertTimeToInt`(`ch` VARCHAR(6)) RETURNS int(11)
BEGIN
  DECLARE _Result integer;
  SET _Result =  (select ROUND(  ( time_to_sec(ch)/60)  , 0) ) ;
  RETURN _Result  ;
 
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `FFFFCONVERTMILLADYTOGHAMARY` */;
DELIMITER ;;
CREATE  FUNCTION `FFFFCONVERTMILLADYTOGHAMARY`(`dateInput` DATETIME) RETURNS varchar(30) CHARSET utf8mb4 COLLATE utf8mb4_general_ci
BEGIN
  DECLARE _Result varchar(30);
  if length(trim(dateInput))  <4  then
   return '';
  end if;
  if dateInput is null then
   return '';
  end if;
  if  IFNULL(DAYNAME(dateInput) , '') = '' then
 return '';
end if;
  SET _Result = pdate(dateInput);
  RETURN _Result  ;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `FFFFCONVERTMILLADYTOGHAMARY_BYNULL` */;
DELIMITER ;;
CREATE  FUNCTION `FFFFCONVERTMILLADYTOGHAMARY_BYNULL`(`dateInput` varchar(50)) RETURNS varchar(30) CHARSET utf8mb4 COLLATE utf8mb4_general_ci
BEGIN
  DECLARE _Result varchar(30);
 
 if dateInput = 'Invalid Date' then
  return null;
 end if;
 set _Result = ( select CASE
    WHEN dateInput is not null and length(trim(dateInput))  > 8 THEN ffffConvertMilladyToGHamary( dateInput)
    ELSE null
END   ) ;
 
  RETURN _Result  ;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `fMilladyToShamsi_ByTime` */;
DELIMITER ;;
CREATE  FUNCTION `fMilladyToShamsi_ByTime`(`dateInput` DATETIME) RETURNS varchar(30) CHARSET utf8mb4 COLLATE utf8mb4_general_ci
BEGIN
  DECLARE _Result varchar(20);
  if  IFNULL(DAYNAME(dateInput) , '') = '' then
 return '';
end if;
  SET _Result = pdate(dateInput);
  RETURN _Result  ;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `fMilladyToShamsi_NoTime` */;
DELIMITER ;;
CREATE  FUNCTION `fMilladyToShamsi_NoTime`(`dateInput` DATETIME) RETURNS varchar(40) CHARSET utf8mb4 COLLATE utf8mb4_general_ci
BEGIN
  DECLARE _Result varchar(20);
  if  IFNULL(DAYNAME(dateInput) , '') = '' then
 return '';
end if;
  SET _Result = pdate(dateInput);
  RETURN _Result  ;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `fNameConvert` */;
DELIMITER ;;
CREATE  FUNCTION `fNameConvert`(`fname` LONGTEXT CHARSET utf8mb4) RETURNS longtext CHARSET utf8mb4 COLLATE utf8mb4_general_ci
BEGIN

DECLARE Result longtext;
      	
set Result= replace(  CONVERT(fname USING utf8mb4)   ,' ','');
set Result= replace( CONVERT(Result USING utf8mb4) ,'گ','ك');
set Result= replace( CONVERT(Result USING utf8mb4),'ئ','ي');
set Result= replace( CONVERT(Result USING utf8mb4),'آ','ا');
 
set Result= replace( CONVERT(Result USING utf8mb4),'ی','ي');
set Result= replace( CONVERT(Result USING utf8mb4),'ى','ي');
set Result= replace( CONVERT(Result USING utf8mb4),'أ','ا');
set Result= replace( CONVERT(Result USING utf8mb4),'إ','ا');
set Result= replace( CONVERT(Result USING utf8mb4),'ؤ','و');
 
set Result= replace( CONVERT(Result USING utf8mb4),'ک','ك');
 


RETURN  Result;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `gdate` */;
DELIMITER ;;
CREATE  FUNCTION `gdate`(`jy` SMALLINT, `jm` SMALLINT, `jd` SMALLINT) RETURNS datetime
    READS SQL DATA
    DETERMINISTIC
BEGIN




	DECLARE
		i, j, e, k, mo,
		gy, gm, gd,
		g_day_no, j_day_no, bkab, jmm, mday, g_day_mo, bkab1, j1
	INT DEFAULT 0; 
	DECLARE fdate datetime;


  SET bkab = __mymod(jy,33);

  IF (bkab = 1 or bkab= 5 or bkab = 9 or bkab = 13 or bkab = 17 or bkab = 22 or bkab = 26 or bkab = 30) THEN
    SET j=1;
  end IF;

  SET bkab1 = __mymod(jy+1,33);

  IF (bkab1 = 1 or bkab1= 5 or bkab1 = 9 or bkab1 = 13 or bkab1 = 17 or bkab1 = 22 or bkab1 = 26 or bkab1 = 30) THEN
    SET j1=1;
  end IF;

	CASE jm
		WHEN 1 THEN IF jd > _jdmarray2(jm) or jd <= 0 THEN SET e=1; end IF;
		WHEN 2 THEN IF jd > _jdmarray2(jm) or jd <= 0 THEN SET e=1; end IF;
		WHEN 3 THEN IF jd > _jdmarray2(jm) or jd <= 0 THEN SET e=1; end IF;
		WHEN 4 THEN IF jd > _jdmarray2(jm) or jd <= 0 THEN SET e=1; end IF;
		WHEN 5 THEN IF jd > _jdmarray2(jm) or jd <= 0 THEN SET e=1; end IF;
		WHEN 6 THEN IF jd > _jdmarray2(jm) or jd <= 0 THEN SET e=1; end IF;
		WHEN 7 THEN IF jd > _jdmarray2(jm) or jd <= 0 THEN SET e=1; end IF;
		WHEN 8 THEN IF jd > _jdmarray2(jm) or jd <= 0 THEN SET e=1; end IF;
		WHEN 9 THEN IF jd > _jdmarray2(jm) or jd <= 0 THEN SET e=1; end IF;
		WHEN 10 THEN IF jd > _jdmarray2(jm) or jd <= 0 THEN SET e=1; end IF;
		WHEN 11 THEN IF jd > _jdmarray2(jm) or jd <= 0 THEN SET e=1; end IF;
		WHEN 12 THEN IF jd > _jdmarray2(jm)+j or jd <= 0 THEN SET e=1; end IF;
	END CASE;
  IF jm > 12 or jm <= 0 THEN SET e=1; end IF;
  IF jy <= 0 THEN SET e=1; end IF;

  IF e>0 THEN
    RETURN 0;
  end IF;

  IF (jm>=11) or (jm=10 and jd>=11 and j=0) or (jm=10 and jd>11 and j=1) THEN
    SET i=1;
  end IF;
  SET gy = jy + 621 + i;

  IF (__mymod(gy,4)=0) THEN
    SET k=1;
  end IF;

	IF (__mymod(gy,100)=0) and (__mymod(gy,400)<>0) THEN
		SET k=0;
	END IF;

  SET jmm=jm-1;

  WHILE (jmm > 0) do
    SET mday=mday+_jdmarray2(jmm);
    SET jmm=jmm-1;
  end WHILE;

  SET j_day_no=(jy-1)*365+(__mydiv(jy,4))+mday+jd;
  SET g_day_no=j_day_no+226899;


  SET g_day_no=g_day_no-(__mydiv(gy-1,4));
  SET g_day_mo=__mymod(g_day_no,365);

	IF (k=1 and j=1) THEN
		IF (g_day_mo=0) THEN
			RETURN CONCAT_WS('-',gy,'12','30');
		END IF;
		IF (g_day_mo=1) THEN
			RETURN CONCAT_WS('-',gy,'12','31');
		END IF;
	END IF;

	IF (g_day_mo=0) THEN
		RETURN CONCAT_WS('-',gy,'12','31');
	END IF;


  SET mo=0;
  SET gm=gm+1;
  while g_day_mo>_gdmarray2(mo,k) do
		SET g_day_mo=g_day_mo-_gdmarray2(mo,k);
    SET mo=mo+1;
    SET gm=gm+1;
  end WHILE;
  SET gd=g_day_mo;

  RETURN CONCAT_WS('-',gy,gm,gd);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `gdatestr` */;
DELIMITER ;;
CREATE  FUNCTION `gdatestr`(`jdat` CHAR(10)) RETURNS datetime
    READS SQL DATA
    DETERMINISTIC
BEGIN




	DECLARE
		i, j, e, k, mo,
		gy, gm, gd,
		g_day_no, j_day_no, bkab, jmm, mday, g_day_mo, jd, jy, jm,bkab1,j1
	INT DEFAULT 0; 
	DECLARE jdd, jyd, jmd, jt varchar(100);
	DECLARE fdate datetime;

	SET jdd = SUBSTRING_INDEX(jdat, '/', -1);
	SET jt = SUBSTRING_INDEX(jdat, '/', 2);
	SET jyd = SUBSTRING_INDEX(jt, '/', 1);
	SET jmd = SUBSTRING_INDEX(jt, '/', -1);
	SET jd = CAST(jdd as SIGNED);
	SET jy = CAST(jyd as SIGNED);
	SET jm = CAST(jmd as SIGNED);


	 SET bkab = __mymod(jy,33);

  IF (bkab = 1 or bkab= 5 or bkab = 9 or bkab = 13 or bkab = 17 or bkab = 22 or bkab = 26 or bkab = 30) THEN
    SET j=1;
  end IF;

  SET bkab1 = __mymod(jy+1,33);

  IF (bkab1 = 1 or bkab1= 5 or bkab1 = 9 or bkab1 = 13 or bkab1 = 17 or bkab1 = 22 or bkab1 = 26 or bkab1 = 30) THEN
    SET j1=1;
  end IF;

	CASE jm
		WHEN 1 THEN IF jd > _jdmarray2(jm) or jd <= 0 THEN SET e=1; end IF;
		WHEN 2 THEN IF jd > _jdmarray2(jm) or jd <= 0 THEN SET e=1; end IF;
		WHEN 3 THEN IF jd > _jdmarray2(jm) or jd <= 0 THEN SET e=1; end IF;
		WHEN 4 THEN IF jd > _jdmarray2(jm) or jd <= 0 THEN SET e=1; end IF;
		WHEN 5 THEN IF jd > _jdmarray2(jm) or jd <= 0 THEN SET e=1; end IF;
		WHEN 6 THEN IF jd > _jdmarray2(jm) or jd <= 0 THEN SET e=1; end IF;
		WHEN 7 THEN IF jd > _jdmarray2(jm) or jd <= 0 THEN SET e=1; end IF;
		WHEN 8 THEN IF jd > _jdmarray2(jm) or jd <= 0 THEN SET e=1; end IF;
		WHEN 9 THEN IF jd > _jdmarray2(jm) or jd <= 0 THEN SET e=1; end IF;
		WHEN 10 THEN IF jd > _jdmarray2(jm) or jd <= 0 THEN SET e=1; end IF;
		WHEN 11 THEN IF jd > _jdmarray2(jm) or jd <= 0 THEN SET e=1; end IF;
		WHEN 12 THEN IF jd > _jdmarray2(jm)+j or jd <= 0 THEN SET e=1; end IF;
	END CASE;
  IF jm > 12 or jm <= 0 THEN SET e=1; end IF;
  IF jy <= 0 THEN SET e=1; end IF;

  IF e>0 THEN
    RETURN 0;
  end IF;

  IF (jm>=11) or (jm=10 and jd>=11 and j=0) or (jm=10 and jd>11 and j=1) THEN
    SET i=1;
  end IF;
  SET gy = jy + 621 + i;

  IF (__mymod(gy,4)=0) THEN
    SET k=1;
  end IF;

	IF (__mymod(gy,100)=0) and (__mymod(gy,400)<>0) THEN
		SET k=0;
	END IF;

  SET jmm=jm-1;

  WHILE (jmm > 0) do
    SET mday=mday+_jdmarray2(jmm);
    SET jmm=jmm-1;
  end WHILE;

  SET j_day_no=(jy-1)*365+(__mydiv(jy,4))+mday+jd;
  SET g_day_no=j_day_no+226899;


  SET g_day_no=g_day_no-(__mydiv(gy-1,4));
  SET g_day_mo=__mymod(g_day_no,365);

	IF (k=1 and j=1) THEN
		IF (g_day_mo=0) THEN
			RETURN CONCAT_WS('-',gy,'12','30');
		END IF;
		IF (g_day_mo=1) THEN
			RETURN CONCAT_WS('-',gy,'12','31');
		END IF;
	END IF;

	IF (g_day_mo=0) THEN
		RETURN CONCAT_WS('-',gy,'12','31');
	END IF;


  SET mo=0;
  SET gm=gm+1;
  while g_day_mo>_gdmarray2(mo,k) do
		SET g_day_mo=g_day_mo-_gdmarray2(mo,k);
    SET mo=mo+1;
    SET gm=gm+1;
  end WHILE;
  SET gd=g_day_mo;

  RETURN CONCAT_WS('-',gy,gm,gd);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `pdate` */;
DELIMITER ;;
CREATE  FUNCTION `pdate`(`gdate` DATETIME) RETURNS char(100) CHARSET utf8mb3 COLLATE utf8mb3_general_ci
    READS SQL DATA
    DETERMINISTIC
BEGIN




	DECLARE
		i,
		gy, gm, gd,
		g_day_no, j_day_no, j_np,jy INT DEFAULT 0;  
	DECLARE jm, jd INT(2) ZEROFILL DEFAULT 0;
	DECLARE resout char(100);
	DECLARE ttime CHAR(20);

	SET gy = YEAR(gdate) - 1600;
	SET gm = MONTH(gdate) - 1;
	SET gd = DAY(gdate) - 1;
	SET ttime = TIME(gdate);
	SET g_day_no = ((365 * gy) + __mydiv(gy + 3, 4) - __mydiv(gy + 99, 100) + __mydiv (gy + 399, 400));
	SET i = 0;

	WHILE (i < gm) do
		SET g_day_no = g_day_no + _gdmarray(i);
		SET i = i + 1;
	END WHILE;

	IF gm > 1 and ((gy % 4 = 0 and gy % 100 <> 0)) or gy % 400 = 0 THEN
		SET g_day_no =	g_day_no + 1;
	END IF;

	SET g_day_no = g_day_no + gd;
	SET j_day_no = g_day_no - 79;
	SET j_np = j_day_no DIV 12053;
	SET j_day_no = j_day_no % 12053;
	SET jy = 979 + 33 * j_np + 4 * __mydiv(j_day_no, 1461);
	SET j_day_no = j_day_no % 1461;

	IF j_day_no >= 366 then
		SET jy = jy + __mydiv(j_day_no - 1, 365);
		SET j_day_no = (j_day_no - 1) % 365;
	END IF;

	SET i = 0;

	WHILE (i < 11 and j_day_no >= _jdmarray(i)) do
		SET j_day_no = j_day_no - _jdmarray(i);
		SET i = i + 1;
	END WHILE;

	SET jm = i + 1;
	SET jd = j_day_no + 1;
	SET resout = CONCAT_WS ('/', jy, jm, jd);

	IF (ttime <> '00:00:00') then
		SET resout = CONCAT_WS(' ', resout, ttime);
	END IF;

	RETURN resout;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `pday` */;
DELIMITER ;;
CREATE  FUNCTION `pday`(`gdate` DATETIME) RETURNS char(100) CHARSET utf8mb3 COLLATE utf8mb3_general_ci
    READS SQL DATA
    DETERMINISTIC
BEGIN




	DECLARE
		i,
		gy, gm, gd,
		g_day_no, j_day_no, j_np,
		jy, jm, jd INT DEFAULT 0; 

	SET gy = YEAR(gdate) - 1600;
	SET gm = MONTH(gdate) - 1;
	SET gd = DAY(gdate) - 1;
	SET g_day_no = ((365 * gy) + __mydiv(gy + 3, 4) - __mydiv(gy + 99 , 100) + __mydiv(gy + 399, 400));
	SET i = 0;

	WHILE (i < gm) do
		SET g_day_no = g_day_no + _gdmarray(i);
		SET i = i + 1;
	END WHILE;

	IF gm > 1 and ((gy % 4 = 0 and gy % 100 <> 0)) or gy % 400 = 0 THEN
		SET g_day_no = g_day_no + 1;
	END IF;

	SET g_day_no = g_day_no + gd;
	SET j_day_no = g_day_no - 79;
	SET j_np = j_day_no DIV 12053;
	SET j_day_no = j_day_no % 12053;
	SET jy = 979 + 33 * j_np + 4 * __mydiv(j_day_no, 1461);
	SET j_day_no = j_day_no % 1461;

	IF j_day_no >= 366 then
		SET jy = jy + __mydiv(j_day_no - 1, 365);
		SET j_day_no = (j_day_no-1) % 365;
	END IF;

	SET i = 0;

	WHILE (i < 11 and j_day_no >= _jdmarray(i)) do
		SET j_day_no = j_day_no - _jdmarray(i);
		SET i = i + 1;
	END WHILE;

	SET jm = i + 1;
	SET jd = j_day_no + 1;
	RETURN jd;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `PMONTH` */;
DELIMITER ;;
CREATE  FUNCTION `PMONTH`(`gdate` DATETIME) RETURNS char(100) CHARSET utf8mb3 COLLATE utf8mb3_general_ci
    READS SQL DATA
    DETERMINISTIC
BEGIN




	DECLARE
		i,
		gy, gm, gd,
		g_day_no, j_day_no, j_np,
		jy, jm, jd INT DEFAULT 0; 

	SET gy = YEAR(gdate) - 1600;
	SET gm = MONTH(gdate) - 1;
	SET gd = DAY(gdate) - 1;
	SET g_day_no = ((365 * gy) + __mydiv(gy + 3, 4) - __mydiv(gy + 99, 100) + __mydiv(gy + 399, 400));
	SET i = 0;

	WHILE (i < gm) do
		SET g_day_no = g_day_no + _gdmarray(i);
		SET i = i + 1;
	END WHILE;

	IF gm > 1 and ((gy % 4 = 0 and gy % 100 <> 0)) or gy % 400 = 0 THEN
		SET g_day_no = g_day_no + 1;
	END IF;

	SET g_day_no = g_day_no + gd;
	SET j_day_no = g_day_no - 79;
	SET j_np = j_day_no DIV 12053;
	set j_day_no = j_day_no % 12053;
	SET jy = 979 + 33 * j_np + 4 * __mydiv(j_day_no, 1461);
	SET j_day_no = j_day_no % 1461;

	IF j_day_no >= 366 then
		SET jy = jy + __mydiv(j_day_no - 1, 365);
		SET j_day_no =(j_day_no - 1) % 365;
	END IF;

	SET i = 0;

	WHILE (i < 11 and j_day_no >= _jdmarray(i)) do
		SET j_day_no = j_day_no - _jdmarray(i);
		SET i = i + 1;
	END WHILE;

	SET jm = i + 1;
	SET jd = j_day_no + 1;
	RETURN jm;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `pmonthname` */;
DELIMITER ;;
CREATE  FUNCTION `pmonthname`(`gdate` DATETIME) RETURNS varchar(100) CHARSET utf8mb3 COLLATE utf8mb3_general_ci
    READS SQL DATA
    DETERMINISTIC
BEGIN




	CASE PMONTH(gdate)
		WHEN 1 THEN RETURN 'فروردین';
		WHEN 2 THEN RETURN 'اردیبهشت';
		WHEN 3 THEN	RETURN 'خرداد';
		WHEN 4 THEN	RETURN 'تیر';
		WHEN 5 THEN	RETURN 'مرداد';
		WHEN 6 THEN	RETURN 'شهریور';
		WHEN 7 THEN	RETURN 'مهر';
		WHEN 8 THEN	RETURN 'آبان';
		WHEN 9 THEN	RETURN 'آذر';
		WHEN 10 THEN RETURN	'دی';
		WHEN 11 THEN RETURN	'بهمن';
		WHEN 12 THEN RETURN	'اسفند';
	END CASE;

END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `pyear` */;
DELIMITER ;;
CREATE  FUNCTION `pyear`(`gdate` DATETIME) RETURNS char(100) CHARSET utf8mb3 COLLATE utf8mb3_general_ci
    READS SQL DATA
    DETERMINISTIC
BEGIN




	DECLARE
		i,
		gy, gm, gd,
		g_day_no, j_day_no, j_np,
		jy, jm, jd INT DEFAULT 0; 

	SET gy = YEAR(gdate) - 1600;
	SET gm = MONTH(gdate) - 1;
	SET gd = DAY(gdate) - 1;
	SET g_day_no = ((365 * gy) + __mydiv(gy + 3, 4) - __mydiv(gy + 99, 100) + __mydiv(gy + 399, 400));
	SET i = 0;

	WHILE (i < gm) do
		SET g_day_no = g_day_no + _gdmarray(i);
		SET i = i + 1;
	END WHILE;

	IF gm > 1 and ((gy % 4 = 0 and gy % 100 <> 0)) or gy % 400 = 0 THEN
		SET g_day_no =	g_day_no + 1;
	END IF;

	SET g_day_no = g_day_no + gd;
	SET j_day_no = g_day_no - 79;
	SET j_np = j_day_no DIV 12053;
	set j_day_no = j_day_no % 12053;
	SET jy = 979 + 33 * j_np + 4 * __mydiv(j_day_no, 1461);
	SET j_day_no = j_day_no % 1461;

	IF j_day_no >= 366 then
		SET jy = jy + __mydiv(j_day_no - 1, 365);
		SET j_day_no = (j_day_no - 1) % 365;
	END IF;

	SET i = 0;

	WHILE (i < 11 and j_day_no >= _jdmarray(i)) do
		SET j_day_no = j_day_no - _jdmarray(i);
		SET i = i + 1;
	END WHILE;

	SET jm = i + 1;
	SET jd = j_day_no + 1;
	RETURN jy;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `RETURNBILLPRICE` */;
DELIMITER ;;
CREATE  FUNCTION `RETURNBILLPRICE`(`idbill` bigint  ) RETURNS bigint(20)
BEGIN

DECLARE Result bigint;
      	
set Result=  (select sum( fprice) from billing_details where fidbilling = idbill and fdeleted=0 ) ;


RETURN  Result;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `RETURNBILLPRODUCTSIMAGE` */;
DELIMITER ;;
CREATE  FUNCTION `RETURNBILLPRODUCTSIMAGE`(`idbill` bigint  ) RETURNS longtext CHARSET utf8mb4 COLLATE utf8mb4_general_ci
BEGIN

DECLARE Result longtext  CHARSET utf8mb4 COLLATE utf8mb4_general_ci;
      	
set Result=  (SELECT JSON_ARRAYAGG(JSON_OBJECT('fimage', fimage )) from billing_details  where fimage != ' ' and   fidbilling = idbill and fdeleted=0 ) ;



RETURN  Result;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `RETURNproducts_varients_extra` */;
DELIMITER ;;
CREATE  FUNCTION `RETURNproducts_varients_extra`(`idvarient` bigint  ) RETURNS longtext CHARSET utf8mb4 COLLATE utf8mb4_general_ci
BEGIN

DECLARE Result longtext  CHARSET utf8mb4;
      	
set Result=  (SELECT JSON_ARRAYAGG(JSON_OBJECT('fkey', fkey , 'fval' , fval )) from products_varients_extra  where    fproduct_varient_id = idvarient  ) ;



RETURN  Result;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `returnrate_like_dislike` */;
DELIMITER ;;
CREATE  FUNCTION `returnrate_like_dislike`(f_status varchar(50) CHARSET utf8mb4 , f_idreview_and_rate bigint   ) RETURNS bigint(20)
BEGIN

DECLARE Result bigint;
      	
set Result=  (select count(*) from  tbl_review_and_rate_like_dislike  where fstatus = f_status  and  fidreview_and_rate = f_idreview_and_rate )    ;

 

RETURN  Result;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `returnrate_like_dislike_questions` */;
DELIMITER ;;
CREATE  FUNCTION `returnrate_like_dislike_questions`(f_status varchar(50)  , f_idquestions bigint   ) RETURNS bigint(20)
BEGIN

DECLARE Result bigint;
      	
set Result=  (select count(*) from  questions_like_dislike  where fstatus = f_status  and  fidquestions = f_idquestions )    ;

 

RETURN  Result;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `RETURNSTOCK_QUANTITY` */;
DELIMITER ;;
CREATE  FUNCTION `RETURNSTOCK_QUANTITY`(`i_dproduct` bigint ,  `f_stock_quantity` bigint ) RETURNS bigint(20)
BEGIN

DECLARE Result bigint;
       
		
				
						set Result = (select   max( fstock_quantity ) from products_varients  where  fidproduct = i_dproduct  and fdeleted = 0 and fManage_stock_quantity = 1 ) ;
				
				
         
RETURN  ifnull( Result , 0 );
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `RETURN_BRANDIMAGEBYID` */;
DELIMITER ;;
CREATE  FUNCTION `RETURN_BRANDIMAGEBYID`(f_id bigint    ) RETURNS varchar(2050) CHARSET utf8mb4 COLLATE utf8mb4_general_ci
BEGIN

DECLARE Result varchar(2050);
      	
set Result=  (select   fimages  from  product_brand   where  id= f_id   )   ;

 

RETURN  Result;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `RETURN_BRANDNAMEBYID` */;
DELIMITER ;;
CREATE  FUNCTION `RETURN_BRANDNAMEBYID`(f_id bigint    ) RETURNS varchar(2050) CHARSET utf8mb4 COLLATE utf8mb4_general_ci
BEGIN

DECLARE Result varchar(2050) CHARSET utf8mb4 ;
      	
set Result=  (select  fname   from  product_brand   where  id = f_id and fdeleted= 0 and factive = 1   )   ;

 

RETURN  Result;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `RETURN_CARRIERNAMEBYID` */;
DELIMITER ;;
CREATE  FUNCTION `RETURN_CARRIERNAMEBYID`(f_id varchar(2050) CHARSET utf8mb4    ) RETURNS varchar(2050) CHARSET utf8mb4 COLLATE utf8mb4_general_ci
BEGIN

DECLARE Result longtext CHARSET utf8mb4 ;
      	
 


if  length(f_id) > 0 then
 set Result=   (select  JSON_ARRAYAGG(JSON_OBJECT('id', id , 'factive', factive , 'fextra', fextra  , 'fname', fname  ,  'fimages',
 fimages, 'fidstore' , fidstore ,  'storeName' , (select fname from stores  where id =fidstore ) ))  as CARRIERS
 from billcarriermethods where  FIND_IN_SET(id ,f_id)   and
fdeleted = 0     )    ;

else
 set Result= null ;
end if ;


 
        
        
        
        
 

RETURN  Result;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `RETURN_CATEGURY_ALL_CHILDS_IDS_STR` */;
DELIMITER ;;
CREATE  FUNCTION `RETURN_CATEGURY_ALL_CHILDS_IDS_STR`(fid_catag bigint , f_type varchar (200) CHARSET utf8mb4   ) RETURNS varchar(2000) CHARSET utf8mb4 COLLATE utf8mb4_general_ci
BEGIN
 
DECLARE Result  varchar(2000) CHARSET utf8mb4;
 DECLARE childs  varchar(2000) CHARSET utf8mb4;

 
if f_type !=  'product' then 
 return null;
end if;


  
  
  
  set Result = ( with q1 as (SELECT id FROM postscatag where  ( fid_catag = fparent      )    ),
    q2 as (select id from postscatag where fparent in (select id from q1)   ),
    q3 as (select id from postscatag where fparent in (select id from q2)  ),
    q4 as (select id from postscatag where fparent in (select id from q3)   ) ,
    q5 as (select id from postscatag where fparent in (select id from q4)   ) ,
  res as  (select fid_catag as id  union all select * from q1   union all    select * from q2    union all    select * from q3   union all     select * from q4   union all     select * from q5 ) 
  select group_concat(id  )  from  res ) ;
 
 
 
 

 
RETURN    ifnull(Result , '') ;

END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `RETURN_CATEGURY_CHILDS_STR_ID` */;
DELIMITER ;;
CREATE  FUNCTION `RETURN_CATEGURY_CHILDS_STR_ID`(fid_catag bigint    ) RETURNS varchar(2000) CHARSET utf8mb4 COLLATE utf8mb4_general_ci
BEGIN
 
DECLARE Result  varchar(2000) CHARSET utf8mb4;
 
 
set Result = (  select  GROUP_CONCAT( id  )from 
 (select  id  from postscatag WHERE id = fid_catag 
 union all
 select      parent_id
from   (SELECT @r AS catag_id, 
   (SELECT @r := fparent    FROM postscatag WHERE id = catag_id) AS parent_id, 
   
   @l := @l + 1 AS level 
 FROM (SELECT @r := fid_catag , @l := 0) val, postscatag WHERE @r <> 0 ) as tbl ) as tb where id <> 0 ) ;
 
 


 
RETURN  ifnull( Result ,  0 );

END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `RETURN_CATEGURY_PARENTS_STR` */;
DELIMITER ;;
CREATE  FUNCTION `RETURN_CATEGURY_PARENTS_STR`(fid_catag bigint    ) RETURNS varchar(2000) CHARSET utf8mb4 COLLATE utf8mb4_general_ci
BEGIN
DECLARE Result  varchar(2000) CHARSET utf8mb4;
 declare RootCatag    	 varchar(2000) CHARSET utf8mb4;
 
 set RootCatag  = (select fname from postscatag WHERE id = fid_catag) ;
 
set Result = ( select   GROUP_CONCAT( distinct   parent_name ) as id_group
from   (SELECT @r AS catag_id, 
   (SELECT @r := fparent    FROM postscatag WHERE id = catag_id) AS parent_id, 
    (SELECT  @n := fname  FROM postscatag WHERE id = catag_id) AS parent_name, 
   @l := @l + 1 AS level 
 FROM (SELECT @r := fid_catag, @l := 0) val, postscatag WHERE @r <> 0 ) as tbl  ) ;
 
if Result is null then
set Result = RootCatag ;
else
set Result = concat ( RootCatag ,',' ,Result  ) ;
end if ;



RETURN  replace(   CONVERT(Result USING utf8)  , "," , " / " );
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `RETURN_CATEGURY_PRODUCT_IMAGE` */;
DELIMITER ;;
CREATE  FUNCTION `RETURN_CATEGURY_PRODUCT_IMAGE`(fid_catag bigint , f_type varchar (200) CHARSET utf8mb4   ) RETURNS varchar(2000) CHARSET utf8mb4 COLLATE utf8mb4_general_ci
BEGIN
 
DECLARE Result  varchar(2000) CHARSET utf8mb4;
 DECLARE childs  varchar(2000) CHARSET utf8mb4;

 
if f_type !=  'product' then 
 return null;
end if;


 
 
 
 
 set Result = (select fimages from products where fimages is not null  and  
    fidCateg  = fid_catag   order by fsuggests  limit 1) ;
    
     if  Result is   null  then 
     
   set childs =  (  SELECT   GROUP_CONCAT( id  )   FROM postscatag WHERE fparent = fid_catag  ) ;
     set Result = (select fimages from products where fimages is not null  and FIND_IN_SET(fidCateg , childs ) > 0    order by fsuggests  limit 1) ;
     end if;

 
RETURN    ifnull(Result , '') ;

END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `return_full_address_from_webuser_bill_address` */;
DELIMITER ;;
CREATE  FUNCTION `return_full_address_from_webuser_bill_address`(`i_d` bigint  ) RETURNS varchar(3500) CHARSET utf8mb4 COLLATE utf8mb4_general_ci
BEGIN

DECLARE Result  varchar(3500) CHARSET utf8mb4;
      	
set Result=  (select  concat( ostan.title , "/ شهر:", city.title , "/ خیابان:" ,addr.fstreet  , "/ پلاک:" ,addr.fplak , "/ واحد:" ,addr.fvahed , "/ کدپستی:" ,addr.fpostalcode 
, "/ گیرنده:" , addr.fname , " " , addr.flastname , "/ موبایل:" ,addr.fmobile )  as fullAddress  from webuser_bill_address as addr inner 
      join province_cities as city on city.id = addr.fid_province_cities inner join province_cities as ostan 
      on ostan.id = city.parent  where     addr.id= i_d  ) ;


RETURN  Result;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `RETURN_MARSOLE_REAL_STATUS_STR` */;
DELIMITER ;;
CREATE  FUNCTION `RETURN_MARSOLE_REAL_STATUS_STR`(fid_Marsole bigint    ) RETURNS varchar(2000) CHARSET utf8mb4 COLLATE utf8mb4_general_ci
BEGIN
DECLARE Result  varchar(2000) CHARSET utf8mb4;


  set Result =  ( SELECT    GROUP_CONCAT( md.fstatus  SEPARATOR ', ') as AllStatus  from  ( SELECT     md.fstatus    from  billing_marsole_details as md 
      inner join billing_details as bd on bd.id = md.fidbilling_details
    where md.fidmarsole = fid_Marsole  group by md.fstatus  )  as md ) ;
 
if Result is null then
set Result =  'NAn' ;
end if ;



RETURN Result ;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `RETURN_PRODUCT_COLORS` */;
DELIMITER ;;
CREATE  FUNCTION `RETURN_PRODUCT_COLORS`(f_idproduct bigint   ) RETURNS longtext CHARSET utf8mb4 COLLATE utf8mb4_general_ci
BEGIN
 
DECLARE Result longtext CHARSET utf8mb4 ;
 


declare isvariantColor integer ;

set isvariantColor = (select  ifnull(count(*) , 0 )  from products as p inner join product_attribute as pa on pa.idproduct = p.id and pa.fview_mode="color"   );

if isvariantColor > 0 then 
set Result =( SELECT   (CASE `pa`.`fenable_variation`
            WHEN    1  THEN  (SELECT 
                        JSON_ARRAYAGG(JSON_OBJECT('id',
                                            `product_attribute_variant`.`id`,
                                            'fvalue',
                                            `product_attribute_variant`.`fvalue`,
                                            'fdesc',
                                            `product_attribute_variant`.`fdesc`))
                    FROM
                        `product_attribute_variant`
                    WHERE
                        (`product_attribute_variant`.`fidproduct_attribute` = `pa`.`id`))
            ELSE  ''
        END) AS `jsonValue`
        
    FROM
        (`product_attribute` `pa`
        JOIN `product_allattribute` `paa` ON ((`paa`.`id` = `pa`.`idatribute`))) 
        where  pa.idproduct = f_idproduct and pa.fview_mode = 'color' );
        
        
end if ;        
        
        
        
 
 
return Result;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `RETURN_PRODUCT_COMISSION_SELLER` */;
DELIMITER ;;
CREATE  FUNCTION `RETURN_PRODUCT_COMISSION_SELLER`(f_idproduct bigint  , f_idStore  int  ) RETURNS int(5)
BEGIN
 
DECLARE Result int(5);

	  set Result = ( select fcomissionP  from stores where id = f_idStore ); 
      if Result is not null and result > 0 then 
      RETURN   Result   ;
      end if ;
      
      
      set Result = ( select fcomissionP  from products where id = f_idproduct ); 
      if Result is not null and result > 0 then 
      RETURN   Result   ;
      end if ;
      
	  set Result = ( select fcomissionP  from postscatag where id = ( select  ifnull(fidCateg , 0 )    from products where id = f_idproduct ) ); 
      if Result is not null and result > 0 then 
      RETURN   Result   ;
      end if ;
      
      
 
RETURN ifnull(Result , 0 ) ;

END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `RETURN_PRODUCT_IN_ORDER_COUNT` */;
DELIMITER ;;
CREATE  FUNCTION `RETURN_PRODUCT_IN_ORDER_COUNT`(f_idproduct bigint    ) RETURNS bigint(20)
BEGIN

DECLARE Result bigint;
      	
set Result=  (SELECT   sum(fcount ) from  billing_details where fidproduct=f_idproduct and fstatus = 'AwaitingPayment' and fdeleted = 0   )    ;

 

RETURN ifnull(Result , 0 ) ;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `RETURN_PRODUCT_PRICEUNIT` */;
DELIMITER ;;
CREATE  FUNCTION `RETURN_PRODUCT_PRICEUNIT`(f_idproduct bigint  , f_is_amazing  int  ) RETURNS bigint(20)
BEGIN
 
DECLARE Result bigint;
DECLARE Result_1 bigint;
DECLARE var_foff int;
DECLARE var_amazing_foff int;
DECLARE var_fprice int;
DECLARE var_fronding int;
DECLARE var_amazing_startDate  datetime;
DECLARE var_amazing_endDate  datetime;
DECLARE var_fManage_stock_quantity int;
DECLARE var_fstock_quantity int;
DECLARE var_instock int  ;
declare AllFields  longtext CHARSET utf8mb4 ; 
set Result =0 ;
set Result_1 =0;
set var_instock =0 ;



 

set AllFields = ( select  CONCAT( fManage_stock_quantity,'___#____',ifnull(fstock_quantity,0) ,'___#____', ifnull(fronding,0)  ,'___#____', ifnull(foff,0) ,'___#____',ifnull(fprice,0),
'___#____', ifnull(STR_TO_DATE(amazing_startDate, '%Y-%m-%d %H:%i:%s'), null) ,'___#____', ifnull(STR_TO_DATE(amazing_endDate, '%Y-%m-%d %H:%i:%s'), null),'___#____', ifnull(amazing_foff,0))  as res
from products_varients where id = f_idproduct );

set var_fManage_stock_quantity =( SELECT SPLIT_STR(AllFields,'___#____',1));
 set var_fstock_quantity =( SELECT SPLIT_STR(AllFields,'___#____',2));
  set var_fronding =( SELECT SPLIT_STR(AllFields,'___#____',3));
  set var_foff =( SELECT SPLIT_STR(AllFields,'___#____',4));
  set var_fprice =( SELECT SPLIT_STR(AllFields,'___#____',5));
  set var_amazing_startDate =( SELECT SPLIT_STR(AllFields,'___#____',6));
 set var_amazing_endDate =( SELECT SPLIT_STR(AllFields,'___#____',7));
 set var_amazing_foff =( SELECT SPLIT_STR(AllFields,'___#____',8));


  if  ( (var_fManage_stock_quantity= 1 and  var_fstock_quantity > 0) or 
        (var_fManage_stock_quantity= 0 or  var_fManage_stock_quantity is null )) then 
		set var_instock = 1 ;
  end if ;
  
  if var_instock = 0 then 
    RETURN  null ;
  end if ;
  
	
  
  
 
	set Result_1 = ( ROUND(( var_fprice  - ( var_fprice  * ( var_foff  / 100))),   0) );

if  f_is_amazing  = 1  then
	
 
    
    
    
    
    
	if  var_amazing_foff >0 and var_amazing_endDate is not null and  var_amazing_startDate is not null  then
		if var_amazing_endDate >  var_amazing_startDate  and TIMESTAMPDIFF(MINUTE,NOW(),var_amazing_endDate) > 1  then
			set Result_1 = ( ROUND(( var_fprice  - ( var_fprice  * ( var_amazing_foff  / 100))),   0) );
        end if;
    end if;
end if;

  if Result_1 - var_fronding >= 1000 then
  set Result_1 =  Result_1 - var_fronding ;
 
  end if;
      	
set Result= Result_1   ;

 

RETURN ifnull(Result , 0 ) ;

END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `RETURN_PRODUCT_SELL_COUNT` */;
DELIMITER ;;
CREATE  FUNCTION `RETURN_PRODUCT_SELL_COUNT`(f_idproduct bigint    ) RETURNS bigint(20)
BEGIN

DECLARE Result bigint;
      	
set Result=  (SELECT   sum(fcount ) from  billing_details where fidproduct=f_idproduct and fstatus = 'Completed' and fdeleted = 0   )    ;

 

RETURN ifnull(Result , 0 ) ;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `RETURN_PRODUCT_VARIENTJSON` */;
DELIMITER ;;
CREATE  FUNCTION `RETURN_PRODUCT_VARIENTJSON`(f_idproduct bigint    ) RETURNS longtext CHARSET utf8mb4 COLLATE utf8mb4_general_ci
BEGIN

DECLARE Result longtext CHARSET utf8mb4;
      	
 DECLARE exteraMonitorng longtext CHARSET utf8mb4;
 
 
 
 
 
 
 




 set Result=   (select  JSON_ARRAYAGG(JSON_OBJECT('id', id , 'factive', factive , 'fprice', fprice ,'fcanShappingBySeller', fcanShappingBySeller ,
 'fcanShappingByMainStore', fcanShappingByMainStore , 'fManage_stock_quantity', fManage_stock_quantity , 'fstock_quantity', fstock_quantity  ))  as variant
 from products_varients where  fidproduct = f_idproduct   and
fdeleted = 0    order by fprice desc )    ;

RETURN  (Result   ) ;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `return_storeIdByWebuserId` */;
DELIMITER ;;
CREATE  FUNCTION `return_storeIdByWebuserId`(f_idwebuser bigint    ) RETURNS int(11)
BEGIN

DECLARE Result  int(11);
      	
set Result=  (select  id  from  stores   where  fidwebuser= f_idwebuser   )   ;

 

RETURN  Result;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `return_STORENAMEById` */;
DELIMITER ;;
CREATE  FUNCTION `return_STORENAMEById`(f_idStore bigint    ) RETURNS varchar(250) CHARSET utf8mb4 COLLATE utf8mb4_general_ci
BEGIN

DECLARE Result varchar(50)  CHARSET utf8mb4;
      	
set Result=  (select  fname     from   stores   where  id= f_idStore   )   ;

 

RETURN  ifnull( Result , "---") ;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `return_userFullNameById` */;
DELIMITER ;;
CREATE  FUNCTION `return_userFullNameById`(f_idwebuser bigint    ) RETURNS varchar(250) CHARSET utf8mb4 COLLATE utf8mb4_general_ci
BEGIN

DECLARE Result varchar(50)  CHARSET utf8mb4;
      	
set Result=  (select  concat( FldName , ' ' ,FldLastName )  from  tblwebusers   where  FldId= f_idwebuser   )   ;

 

RETURN  Result;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `return_USernameById` */;
DELIMITER ;;
CREATE  FUNCTION `return_USernameById`(f_idwebuser bigint    ) RETURNS varchar(250) CHARSET utf8mb4 COLLATE utf8mb4_general_ci
BEGIN

DECLARE Result varchar(50)  CHARSET utf8mb4;
      	
set Result=  (select  FldUsername    from  tblwebusers   where  FldId= f_idwebuser   )   ;

 

RETURN  ifnull( Result , "---") ;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `return_user_status_rate_like_dislike` */;
DELIMITER ;;
CREATE  FUNCTION `return_user_status_rate_like_dislike`(f_idwebuser bigint ,  f_idreview_and_rate bigint   ) RETURNS varchar(50) CHARSET utf8mb4 COLLATE utf8mb4_general_ci
BEGIN

DECLARE Result varchar(50);
      	
set Result=  (select fstatus from  tbl_review_and_rate_like_dislike  where fidwebuser = f_idwebuser  and  fidreview_and_rate = f_idreview_and_rate )    ;

 

RETURN  Result;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `return_user_status_rate_like_dislike_questions` */;
DELIMITER ;;
CREATE  FUNCTION `return_user_status_rate_like_dislike_questions`(f_idwebuser bigint ,  f_idquestions bigint   ) RETURNS varchar(50) CHARSET utf8mb4 COLLATE utf8mb4_general_ci
BEGIN

DECLARE Result varchar(50);
      	
set Result=  (select fstatus from  questions_like_dislike  where fidwebuser = f_idwebuser  and  fidquestions = f_idquestions )    ;

 

RETURN  Result;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `SPLIT_STR` */;
DELIMITER ;;
CREATE  FUNCTION `SPLIT_STR`(id_list VARCHAR(2000)  CHARSET utf8mb4, delimeter VARCHAR(20)  CHARSET utf8mb4, position INT) RETURNS varchar(10) CHARSET utf8mb4 COLLATE utf8mb4_general_ci
    DETERMINISTIC
BEGIN
    RETURN REPLACE(SUBSTRING(SUBSTRING_INDEX(id_list, delimeter, position),
                             LENGTH(SUBSTRING_INDEX(id_list, delimeter, position - 1)) + 1),
                   delimeter, '');
  END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `_gdmarray` */;
DELIMITER ;;
CREATE  FUNCTION `_gdmarray`(`m` SMALLINT) RETURNS smallint(6)
    READS SQL DATA
    DETERMINISTIC
BEGIN




	CASE m
		WHEN 0 THEN RETURN 31;
		WHEN 1 THEN RETURN 28;
		WHEN 2 THEN RETURN 31;
		WHEN 3 THEN RETURN 30;
		WHEN 4 THEN RETURN 31;
		WHEN 5 THEN RETURN 30;
		WHEN 6 THEN RETURN 31;
		WHEN 7 THEN RETURN 31;
		WHEN 8 THEN RETURN 30;
		WHEN 9 THEN RETURN 31;
		WHEN 10 THEN RETURN 30;
		WHEN 11 THEN RETURN 31;
	END CASE;

END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `_gdmarray2` */;
DELIMITER ;;
CREATE  FUNCTION `_gdmarray2`(`m` SMALLINT, `k` SMALLINT) RETURNS smallint(6)
    READS SQL DATA
    DETERMINISTIC
BEGIN




	CASE m
		WHEN 0 THEN RETURN 31;
		WHEN 1 THEN RETURN 28+k;
		WHEN 2 THEN RETURN 31;
		WHEN 3 THEN RETURN 30;
		WHEN 4 THEN RETURN 31;
		WHEN 5 THEN RETURN 30;
		WHEN 6 THEN RETURN 31;
		WHEN 7 THEN RETURN 31;
		WHEN 8 THEN RETURN 30;
		WHEN 9 THEN RETURN 31;
		WHEN 10 THEN RETURN 30;
		WHEN 11 THEN RETURN 31;
	END CASE;


END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `_jdmarray` */;
DELIMITER ;;
CREATE  FUNCTION `_jdmarray`(`m` SMALLINT) RETURNS smallint(6)
    READS SQL DATA
    DETERMINISTIC
BEGIN




	CASE m
		WHEN 0 THEN RETURN 31;
		WHEN 1 THEN RETURN 31;
		WHEN 2 THEN RETURN 31;
		WHEN 3 THEN RETURN 31;
		WHEN 4 THEN RETURN 31;
		WHEN 5 THEN RETURN 31;
		WHEN 6 THEN RETURN 30;
		WHEN 7 THEN RETURN 30;
		WHEN 8 THEN RETURN 30;
		WHEN 9 THEN RETURN 30;
		WHEN 10 THEN RETURN 30;
		WHEN 11 THEN RETURN 29;
	END CASE;

END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `_jdmarray2` */;
DELIMITER ;;
CREATE  FUNCTION `_jdmarray2`(`m` SMALLINT) RETURNS smallint(6)
    READS SQL DATA
    DETERMINISTIC
BEGIN




	CASE m
		WHEN 1 THEN RETURN 31;
		WHEN 2 THEN RETURN 31;
		WHEN 3 THEN RETURN 31;
		WHEN 4 THEN RETURN 31;
		WHEN 5 THEN RETURN 31;
		WHEN 6 THEN RETURN 31;
		WHEN 7 THEN RETURN 30;
		WHEN 8 THEN RETURN 30;
		WHEN 9 THEN RETURN 30;
		WHEN 10 THEN RETURN 30;
		WHEN 11 THEN RETURN 30;
		WHEN 12 THEN RETURN 29;
	END CASE;

END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `__mydiv` */;
DELIMITER ;;
CREATE  FUNCTION `__mydiv`(`a` INT, `b` INT) RETURNS bigint(20)
    READS SQL DATA
    DETERMINISTIC
BEGIN




	return FLOOR(a / b);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `__mymod` */;
DELIMITER ;;
CREATE  FUNCTION `__mymod`(`a` INT, `b` INT) RETURNS bigint(20)
    READS SQL DATA
    DETERMINISTIC
BEGIN




	return (a - b * FLOOR(a / b));
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `clearAllData` */;
DELIMITER ;;
CREATE  PROCEDURE `clearAllData`()
BEGIN
 SET FOREIGN_KEY_CHECKS = 0;
delete  FROM  pages where   fauthor  != 'code-man'  ;
delete  FROM posts  where  fauthor  != 'code-man' ;
delete  FROM products    ;
delete  FROM postscatag  where   fauthor != 'code-man' ; 
delete  FROM tbl_faq   where   fauthor != 'code-man';
delete  FROM codemandata  where   fauthor != 'code-man';
delete  FROM codeman_messages   where   id > 1;
  delete from _portalsassions ; 
 delete from agis ; 
 delete from all_search_objects ; 
 delete from allsmssended ; 
 delete from billcarriermethods ; 
 delete from billcoupon ; 
 delete from billcoupon_used ; 
 delete from billing ; 
 delete from billing_details ; 
 delete from billing_state_history ; 
 delete from billpaymethods ; 
 delete from buy_basket ; 
 delete from buy_basket_next ; 
 delete from callerid_customers_gotodell ; 
 delete from cnntodb_settings ; 
 delete from codeman_tiketdetails ; 
 delete from codeman_tikets ; 
 delete from codeman_tiketstypes ; 
 delete from customers ; 
 delete from emailsend_settings ; 
 delete from excelemails_list ; 
 delete from factory_product ; 
 delete from general_components ; 
 delete from layouts_html ; 
 delete from lic ; 
 delete from logtable ; 
 delete from moduls ; 
 delete from modulssettings ; 
 delete from nobat_allnobats ; 
 delete from nobat_level1 ; 
 delete from nobat_level2_items ; 
 delete from nobat_level3_items ; 
 delete from nobat_level4_items ; 
 delete from nobat_logforallcalls ; 
 delete from nobat_usermanange ; 
 delete from orders ; 
 delete from post_comments ; 
 delete from product_allattribute ; 
 delete from product_attribute ; 
 delete from product_attribute_variant ; 
 delete from product_brand ; 
 delete from product_download_manager ; 
 delete from product_imagegallery ; 
 delete from products_log ; 
 delete from province_cities ; 
 delete from rating ; 
 delete from redirect_url_manager ; 
 delete from reports ; 
 delete from sendedemail ; 
 delete from sendedsms ; 
 delete from services ; 
 delete from tbl_demoreques ; 
 delete from tbl_forms ; 
 delete from tbl_forms_resuls ; 
 delete from tbl_review_and_rate ; 
 delete from tbl_review_and_rate_like_dislike ; 
 delete from tbl_unsubscribe ; 
 delete from tbl_utm ; 
 delete from tblholidays ; 
 delete from tblinstagram ; 
 delete from tblsounds ; 
 delete from tbluserlogininfo ; 
 delete from tblusers ; 
 delete from tblvoipserverinfo ; 
 delete from tblwebusers ; 
 delete from tempactivatecode ; 
 delete from transactions ; 
 delete from user_favorite ; 
 delete from visitors_search_history ; 
 delete from voip_man_lic_tmp ; 
 delete from wallet ; 
 delete from webuser_bill_address ; 

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `FillDataModulsById` */;
DELIMITER ;;
CREATE  PROCEDURE `FillDataModulsById`(IN `Fldid` INT)
BEGIN
SELECT * From  agis  where FldidModuls=Fldid  and flddeleted = 0 ;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `getadmindashboardmsg` */;
DELIMITER ;;
CREATE  PROCEDURE `getadmindashboardmsg`()
BEGIN
 
  SELECT  * from    codeman_messages   where  fdeleted=0 and  factive =1  ;  


END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `log_msg` */;
DELIMITER ;;
CREATE  PROCEDURE `log_msg`(IN `msg` VARCHAR(255) CHARSET utf8mb4)
BEGIN
 insert into logtable select 0, msg;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `ProductForAddViewBasket` */;
DELIMITER ;;
CREATE  PROCEDURE `ProductForAddViewBasket`(
IN f_count int ,
IN f_id  bigint
 )
BEGIN
 
  select  v.id ,
       p.fname ,
       v.fprice ,
      ROUND(( v.fprice  - ( v.fprice  * ( foff  / 100))),
              0) AS  fpriceUnit ,
      (ROUND(( v.fprice  - ( v.fprice  * ( foff  / 100))),
              0) *  f_count ) AS  fpriceAll ,  p.fimages ,
      v.factive ,
       v.foff ,
       v.fdate_update_price ,
       v.finserttime ,  p.fidCateg ,
       p.fkeys ,
       p.ftype 
       
       
 FROM products as p  inner join products_varients as v  on v.fidproduct  = p.id 
  WHERE
  v.id  =  f_id ;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPAdd_portalsassions` */;
DELIMITER ;;
CREATE  PROCEDURE `SPAdd_portalsassions`(
IN t_oken  longtext CHARSET utf8mb4, 
IN d_ata longtext CHARSET utf8mb4 ,
IN i_dwebuser bigint ,
in F_ldType varchar(45)  CHARSET utf8mb4,
IN f_mnulist  longtext CHARSET utf8mb4)
BEGIN

  DELETE FROM _portalsassions WHERE insertTime < (CURDATE() - INTERVAL 15 DAY);
  
   INSERT INTO   _portalsassions   (   token,  FldData , FldType , fmnulist , idwebuser)  VALUES 
 ( t_oken ,  d_ata ,F_ldType,fmnulist , i_dwebuser );   
  
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SpAGIs_FillDataModulsById` */;
DELIMITER ;;
CREATE  PROCEDURE `SpAGIs_FillDataModulsById`(IN `Fldid` INT)
BEGIN
SELECT * From  agis  where FldidModuls=Fldid  and flddeleted = 0 ;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPbillcoupon_AddUpdate` */;
DELIMITER ;;
CREATE  PROCEDURE `SPbillcoupon_AddUpdate`(
IN `i_d` BIGINT, 
IN `f_name` VARCHAR(255) CHARSET utf8mb4, 
 IN `f_expireDate` VARCHAR(255) CHARSET utf8mb4, 
 IN `f_value` BIGINT,
 IN `f_min_Value` BIGINT, 
 IN `f_max_Value` BIGINT, 
 IN `f_General_limitation` BIGINT,
 IN `f_User_limitation` BIGINT, 
IN `f_type` VARCHAR(255) CHARSET utf8mb4, 
IN `f_desc` LONGTEXT CHARSET utf8mb4,
IN `f_extra` LONGTEXT CHARSET utf8mb4,
IN `f_is_amazing_no` TINYINT ,
IN `f_idwebuser_only` BIGINT, 
IN `f_idproduct_only` BIGINT, 
IN `f_idproduct_varient_only` BIGINT, 
IN `f_active` TINYINT
)
BEGIN

 

IF i_d > 0 THEN
       UPDATE billcoupon
            SET 
            fidproduct_varient_only=f_idproduct_varient_only ,  fidwebuser_only=f_idwebuser_only ,   fidproduct_only=f_idproduct_only ,  fname=f_name , factive=f_active,   fdesc=f_desc   , fextra=f_extra  ,fexpireDate=f_expireDate ,fvalue=f_value , fmin_Value=f_min_Value
                ,fmax_Value=f_max_Value , fis_amazing_no=f_is_amazing_no  , fUser_limitation=f_User_limitation  , fGeneral_limitation=f_General_limitation 
                  
         WHERE id = i_d ;
		 select i_d  as id;
  END IF;
  IF i_d = 0 THEN
              INSERT  INTO  billcoupon (fidproduct_varient_only , fidproduct_only,fidwebuser_only, fname  , factive ,   fdesc    , fextra ,ftype ,fexpireDate,fvalue ,fmin_Value ,fmax_Value ,fis_amazing_no,fUser_limitation ,fGeneral_limitation)
               VALUES (f_idproduct_varient_only , f_idproduct_only ,f_idwebuser_only ,f_name , f_active,      f_desc   , f_extra ,f_type , f_expireDate ,f_value ,f_min_Value ,f_max_Value ,f_is_amazing_no,f_User_limitation ,f_General_limitation) ;
    SELECT  LAST_INSERT_ID() as id;
  END IF;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPbilling_substatus_AddUpdate` */;
DELIMITER ;;
CREATE  PROCEDURE `SPbilling_substatus_AddUpdate`(
IN `i_d` BIGINT, 
IN `f_name` VARCHAR(900) CHARSET utf8mb4, 
 
 IN `f_message` VARCHAR(1900) CHARSET utf8mb4, 
 
IN `f_active` TINYINT
)
BEGIN

declare co integer ;
       set   co  =  (select count(id ) as id   from billing_substatus where fname = f_name  ) ;
       
       if  co > 0  then
        set i_d =   (select  id       from billing_substatus where fname = f_name ) ;
       end if ;


  IF i_d > 0 THEN
      
   
       UPDATE billing_substatus
            SET 
                fname=f_name , factive=f_active , fmessage=f_message
                
               
         WHERE id = i_d ;

		 select i_d  as id;
   
  END IF;

  IF i_d = 0 THEN
 
             
              INSERT  INTO  billing_substatus (fname,   factive  ,fmessage)
               VALUES (f_name,  f_active       ,f_message ) ;
                  

    SELECT  LAST_INSERT_ID() as id;
  END IF;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPCarrierMethods_AddUpdate` */;
DELIMITER ;;
CREATE  PROCEDURE `SPCarrierMethods_AddUpdate`(
IN `i_d` BIGINT, 
IN `f_name` VARCHAR(255) CHARSET utf8mb4, 
 
IN `f_type` VARCHAR(255) CHARSET utf8mb4, 
IN `f_desc` LONGTEXT CHARSET utf8mb4,
IN `f_extra` LONGTEXT CHARSET utf8mb4,
in f_idstore int,
IN `f_active` TINYINT
)
BEGIN

 

  IF i_d > 0 THEN
       UPDATE billcarriermethods
            SET 
                fname=f_name , factive=f_active,   fdesc=f_desc   , fextra=f_extra    , fidstore=f_idstore
                  
         WHERE id = i_d ;
		 select i_d  as id;
  END IF;
  IF i_d = 0 THEN
              INSERT  INTO  billcarriermethods ( fname  , factive ,   fdesc    , fextra ,ftype ,fidstore  )
               VALUES ( f_name , f_active,      f_desc   , f_extra ,f_type  ,f_idstore ) ;
    SELECT  LAST_INSERT_ID() as id;
  END IF;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPcustomers_AddUpdate` */;
DELIMITER ;;
CREATE  PROCEDURE `SPcustomers_AddUpdate`(
IN `i_d` BIGINT, 
IN `f_name` VARCHAR(255) CHARSET utf8mb4, 
IN `f_lastname` VARCHAR(255) CHARSET utf8mb4,
IN `f_mobile` VARCHAR(255) CHARSET utf8mb4,
IN `f_address` VARCHAR(255) CHARSET utf8mb4, 
IN `f_email`   VARCHAR(400) CHARSET utf8mb4 ,
IN `f_username`   VARCHAR(400) CHARSET utf8mb4 ,  
IN `f_idWebuser`  bigint
)
BEGIN
 
 declare newid integer   ;
 set newid = (select ifnull(id , 0)  from customers where    ( length(fusername) > 3 and  fusername=f_username )     or  ( length(fmobile) > 10 and  fmobile=f_mobile )) ;
if   i_d = 0 and  newid > 0  then
    set i_d = newid ;
end if ;
if length(f_username)=0 or f_username = null  then
   if length(f_mobile)>10  and  f_mobile <> null  then
        set f_username = f_mobile ;
   end if;
end if;

  IF i_d > 0 THEN
				UPDATE  customers  SET 
                fname =f_name ,  flastname=f_lastname ,  fmobile=f_mobile , faddress = f_address, femail =f_email  , fusername=f_username 
                , fidWebuser=f_idWebuser
                WHERE id = i_d ;
			select i_d  as id;
  END IF;
  IF i_d = 0 THEN
				INSERT  INTO  customers  ( fname ,flastname ,fmobile , faddress,femail   , fusername     ,fidWebuser        )
                VALUES (  f_name ,f_lastname ,f_mobile , f_address,f_email , f_username ,f_idWebuser) ;
			SELECT  LAST_INSERT_ID() as id;
  END IF;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPDashboardInfo` */;
DELIMITER ;;
CREATE  PROCEDURE `SPDashboardInfo`(IN `MODELVIEW`   VARCHAR(255) CHARSET utf8mb4)
BEGIN
declare countfaq int ;
declare count_deactive_posts int ;
declare countstores int ;
declare countusers int ;
declare countlevel1 int ;
declare countlevel2 int ;
declare countposts int ;
declare countproducts int ;
declare countOtherPages int ;
declare counttodaynobat int ;
declare countd_1obat int ;
declare countd_2obat int ;
declare countd_3obat int ;
declare countd_4obat int ;
declare countd_5obat int ;
declare countd_6obat int ;
declare countd_7obat int ;
declare counttoday_getednobat int ;
declare countd_1obat_getednobat int ;
declare lastcommens longtext ;
 declare activetikets int ; 
 declare actiQuestions int ;
  declare doingOrders int ;
  declare AwaitingPaymentOrders int ;
   declare newEXSUserReq int ;
  declare newReviewComments int ;

   declare newNotif int ;
    


   declare newSellerRequests int ;
  declare newSellerProductRequest int ;
declare learnvideos longtext ;
if MODELVIEW='website' then 
 

set counttodaynobat = -1 ;
set counttoday_getednobat =-1 ;
set countd_1obat_getednobat = -1 ;
set countd_1obat = -1 ;
set countd_2obat = -1 ;
set countd_3obat = -1 ;
set countd_4obat = -1 ;
set countd_5obat = -1 ;
set countd_6obat = -1 ;
set countd_7obat = -1 ;
set countproducts = ( select count(*) from  products where fdeleted =0  and ( ftype = 'v_product' or  ftype='s_product'));
set countposts = ( select count(*) from posts  where fdeleted =0  );
set countfaq = ( select count(*) from tbl_faq where fdeleted=0  );
set count_deactive_posts = ( SELECT  count(*)  FROM posts where factive =  0 and fdeleted = 0   );
set countstores = ( select count(*) from stores where fdeleted=0  );

set countusers = ( select count(*) from tblwebusers where FldDeleted=0  );
 set countOtherPages = ( select count(*)-1 from pages where fdeleted=0  and ftype = 'others');  
set countlevel1 = -1 ;
set countlevel2 = -1 ;
set activetikets = ( select count(*)   from  codeman_tikets  where  factive!=10 );  
set actiQuestions = ( select count(*)   from  questions  where  fstatus="NEW" and fdeleted = 0 and fidref is not null  );  

set doingOrders =  (select count(*)   from   billing  where (fstatus = 'doing'  )  and  fdeleted=0) ; 
set AwaitingPaymentOrders =  (select count(*)   from   billing  where (  fstatus = 'AwaitingPayment')  and  fdeleted=0) ; 
set newEXSUserReq =  (select count(*)    from   external_stores_user_requests    where fstatus = 'waiting'  ) ; 

set newReviewComments = (select count(*) as  newReviewComments from  tbl_review_and_rate  where fstatus = '1' and  fdeleted=0) ;
set newNotif = (select count(*) as  newNotif from  notifs_to_webuser  where fstatus = 'NEW' and  fdeleted=0) ;

set newSellerProductRequest =  (select count(*)as  newSellerProductRequest  from  stores_request_sell_products     ) ;
set newSellerRequests = (select count(*)as newSellerRequests   from  stores where  fstatus ='New'  and fdeleted= 0    ) ;
set learnvideos = (  SELECT JSON_ARRAYAGG(JSON_OBJECT('fname', fname , 'furl',  furl )) as learnvideos from   codemandata  where ftype='videoLearn-website');     
set lastcommens = -1 ; 
    
   
 
   
   select  count_deactive_posts,doingOrders, newEXSUserReq ,AwaitingPaymentOrders ,  newReviewComments,newNotif,newSellerProductRequest,newSellerRequests,  countfaq ,countstores, countusers, countlevel1 , countlevel2 ,countposts ,countproducts,counttodaynobat ,countd_1obat,countd_2obat,countd_3obat,countd_4obat,countd_5obat
   ,countd_6obat, countd_7obat , counttoday_getednobat ,countd_1obat_getednobat , lastcommens ,learnvideos  ,countOtherPages ,activetikets , actiQuestions  ;
   
   
elseif MODELVIEW='nobat' then 
set actiQuestions = ( select count(*) as actiQuestions  from  questions  where  fstatus="NEW" and fdeleted = 0 and fidref is not null  );    
set activetikets = ( select count(*) as activetikets from  codeman_tikets  where  factive!=10 );  
set counttodaynobat = ( SELECT count(*) FROM nobat_allnobats where FldDate =DATE(now()) and    FldDeleted=0  and FldActive=1  );
set counttoday_getednobat = ( SELECT count(*) FROM nobat_allnobats where FldDate =DATE(now()) and  FldIdCustomer>0 and   FldDeleted=0  and FldActive=1  );
set countd_1obat_getednobat = ( SELECT count(*) FROM nobat_allnobats where FldDate = DATE(  DATE_ADD(now(), INTERVAL 1 DAY)) and  FldIdCustomer>0 and   FldDeleted=0  and FldActive=1  );
set countd_1obat = ( SELECT count(*) FROM nobat_allnobats where FldDate =   DATE(  DATE_ADD(now(), INTERVAL 1 DAY))   and    FldDeleted=0  and FldActive=1  );
set countd_2obat = ( SELECT count(*) FROM nobat_allnobats where FldDate =   DATE(  DATE_ADD(now(), INTERVAL 2 DAY))   and    FldDeleted=0  and FldActive=1  );
set countd_3obat = ( SELECT count(*) FROM nobat_allnobats where FldDate =   DATE(  DATE_ADD(now(), INTERVAL 3 DAY))   and    FldDeleted=0  and FldActive=1  );
set countd_4obat = ( SELECT count(*) FROM nobat_allnobats where FldDate =   DATE(  DATE_ADD(now(), INTERVAL 4 DAY))   and    FldDeleted=0  and FldActive=1  );
set countd_5obat = ( SELECT count(*) FROM nobat_allnobats where FldDate =   DATE(  DATE_ADD(now(), INTERVAL 5 DAY))   and    FldDeleted=0  and FldActive=1  );
set countd_6obat = ( SELECT count(*) FROM nobat_allnobats where FldDate =   DATE(  DATE_ADD(now(), INTERVAL 6 DAY))   and    FldDeleted=0  and FldActive=1  );
set countd_7obat = ( SELECT count(*) FROM nobat_allnobats where FldDate =   DATE(  DATE_ADD(now(), INTERVAL 7 DAY))   and    FldDeleted=0  and FldActive=1  );
set countproducts = -1;
set countposts = ( select count(*) from posts  where fdeleted =0  );
set countlevel1 = ( select count(*) from nobat_level1 where FldDeleted =0  );
set countlevel2 = ( select count(*) from nobat_level2_items where FldDeleted=0  );
set count_deactive_posts = ( SELECT  count(*)  FROM posts where factive =  0 and fdeleted = 0   );
set countfaq = -1;
set countstores = -1;
set countusers = ( select count(*) from tblwebusers where FldDeleted=0  );
set doingOrders = -1 ; 
set AwaitingPaymentOrders = -1 ; 
set  newEXSUserReq = -1 ; 
set newReviewComments = -1 ; 
set newNotif = -1 ; 

set newSellerProductRequest = -1 ; 
set newSellerRequests = -1 ; 
set learnvideos = (  SELECT JSON_ARRAYAGG(JSON_OBJECT('fname', fname , 'furl',  furl )) as learnvideos from   codemandata  where ftype='videoLearn-nobat');     
set lastcommens = (  SELECT JSON_ARRAYAGG(JSON_OBJECT('FldRate', FldRate , 'FldSuggest',  FldSuggest, 'FldComment',  FldComment )) as lastcommens from rating   );   
    
set countOtherPages = -1 ;    
  
   
   select count_deactive_posts,doingOrders , AwaitingPaymentOrders,newReviewComments,newNotif,newSellerProductRequest,newSellerRequests, countfaq  ,countstores, newEXSUserReq , countusers , countlevel1 , countlevel2 ,countposts ,countproducts,counttodaynobat ,countd_1obat,countd_2obat,countd_3obat,countd_4obat,countd_5obat
   ,countd_6obat, countd_7obat , counttoday_getednobat ,countd_1obat_getednobat , lastcommens ,learnvideos ,countOtherPages  , activetikets , actiQuestions ;
   
 else 
   
 set actiQuestions = ( select count(*) as actiQuestions  from  questions  where  fstatus="NEW" and fdeleted = 0 and  fidref is not null  );   
set activetikets = ( select count(*) as activetikets from  codeman_tikets  where  factive!=10 );  
set counttodaynobat = ( SELECT count(*) FROM nobat_allnobats where FldDate =DATE(now()) and    FldDeleted=0  and FldActive=1  );
set counttoday_getednobat = ( SELECT count(*) FROM nobat_allnobats where FldDate =DATE(now()) and  FldIdCustomer>0 and   FldDeleted=0  and FldActive=1  );
set countd_1obat_getednobat = ( SELECT count(*) FROM nobat_allnobats where FldDate = DATE(  DATE_ADD(now(), INTERVAL 1 DAY)) and  FldIdCustomer>0 and   FldDeleted=0  and FldActive=1  );
set countd_1obat = ( SELECT count(*) FROM nobat_allnobats where FldDate =   DATE(  DATE_ADD(now(), INTERVAL 1 DAY))   and    FldDeleted=0  and FldActive=1  );
set countd_2obat = ( SELECT count(*) FROM nobat_allnobats where FldDate =   DATE(  DATE_ADD(now(), INTERVAL 2 DAY))   and    FldDeleted=0  and FldActive=1  );
set countd_3obat = ( SELECT count(*) FROM nobat_allnobats where FldDate =   DATE(  DATE_ADD(now(), INTERVAL 3 DAY))   and    FldDeleted=0  and FldActive=1  );
set countd_4obat = ( SELECT count(*) FROM nobat_allnobats where FldDate =   DATE(  DATE_ADD(now(), INTERVAL 4 DAY))   and    FldDeleted=0  and FldActive=1  );
set countd_5obat = ( SELECT count(*) FROM nobat_allnobats where FldDate =   DATE(  DATE_ADD(now(), INTERVAL 5 DAY))   and    FldDeleted=0  and FldActive=1  );
set countd_6obat = ( SELECT count(*) FROM nobat_allnobats where FldDate =   DATE(  DATE_ADD(now(), INTERVAL 6 DAY))   and    FldDeleted=0  and FldActive=1  );
set countd_7obat = ( SELECT count(*) FROM nobat_allnobats where FldDate =   DATE(  DATE_ADD(now(), INTERVAL 7 DAY))   and    FldDeleted=0  and FldActive=1  );
 
 
set countlevel1 = ( select count(*) from nobat_level1 where FldDeleted =0  );
set countlevel2 = ( select count(*) from nobat_level2_items where FldDeleted=0  );
  set   newEXSUserReq = -1 ; 
  set  doingOrders = -1 ; 
   set  AwaitingPaymentOrders = -1 ; 
set newReviewComments = -1 ; 
set newNotif = -1 ; 
set newSellerProductRequest = -1 ; 
set newSellerRequests = -1 ; 

   set countproducts = ( select count(*) from  products where fdeleted =0  );
set countposts = ( select count(*) from posts  where fdeleted =0  );
set countfaq = ( select count(*) from tbl_faq where fdeleted=0  );
set count_deactive_posts = ( SELECT  count(*)  FROM posts where factive =  0 and fdeleted = 0   );
set countstores = ( select count(*) from stores where fdeleted=0  );
set countusers = ( select count(*) from tblwebusers where FldDeleted=0  );
 set countOtherPages = ( select count(*)-1 from pages where fdeleted=0  and ftype = 'others');  
 
 
 
set learnvideos = (  SELECT JSON_ARRAYAGG(JSON_OBJECT('fname', fname , 'furl',  furl )) as learnvideos from   codemandata  );     
set lastcommens = (  SELECT JSON_ARRAYAGG(JSON_OBJECT('FldRate', FldRate , 'FldSuggest',  FldSuggest, 'FldComment',  FldComment )) as lastcommens from rating   );   
    
set countOtherPages = -1 ;    
  
   
   select count_deactive_posts,doingOrders , AwaitingPaymentOrders ,newReviewComments,newNotif,newSellerProductRequest,newSellerRequests, countfaq , countstores , newEXSUserReq , countusers, countlevel1 , countlevel2 ,countposts ,countproducts,counttodaynobat ,countd_1obat,countd_2obat,countd_3obat,countd_4obat,countd_5obat
   ,countd_6obat, countd_7obat , counttoday_getednobat ,countd_1obat_getednobat , lastcommens ,learnvideos ,countOtherPages ,activetikets , actiQuestions ;
   
   end if;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPDashboardInfoLevel1` */;
DELIMITER ;;
CREATE  PROCEDURE `SPDashboardInfoLevel1`(IN `F_ldId` INT )
BEGIN
declare countfaq int ;
declare countposts int ;
declare countproducts int ;
  declare activetikets int ;
declare counttoday_getednobat int ;
declare countd_1obat_getednobat int ;




set activetikets = 0 ; 
set counttoday_getednobat = ( SELECT count(*) FROM nobat_allnobats where FldDate =DATE(now()) and  FldidLastLevel =F_ldId  and   FldDeleted=0  and FldActive=1  );
set countd_1obat_getednobat = ( SELECT count(*) FROM nobat_allnobats where FldDate = DATE(  DATE_ADD(now(), INTERVAL 1 DAY)) and  FldidLastLevel =  F_ldId  and   FldDeleted=0  and FldActive=1  );
set countproducts = ( select count(*) from  products where fdeleted =0  );
set countposts = ( select count(*) from posts  where fdeleted =0  );
set countfaq = ( select count(*) from tbl_faq where fdeleted=0  );

 
    
 select  countfaq , countposts ,countproducts,  counttoday_getednobat ,countd_1obat_getednobat , activetikets   ;
 
 
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPDashboardInfoSeller` */;
DELIMITER ;;
CREATE  PROCEDURE `SPDashboardInfoSeller`(IN `i_dStore` INT ,  IN `i_WebUser` INT )
BEGIN
 
declare countproducts int ;
declare countRequestedproducts int ;
declare countNewMessages int ;
declare countNewOrderToCustomer int ;
declare countNewOrderToMainStore int ;
declare activetikets int ;
    
 
set countproducts = (  select count(*) 
 from  products as p  inner join products_varients as v  on p.id = v.fidproduct
 where v.fidstore = i_dStore  and     p.fdeleted =0 and  v.fdeleted =0  and ( p.ftype = 'v_product' or  p.ftype='s_product'));
 
 
 set countRequestedproducts = ( select count(*) from  stores_request_sell_products  where fdeleted =0  and  fidstore = i_dStore);
 
set countNewMessages = ( select count(*) from  store_sellers_messages  where fdeleted =0 and idStore =i_dStore  and  factive = 1 );

 set activetikets =   ( select count(*) as activetikets from  codeman_tikets  where  factive!=10  and fuserId= i_WebUser );   
 
set countNewOrderToCustomer =    (  select count(*)
             from billing_marsole  as bm   
                     inner join billing as b on b.id = bm.fidbilling
                     inner join stores as s on s.id = bm.fidstore_sender
                      where bm.fdeleted=0   and bm.fidstore_sender <> 1 and b.fstatus  = "doing"   
                      and bm.fstatus="doing"
                       and  bm.fidstore_sender  = i_dStore );
set countNewOrderToMainStore =    (    select   count(*) 
         from billing_marsole_details as bmd
      inner join billing_marsole as bm  on bm.id = bmd.fidmarsole
      inner join  billing_details as bd on bd.id  =   bmd.fidbilling_details

      where bm.fdeleted=0   and bd.id not in (select fidbilling_details  from  billing_sellers_mahmole_details   )
      and bm.fidstore_sender = 1  and  bd.fidstore <> 1    and  bd.fidstore  =  i_dStore      );


   select  countproducts , countNewOrderToCustomer , countNewOrderToMainStore , countNewMessages, countRequestedproducts , activetikets ;
 
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPDashboardInfoUser` */;
DELIMITER ;;
CREATE  PROCEDURE `SPDashboardInfoUser`(IN `F_ldId` INT ,IN `MODELVIEW`   VARCHAR(255) CHARSET utf8mb4 )
BEGIN
  declare CompletedOrders int ;
declare doingOrders int ;
 declare CanceledOrders int ;
declare activetikets int ;
declare counttoday_getednobat int ;
declare countd_1obat_getednobat int ;
declare AwaitingPaymentOrders int ;
 declare returnedOrders int ;

if MODELVIEW='website' then 
set counttoday_getednobat = -1;
set countd_1obat_getednobat = -1 ;
  set doingOrders =(select count(*)   from   billing  where (  fstatus = 'doing')  and fidwebuser = F_ldId and  fdeleted=0) ; 
 set AwaitingPaymentOrders =(select count(*)   from   billing  where (  fstatus = 'AwaitingPayment')  and fidwebuser = F_ldId and  fdeleted=0) ; 
 set activetikets =   ( select count(*) as activetikets from  codeman_tikets  where  factive!=10  and fuserId= F_ldId );   
     set CanceledOrders =(select count(*)   from   billing  where (  fstatus = 'Canceled')  and fidwebuser = F_ldId and  fdeleted=0) ; 
  
  set CompletedOrders =(select count(*)   from   billing  where (  fstatus = 'Completed')  and fidwebuser = F_ldId and  fdeleted=0) ; 
   set returnedOrders =(select count(*)   from   billing  where (  fstatus = 'returned')  and fidwebuser = F_ldId and  fdeleted=0) ; 
   
  select    AwaitingPaymentOrders  , returnedOrders  , doingOrders, CompletedOrders , CanceledOrders , activetikets,  counttoday_getednobat ,countd_1obat_getednobat ; 
elseif MODELVIEW='nobat' then 
set counttoday_getednobat = ( SELECT count(*) FROM nobat_allnobats where FldDate =DATE(now()) and  FldIdCustomer =F_ldId  and   FldDeleted=0  and FldActive=1  );
set countd_1obat_getednobat = ( SELECT count(*) FROM nobat_allnobats where FldDate = DATE(  DATE_ADD(now(), INTERVAL 1 DAY)) and  FldIdCustomer =  F_ldId  and   FldDeleted=0  and FldActive=1  );
 

 
    
 select    AwaitingPaymentOrders  , returnedOrders  , doingOrders, CompletedOrders , CanceledOrders , activetikets,  counttoday_getednobat ,countd_1obat_getednobat ; 
 else
 
 set counttoday_getednobat = ( SELECT count(*) FROM nobat_allnobats where FldDate =DATE(now()) and  FldIdCustomer =F_ldId  and   FldDeleted=0  and FldActive=1  );
set countd_1obat_getednobat = ( SELECT count(*) FROM nobat_allnobats where FldDate = DATE(  DATE_ADD(now(), INTERVAL 1 DAY)) and  FldIdCustomer =  F_ldId  and   FldDeleted=0  and FldActive=1  );
 
 set activetikets =   ( select count(*) as activetikets from  codeman_tikets  where  factive!=10  and fuserId= F_ldId );   
 
    
 select    AwaitingPaymentOrders  , returnedOrders  , doingOrders, CompletedOrders , CanceledOrders , activetikets,  counttoday_getednobat ,countd_1obat_getednobat ; 
end if;
 
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPEmails_Update` */;
DELIMITER ;;
CREATE  PROCEDURE `SPEmails_Update`(
IN `i_d` BIGINT, 
IN `f_html` LONGTEXT CHARSET utf8mb4,
IN `f_title` LONGTEXT CHARSET utf8mb4,
IN `f_active` tinyint 
)
BEGIN

  declare f_last_update datetime ;
 set f_last_update =   now() ;

  IF i_d > 0 THEN
      
   
       UPDATE emails
            SET 
            ftitle = f_title ,    pattern=f_html    , factive=f_active   WHERE id = i_d ; 
                select i_d  as id;
   
  END IF;

  
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPExtensions_AddUpdate` */;
DELIMITER ;;
CREATE  PROCEDURE `SPExtensions_AddUpdate`(
IN `i_d` BIGINT, 
IN `f_name` VARCHAR(900) CHARSET utf8mb4, 
IN `f_desc` VARCHAR(955) CHARSET utf8mb4, 
IN `f_type` VARCHAR(955) CHARSET utf8mb4,
IN `f_price` BIGINT, 
IN `f_extra` longtext CHARSET utf8mb4, 
IN `f_off` TINYINT    ,
IN `f_key` VARCHAR(900) CHARSET utf8mb4,  
IN `f_image` VARCHAR(1900) CHARSET utf8mb4, 
IN `f_hide` TINYINT
)
BEGIN

declare co integer ;
       set   co  =  (select count(id ) as id   from codeman_extens where fname = f_name  or  fkey=f_key ) ;
       
       if  co > 0  then
        set i_d =   (select  id       from codeman_extens where fname = f_name  or  fkey=f_key limit 1 ) ;
       end if ;


  IF i_d > 0 THEN
      
   
       UPDATE codeman_extens
            SET 
        foff=f_off ,     fprice=f_price , ftype=f_type ,  fname=f_name , fhide=f_hide ,   fdesc=f_desc , fkey=f_key  , fimage=f_image , fextra=f_extra
               ,  flastupdate = now()
               
         WHERE id = i_d ;

		 select i_d  as id;
   
  END IF;

  IF i_d = 0 THEN
 
             
              INSERT  INTO  codeman_extens (fname,   fhide  ,fkey ,fimage  ,fdesc ,fprice,ftype ,fextra , foff )
               VALUES (f_name,  f_hide       ,f_key  ,f_image   ,f_desc ,f_price ,f_type , f_extra  , f_off) ;
                  

    SELECT  LAST_INSERT_ID() as id;
  END IF;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPexternal_stores_list_AddUpdate` */;
DELIMITER ;;
CREATE  PROCEDURE `SPexternal_stores_list_AddUpdate`(
IN `i_d` BIGINT, 
IN `f_name` VARCHAR(455) CHARSET utf8mb4, 
IN `f_image` VARCHAR(955) CHARSET utf8mb4, 
IN `f_type` VARCHAR(255) CHARSET utf8mb4, 
IN `f_url` VARCHAR(955) CHARSET utf8mb4, 
IN `f_latinName` VARCHAR(455) CHARSET utf8mb4, 
IN `f_order` BIGINT

 
)
BEGIN

 

IF i_d > 0 THEN
       UPDATE external_stores_list
            SET  fname=f_name ,  fimage=f_image ,  ftype=f_type ,  furl=f_url ,  flatinName=f_latinName ,  forder=f_order 
              
                  
         WHERE id = i_d ;
		 select i_d  as id;
  END IF;
  IF i_d = 0 THEN
              INSERT  INTO  external_stores_list (fname ,fimage,ftype,furl,flatinName,forder)
               VALUES ( f_name ,f_image,f_type,f_url,f_latinName,f_order) ;
    SELECT  LAST_INSERT_ID() as id;
  END IF;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPexternal_stores_user_requests_AddUpdate` */;
DELIMITER ;;
CREATE  PROCEDURE `SPexternal_stores_user_requests_AddUpdate`(
IN `i_d` BIGINT,
 IN `f_price` int(15), 
IN `f_name` VARCHAR(455) CHARSET utf8mb4, 
IN `f_image` VARCHAR(955) CHARSET utf8mb4, 
IN `f_status` VARCHAR(255) CHARSET utf8mb4, 
IN `f_url` VARCHAR(955) CHARSET utf8mb4, 
IN `f_adminDesc` VARCHAR(1455) CHARSET utf8mb4,
 IN `f_dateend` VARCHAR(455) CHARSET utf8mb4,  
 IN `f_deactiveLinkProductOnExpire` tinyint(3), 
IN `f_desc` VARCHAR(1455) CHARSET utf8mb4 

 
)
BEGIN

 

IF i_d > 0 THEN
       UPDATE external_stores_user_requests
            SET fprice=f_price , fname=f_name ,  fimage=f_image ,fstatus=f_status ,   furl=f_url ,   fadminDesc=f_adminDesc , fdesc=f_desc     
           ,   fdateend=f_dateend  , fdeactiveLinkProductOnExpire=f_deactiveLinkProductOnExpire
                  
         WHERE id = i_d ;
		 select i_d  as id;
  END IF;
  IF i_d = 0 THEN
              
    SELECT  -1 as id;
  END IF;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPgeneral_components_AddUpdate` */;
DELIMITER ;;
CREATE  PROCEDURE `SPgeneral_components_AddUpdate`(
IN `i_d` BIGINT, 
IN `f_name` VARCHAR(255) CHARSET utf8mb4, 
IN `f_html` LONGTEXT CHARSET utf8mb4,
 IN `f_author` VARCHAR(255) CHARSET utf8mb4, 
IN `f_type` VARCHAR(255) CHARSET utf8mb4, 
 IN `f_com_type` VARCHAR(255) CHARSET utf8mb4, 
IN `f_active` TINYINT,
IN `no_html` TINYINT ,
IN `f_canedit` VARCHAR(255) CHARSET utf8mb4 ,
IN `f_desc` VARCHAR(955) CHARSET utf8mb4,
IN `f_fixtype` VARCHAR(955) CHARSET utf8mb4
)
BEGIN
declare f_last_update datetime ;
 set f_last_update =   now() ;

   IF i_d > 0 THEN
      
   if   no_html > 0  then
			UPDATE general_components  SET 
                fname=f_name , factive=f_active,    flast_update=f_last_update ,
               fauthor=f_author ,ftype=f_type   , fcom_type=f_com_type , fcanedit=f_canedit , fdesc=f_desc, ffixtype=f_fixtype
			WHERE id = i_d and id > 10  ;

         else
         	 UPDATE general_components  SET 
                 fname=f_name , factive=f_active,  fhtml=f_html, flast_update=f_last_update ,
               fauthor=f_author ,ftype=f_type    , fcom_type=f_com_type ,    fcanedit=f_canedit, fdesc=f_desc, ffixtype=f_fixtype
			WHERE id = i_d   and id > 10  ;
         
         end if;

		 select i_d  as id;
   
  END IF;

  IF i_d = 0 THEN
 
             
              INSERT  INTO  general_components (fhtml,fauthor,ftype,factive,fname,flast_update ,fcom_type ,fcanedit  , fdesc ,ffixtype
             )
               VALUES (f_html,f_author,f_type,f_active,f_name,f_last_update ,f_com_type ,f_canedit , f_desc ,f_fixtype
                   ) ;
                  

    SELECT  LAST_INSERT_ID() as id;
  END IF;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `spGetAllModulsForCustomer` */;
DELIMITER ;;
CREATE  PROCEDURE `spGetAllModulsForCustomer`()
BEGIN

 SELECT * From  moduls where flddeleted=0 and FldVisibal=1;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `spGetItemInfoFromWeb` */;
DELIMITER ;;
CREATE  PROCEDURE `spGetItemInfoFromWeb`(IN id  int  , IN t_ype INT)
BEGIN
   
 declare Start_day_interval int;
  declare End_day_interval int;
    declare  fromdate date  ;
 declare   todate date  ;

set  Start_day_interval =(  select  fldval from  nobat_settings  where fldkey='Start_day_interval') ;
set End_day_interval  = (  select fldval from  nobat_settings where fldkey='End_day_interval' ) ;

 
 
set  todate = ( select  DATE_ADD(now(), INTERVAL End_day_interval DAY) );    
 set fromdate =(select  DATE_ADD(now(), INTERVAL Start_day_interval DAY)  ) ;

call SPNobat_AllNobats_ReturnDatebyRowNumber  (fromdate,todate ,t_ype,id) ;


END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `spGetItemTimeInfoFromWeb` */;
DELIMITER ;;
CREATE  PROCEDURE `spGetItemTimeInfoFromWeb`(IN fdate  date  , IN fidlastlevel  INT)
BEGIN
   
  declare flastleve int;
 
 declare  Type_ int ;
 declare  Favetime int ;
 
 set flastleve = 1 ;
  set Type_ = 4 ;
   set Favetime = -1 ;

 call SPNobat_ReturnAllNobatTime_ByWhere  (fdate, flastleve , fidlastlevel,Type_,Favetime) ;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `spGetLevel1FromWeb` */;
DELIMITER ;;
CREATE  PROCEDURE `spGetLevel1FromWeb`(in id int )
BEGIN
 	   call SPNobat_DeactiveNearNobats();
SELECT        nobat_level1.Fldid, nobat_level1.Fldtitle, nobat_level1.FldActive, nobat_level1.FldSex, nobat_level1.FldShortCode,
 nobat_level1.FldWebDesc, nobat_level2_items.Fldtitle AS Fldtitle2
 ,nobat_level1.FldLastCommensCount as commentsCount ,  CASE
    WHEN nobat_level1.FldLastCommensCount >0  THEN round( nobat_level1.FldLasRating/nobat_level1.FldLastCommensCount , 2)  
    ELSE 0
END as avrageRating ,                    

 CASE  
      WHEN nobat_level1.FldLastCommensCount >0  THEN round(( nobat_level1.FldLastSuggest/nobat_level1.FldLastCommensCount)*100 , 2)  
      ELSE 0
  END as  SuggestCount    , nobat_level1.fimages,
                      nobat_level1.furl,
                      nobat_level1.fhtml,
                      nobat_level1.flast_update , nobat_level1.FldActive_OV , nobat_level1.Fldvoicepath_OV
	 
FROM            nobat_level1 INNER JOIN
                         nobat_level2_items ON nobat_level1.FldIdlevel2_Items = nobat_level2_items.Fldid
WHERE        (nobat_level2_items.FldDeleted = 0) AND (nobat_level1.FldDeleted = 0) and     nobat_level1.Fldid =id  ;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPgspin_AddUpdate` */;
DELIMITER ;;
CREATE  PROCEDURE `SPgspin_AddUpdate`(
IN `i_d` BIGINT, 
IN `f_name` VARCHAR(255) CHARSET utf8mb4, 
 IN `f_extra` LONGTEXT CHARSET utf8mb4,
 IN `f_items` LONGTEXT CHARSET utf8mb4,
 IN `f_General_limitation` BIGINT,
 IN `f_User_limitation` BIGINT, 
 
IN `f_desc` LONGTEXT CHARSET utf8mb4,
 
IN `f_active` TINYINT
)
BEGIN

 

IF i_d > 0 THEN
       UPDATE gspin
            SET 
               fname=f_name , factive=f_active,   fdesc=f_desc  , fextra=f_extra  , fitems=f_items
                 , fUser_limitation=f_User_limitation  , fGeneral_limitation=f_General_limitation 
                  
         WHERE id = i_d ;
		 select i_d  as id;
  END IF;
  IF i_d = 0 THEN
              INSERT  INTO  gspin (  fname ,fextra , factive ,   fdesc  ,fitems     ,fUser_limitation ,fGeneral_limitation)
               VALUES ( f_name , f_extra, f_active,      f_desc  ,f_items    ,f_User_limitation ,f_General_limitation) ;
    SELECT  LAST_INSERT_ID() as id;
  END IF;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPHolidays_AddUpdateHolidays` */;
DELIMITER ;;
CREATE  PROCEDURE `SPHolidays_AddUpdateHolidays`(IN `F_ldId` INT, IN `F_ldTitle` VARCHAR(255) CHARSET utf8mb4, IN `F_ldDate` DATETIME)
BEGIN
 DECLARE   varid bigint ;
 IF F_ldId > 0 then
	  
         UPDATE tblholidays   SET    FldTitle = F_ldTitle,   FldDate = F_ldDate   , flddeleted = 0   WHERE tblholidays.Fldid = F_ldId ;
		 SELECT F_ldId ;
END if ;
IF F_ldId = 0 then
		SET varid =   (   SELECT   tblholidays.Fldid   FROM tblholidays  WHERE tblholidays.FldDate = F_ldDate    limit 1 );
		IF varid > 0 then
			SET F_ldId = varid;
			IF F_ldId > 0 then
				UPDATE tblholidays    SET flddeleted = 0 ,  FldTitle = F_ldTitle,   FldDate = F_ldDate    WHERE tblholidays .Fldid = F_ldId ;
				SELECT F_ldId ;
			END if ;
		END if ;
		IF F_ldId = 0 then
            INSERT tblholidays (   FldTitle,    FldDate  )    VALUES (      F_ldTitle,    F_ldDate );
		    SELECT LAST_INSERT_ID();
		END if;
END if;
         
         
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPlayouts_html_AddUpdate` */;
DELIMITER ;;
CREATE  PROCEDURE `SPlayouts_html_AddUpdate`(
IN `i_d` BIGINT, 
IN `f_element_id` BIGINT, 
 IN `f_html`longtext CHARSET utf8mb4 
)
BEGIN
 
declare co integer ;
       set   co  =  (select count(id ) as id   from layouts_html where f_element_id = felement_id  ) ;
       
       if  co > 0  then
        set i_d =   (select  id       from layouts_html where f_element_id = felement_id   ) ;
       end if ;

  IF i_d > 0 THEN
      
   
       UPDATE layouts_html
            SET 
                fhtml=f_html  
                
               
         WHERE id = i_d ;

		 select i_d  as id;
   
  END IF;

  IF i_d = 0 THEN
 
             
              INSERT  INTO  layouts_html (fhtml , felement_id )
               VALUES (f_html , f_element_id ) ;
                  

    SELECT  LAST_INSERT_ID() as id;
  END IF;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPLevel1_UpdateHTML` */;
DELIMITER ;;
CREATE  PROCEDURE `SPLevel1_UpdateHTML`(
IN `i_d` BIGINT, 
IN `f_html` LONGTEXT CHARSET utf8mb4
)
BEGIN

  declare f_last_update datetime ;
 set f_last_update =   now() ;

  IF i_d > 0 THEN
      
   
       UPDATE nobat_level1
            SET 
                fhtml=f_html   , flast_update=f_last_update    WHERE Fldid = i_d ; 
                select i_d  as id;
   
  END IF;

  
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPLevel2_UpdateHTML` */;
DELIMITER ;;
CREATE  PROCEDURE `SPLevel2_UpdateHTML`(
IN `i_d` BIGINT, 
IN `f_html` LONGTEXT CHARSET utf8mb4
)
BEGIN

  declare f_last_update datetime ;
 set f_last_update =   now() ;

  IF i_d > 0 THEN
      
   
       UPDATE  nobat_level2_items
            SET 
                fhtml=f_html   , flast_update=f_last_update    WHERE Fldid = i_d ; 
                select i_d  as id;
   
  END IF;

  
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPNobat_AddUpdateNobat_Level1` */;
DELIMITER ;;
CREATE  PROCEDURE `SPNobat_AddUpdateNobat_Level1`(
IN `F_ldTitle` VARCHAR(255) CHARSET utf8mb4, 
IN `F_ldVoicePath` VARCHAR(3500) CHARSET utf8mb4, 
IN `F_ldPcName` VARCHAR(255) CHARSET utf8mb4, 
IN `F_ldActive` TINYINT, 
IN `i_d_` BIGINT, 
IN `F_ldJobTitle` VARCHAR(255) CHARSET utf8mb4, 
IN `F_ldSex` VARCHAR(255) CHARSET utf8mb4, 
IN `F_mobile` VARCHAR(255) CHARSET utf8mb4, 
IN `F_ldldidDB` BIGINT, 
IN `F_ldActive_OV` TINYINT, 
IN `F_ldVoicePath_OV` VARCHAR(3500) CHARSET utf8mb4, 
IN `F_ldShortCode` INT, 
IN `F_ldIdlevel2_Items` INT, 
IN `F_ldWebDesc` LONGTEXT CHARSET utf8mb4)
BEGIN

  
   
 declare OldShirtc int ;
 
  IF i_d_ > 0 THEN
  
    set  OldShirtc = ( select FldShortCode  from nobat_level1 where Fldid = i_d_  );
    if OldShirtc <> F_ldShortCode then
			if ( select count(*)  from nobat_level1 where FldShortCode = F_ldShortCode)>0 then
					set F_ldShortCode = OldShirtc ;
                END IF;      
        END IF;    
        
        	   UPDATE nobat_level1
            SET 
               Fldtitle = F_ldTitle, 
			   FldWebDesc=F_ldWebDesc,
		FldMobile=F_mobile,
			   FldShortCode=F_ldShortCode,
              
               FldActive = F_ldActive, 
               FldJobTitle = F_ldJobTitle, 
               FldSex = F_ldSex,
               FldPcName=F_ldPcName,
			   FldActive_OV=F_ldActive_OV,
			   
			   FldIdlevel2_Items=F_ldIdlevel2_Items , flast_update=now()
         WHERE nobat_level1.Fldid = i_d_ ;

		 select i_d_  as Fldid;
   
  END IF;

  IF i_d_ = 0 THEN
 
  		 	 if ( select count(*)  from nobat_level1 where FldShortCode = F_ldShortCode)>0 then 
			 set F_ldShortCode = ( select  ifnull( MAX(FldShortCode),100) + 1  from  nobat_level1 ) ;
             end if ;
             	 
              INSERT  INTO  nobat_level1(
               Fldtitle, 
               Fldvoicepath, 
               FldPcName, 
               FldActive, 
               FldJobTitle, 
               FldSex,FldidDB ,FldActive_OV,FldVoicePath_OV ,FldShortCode,FldIdlevel2_Items,FldWebDesc , flast_update ,FldMobile)
               VALUES (
                  F_ldTitle, 
                  F_ldVoicePath, 
                  F_ldPcName, 
                  F_ldActive, 
                  F_ldJobTitle, 
                  F_ldSex,F_ldldidDB,F_ldActive_OV ,F_ldVoicePath_OV ,F_ldShortCode,F_ldIdlevel2_Items,F_ldWebDesc , now() , F_mobile) ;
                  

    SELECT  LAST_INSERT_ID() as Fldid;
  END IF;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPNobat_AddUpdateNobat_Level2_Items` */;
DELIMITER ;;
CREATE  PROCEDURE `SPNobat_AddUpdateNobat_Level2_Items`(IN `Title` VARCHAR(255) CHARSET utf8mb4, IN `VoicePath` VARCHAR(3500) CHARSET utf8mb4, IN `PcName` VARCHAR(255) CHARSET utf8mb4, IN `F_ldActive` TINYINT, IN `id_` BIGINT, IN `F_ldidDB` BIGINT, IN `F_ldIdlevel3_Items` BIGINT, IN `F_ldWebDesc` LONGTEXT CHARSET utf8mb4)
BEGIN

 
 
  IF id_ > 0 THEN

       UPDATE   nobat_level2_items
            SET 
               Fldtitle = Title, 
			    FldWebDesc=F_ldWebDesc,
               Fldvoicepath = VoicePath, 
               FldActive = F_ldActive,
			   FldIdlevel3_Items= F_ldIdlevel3_Items  , flast_update=now()
         WHERE nobat_level2_items.Fldid = id_ ;

		 select id_  as Fldid;
   
  END IF;

  IF id_ = 0 THEN
 
 
             INSERT   nobat_level2_items(Fldtitle, Fldvoicepath, FldPcName, FldActive,FldidDB,FldIdlevel3_Items,FldWebDesc , flast_update)
               VALUES (Title, VoicePath, PcName, F_ldActive,FldidDB,F_ldIdlevel3_Items,F_ldWebDesc , now()) ;
                  

    SELECT  LAST_INSERT_ID() as Fldid;
  END IF;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPNobat_AddUpdateRating` */;
DELIMITER ;;
CREATE  PROCEDURE `SPNobat_AddUpdateRating`(
 
 in      F_ldid bigint,
 in     F_ldIdCustomer bigint,
  in    F_ldIdNobat bigint,
 in     F_ldRate int(10),
 in     F_ldStatus tinyint(2),
 in     F_ldComment longtext   CHARSET utf8mb4 ,
 in     F_ldSuggest tinyint(2)
 )
BEGIN
   DECLARE   varid bigint ;
   
   
   if F_ldRate<20 then
   set F_ldRate=20 ;
end if;
     

      IF  F_ldid > 0  then
	  
		UPDATE  rating
            SET 
               FldRate = F_ldRate, 
			   FldComment=F_ldComment ,
				 FldStatus=1 ,
				 FldSuggest = F_ldSuggest
         WHERE   Fldid = F_ldid  ;

		 select F_ldid as id ;

		end if ;
      IF F_ldId = 0 then
          
		
		     SET varid =   (   SELECT   Fldid   FROM rating  WHERE  FldIdNobat = F_ldIdNobat  limit 1  ) ;
		  IF  varid > 0 then
           SET F_ldId = varid ;
 end if ;
             IF F_ldId > 0 then
			  
         UPDATE rating    SET   FldRate = F_ldRate, 
			   FldComment=F_ldComment, flddeleted = 0  ,  FldSuggest = F_ldSuggest
		 WHERE Fldid = F_ldId ;
		 
		  SELECT F_ldId as id ;
         END if;
      IF F_ldId = 0 then
          
            INSERT rating (FldIdCustomer,FldIdNobat ,  FldRate, FldStatus ,
		 FldComment , FldSuggest  )    VALUES (F_ldIdCustomer,F_ldIdNobat ,  F_ldRate, 1 ,
		 F_ldComment , F_ldSuggest ) ;
			 
            SELECT last_insert_id() as id ;

         END if ;
   END if ;
     
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPNobat_AddUpdate_Nobat_AllNobats` */;
DELIMITER ;;
CREATE  PROCEDURE `SPNobat_AddUpdate_Nobat_AllNobats`(IN `Title` VARCHAR(255) CHARSET utf8mb4, IN `VoicePath` VARCHAR(255) CHARSET utf8mb4, IN `PcName` VARCHAR(255) CHARSET utf8mb4, IN `A_ctive` TINYINT(1), IN `fid` BIGINT, IN `idLastLevel` BIGINT, IN `LastLevel` SMALLINT, IN `FDate` DATETIME, IN `FTimeStart` INT, IN `FTimeEnd` INT, IN `FTimeStartSTR` VARCHAR(255) CHARSET utf8mb4, IN `FTimeEndSTR` VARCHAR(255) CHARSET utf8mb4)
BEGIN

   
   
   
   
   
   
   
   
   
   
   
   
   
   
IF fid > 0 THEN
    UPDATE nobat_allnobats
    SET Fldtitle = Title,
        Fldvoicepath = VoicePath,
        FldActive = A_ctive,
        fldidLastLevel = idLastLevel,
        fldLastLevel = LastLevel,
        FldDate =  ifnull(FDate, now()),
        FldTimeStart = FTimeStart,
        FldTimeEnd = FTimeEnd,
         FldPcName = PcName,
        FldTimeStartSTR = FTimeStartSTR,
        FldTimeEndSTR = FTimeEndSTR
    WHERE Fldid = fid;
  END IF;

  IF fid = 0 THEN
    INSERT INTO nobat_allnobats (Fldtitle, Fldvoicepath, FldActive,
    fldidLastLevel, fldLastLevel, FldDate, FldTimeStart, FldTimeEnd, FldTimeStartSTR, FldTimeEndSTR , FldPcName)
      VALUES (Title, VoicePath, A_ctive, idLastLevel, LastLevel,  ifnull(FDate, now()), FTimeStart, FTimeEnd, FTimeStartSTR, FTimeEndSTR,PcName);
    SELECT
      LAST_INSERT_ID();
  END IF;
  
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPNobat_AllNobats_Aprov` */;
DELIMITER ;;
CREATE  PROCEDURE `SPNobat_AllNobats_Aprov`(IN t_ype  int , IN idNobat  int ,IN FldInsertUserRole VARCHAR(1055) CHARSET utf8mb4  )
BEGIN
   
 	 
update  nobat_allnobats set FldAproved = t_ype  , FldInsertUser=FldInsertUserRole
  where  Fldid=idNobat and FldDeleted=0    and (  nobat_allnobats.FldFlag=1 or  nobat_allnobats.FldFlag=2  or  nobat_allnobats.FldFlag=3) ;
         
     
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPNobat_AllNobats_Laghve` */;
DELIMITER ;;
CREATE  PROCEDURE `SPNobat_AllNobats_Laghve`(IN id  bigint   )
BEGIN
   
   call SPNobat_DeactiveNearNobats();
   	  	 
 UPDATE nobat_allnobats SET FldMobileNO=NULL, FldCodeMeli=NULL, FldCallTime=NULL ,FldCommentVoicePath=NULL, FldCallerid=NULL, FldFlag=0, FldIdCustomer=NULL  WHERE Fldid =  id ;
         
     
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPnobat_allnobats_Level1Nobats` */;
DELIMITER ;;
CREATE  PROCEDURE `SPnobat_allnobats_Level1Nobats`(IN `Wheree` VARCHAR(1055) CHARSET utf8mb4, IN `limitt` INT)
BEGIN
   
   call SPNobat_DeactiveNearNobats();
   	  	  if  length(LTRIM(rtrim(Wheree)))<2  then
	  set  Wheree=' 1=1' ;
      end if;
      
        SET @stmt_str = CONCAT('SELECT  nobat_allnobats.Fldid, nobat_allnobats.FldDate,  fMilladyToShamsi_NoTime(nobat_allnobats.FldDate) AS FldDatePER, nobat_allnobats.FldTimeStartSTR, nobat_allnobats.FldTimeEndSTR, nobat_allnobats.Fldtitle, 
                         nobat_allnobats.FldCallTime, nobat_allnobats.FldCallerid, nobat_allnobats.FldCodeMeli, nobat_allnobats.FldMobileNO, nobat_allnobats.FldIdCustomer, nobat_allnobats.FldCommentVoicePath, 
                          fMilladyToShamsi_ByTime(nobat_allnobats.FldCallTime) AS PersianCallTime, nobat_allnobats.FldidLastLevel, nobat_allnobats.FldLastLevel, nobat_allnobats.FldFlag, nobat_allnobats.FldidDB, 
                         nobat_allnobats.Fldvoicepath, nobat_allnobats.FldPcName, nobat_allnobats.FldDeleted, nobat_allnobats.FldTimeEnd, nobat_allnobats.FldActive, nobat_allnobats.FldTimeStart, tblwebusers.FldName, 
                         tblwebusers.FldLastName, tblwebusers.FldSex, nobat_allnobats.FldAproved
FROM            nobat_allnobats LEFT OUTER JOIN
                         tblwebusers ON nobat_allnobats.FldIdCustomer = tblwebusers.Fldid
WHERE        (nobat_allnobats.FldDeleted = 0)  ', Wheree, '
ORDER BY Fldid   limit ', limitt, ' ');
  PREPARE stmt FROM @stmt_str;
  EXECUTE stmt;
  DEALLOCATE PREPARE stmt;
   
     
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPNobat_AllNobats_Level1NobatsFarakhan` */;
DELIMITER ;;
CREATE  PROCEDURE `SPNobat_AllNobats_Level1NobatsFarakhan`(IN `idlevel1` int )
BEGIN
   
   call SPNobat_DeactiveNearNobats();
 SELECT   (@row_number := @row_number + 1)   AS RowNumber  ,  nobat_allnobats.Fldid, nobat_allnobats.FldDate,  fMilladyToShamsi_NoTime(nobat_allnobats.FldDate) AS FldDatePER, nobat_allnobats.FldTimeStartSTR, nobat_allnobats.FldTimeEndSTR, nobat_allnobats.Fldtitle, 
                         nobat_allnobats.FldCallTime, nobat_allnobats.FldCallerid, nobat_allnobats.FldCodeMeli, nobat_allnobats.FldMobileNO, nobat_allnobats.FldIdCustomer, nobat_allnobats.FldCommentVoicePath, 
                          fMilladyToShamsi_ByTime(nobat_allnobats.FldCallTime) AS PersianCallTime, nobat_allnobats.FldidLastLevel, nobat_allnobats.FldLastLevel, nobat_allnobats.FldFlag, nobat_allnobats.FldidDB, 
                         nobat_allnobats.Fldvoicepath, nobat_allnobats.FldPcName, nobat_allnobats.FldDeleted, nobat_allnobats.FldTimeEnd, nobat_allnobats.FldActive, nobat_allnobats.FldTimeStart, tblwebusers.FldName, 
                         tblwebusers.FldLastName, tblwebusers.FldSex, nobat_allnobats.FldAproved , nobat_allnobats.FldDesc
FROM            nobat_allnobats LEFT OUTER JOIN
                         tblwebusers ON nobat_allnobats.FldIdCustomer = tblwebusers.Fldid  , (SELECT @row_number := 0) AS x
WHERE        (nobat_allnobats.FldDeleted = 0)    and  DATE_FORMAT( nobat_allnobats.FldDate,"%Y/%m/%d") = DATE_FORMAT( now(),"%Y/%m/%d") and  nobat_allnobats.FldidLastLevel = idlevel1     and 
  ( nobat_allnobats.FldFlag=1 or nobat_allnobats.FldFlag=2  or nobat_allnobats.FldFlag=3)  
ORDER BY Fldid    ; 
   
     
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPNobat_AllNobats_ReturnDatebyRowNumber` */;
DELIMITER ;;
CREATE  PROCEDURE `SPNobat_AllNobats_ReturnDatebyRowNumber`(IN `fromdate` DATE, IN `todate` DATE, IN `flastleve` INT, IN `fidlastlevel` INT)
BEGIN
   
  call SPNobat_DeactiveNearNobats();

	  	    select  * ,(@row_number := @row_number + 1)   AS RowNumber   from ( 
          SELECT distinct  DATE_FORMAT( t.flddate,'%Y-%m-%d') AS flddate   
        FROM nobat_allnobats AS t , (SELECT @row_number := 0) AS x
      where t.flddeleted=0 and  t.FldActive=1  AND t.FldFlag=0 AND t.FldLastLevel=flastleve  AND  t.FldidLastLevel=fidlastlevel and  
      FldDate BETWEEN fromdate AND  todate  ) as r  order by  r.flddate  ;
 
     
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPNobat_AllNobats_search` */;
DELIMITER ;;
CREATE  PROCEDURE `SPNobat_AllNobats_search`(IN `Wheree` VARCHAR(1055) CHARSET utf8mb4, IN `limitt` INT)
BEGIN
if  length(LTRIM(rtrim(Wheree)))<2 then
	  set  Wheree=' 1=1' ;
end if;

 SET @stmt_str = CONCAT('  SELECT   
  nobat_allnobats.Fldid,
  nobat_allnobats.FldDate,
    fMilladyToShamsi_NoTime( nobat_allnobats.FldDate) as FldDatePER ,
  nobat_allnobats.FldTimeStartSTR,
  nobat_allnobats.FldTimeEndSTR,
  nobat_allnobats.Fldtitle,
  nobat_allnobats.FldCallTime,
  nobat_allnobats.FldCallerid,
  nobat_allnobats.FldCodeMeli,
  nobat_allnobats.FldMobileNO,
  nobat_allnobats.FldIdCustomer,
  nobat_allnobats.FldCommentVoicePath,
 fMilladyToShamsi_ByTime(nobat_allnobats.FldCallTime) AS PersianCallTime,
  nobat_allnobats.FldidLastLevel,
  nobat_allnobats.FldLastLevel,
  nobat_allnobats.FldFlag,
  nobat_allnobats.FldidDB,
  nobat_allnobats.Fldvoicepath,
  nobat_allnobats.FldPcName,
  nobat_allnobats.FldDeleted,
  nobat_allnobats.FldTimeEnd,
  nobat_allnobats.FldActive,
  nobat_allnobats.FldTimeStart
FROM nobat_allnobats
WHERE nobat_allnobats.FldDeleted = 0
 and ', Wheree, '
ORDER BY Fldid   limit ', limitt, ' ');
  PREPARE stmt FROM @stmt_str;
  EXECUTE stmt;
  DEALLOCATE PREPARE stmt;
  
  
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPNobat_AllNobats_UnLockNobat` */;
DELIMITER ;;
CREATE  PROCEDURE `SPNobat_AllNobats_UnLockNobat`(IN id  bigint   )
BEGIN
   
   call SPNobat_DeactiveNearNobats();
   	  	 
 UPDATE nobat_allnobats SET FldMobileNO=NULL, FldCodeMeli=NULL, FldCallTime=NULL ,FldCommentVoicePath=NULL, 
 FldCallerid=NULL, FldFlag=0, FldIdCustomer=NULL    , FldLocked=false , 
     FldLockedTime=null , FldTranUID = null        WHERE Fldid =  id ;
         
     
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPNobat_AllNobats_UserNobats` */;
DELIMITER ;;
CREATE  PROCEDURE `SPNobat_AllNobats_UserNobats`(in idCustomer bigint , idLevel1 bigint)
BEGIN
  call SPNobat_DeactiveNearNobats();
 
 if idLevel1 =0 then
 
SELECT     ffffConvertMilladyToGHamary(nobat_allnobats.FldDate) AS FldDate, nobat_allnobats.FldAproved, nobat_allnobats.Fldid, nobat_allnobats.FldidLastLevel, nobat_allnobats.FldFlag, nobat_allnobats.Fldtitle, 
                         nobat_allnobats.FldActive, nobat_allnobats.FldCallerid, nobat_allnobats.FldTimeStartSTR, nobat_allnobats.FldCodeMeli, nobat_allnobats.FldMobileNO,  ffffConvertMilladyToGHamary(nobat_allnobats.FldInsertTime) 
  AS inserTime, nobat_allnobats.FldDesc, nobat_level1.Fldtitle AS FldtitleLevel1, CASE WHEN (CAST(FldDate AS date) < CAST(now() AS date)) THEN - 1 WHEN (CAST(FldDate AS date) > CAST(now() AS date)) 
                         THEN 1 ELSE 2 END AS fldState,
                             (SELECT         ifnull(FldRate, 0) AS Expr1
                               FROM            rating
                               WHERE        (FldIdNobat = nobat_allnobats.Fldid) AND (flddeleted = 0)  limit 1 ) AS rate,
                             (SELECT       ifnull(FldSuggest, 0) AS Expr1
                               FROM            rating AS Rating_1
                               WHERE        (FldIdNobat = nobat_allnobats.Fldid) AND (flddeleted = 0)   limit 1  ) AS FldSuggest,  ffffConvertMilladyToGHamary(nobat_allnobats.FldCallTime)as FldCallTime
FROM            nobat_allnobats INNER JOIN
                         nobat_level1 ON nobat_allnobats.FldidLastLevel = nobat_level1.Fldid
WHERE        (nobat_allnobats.FldIdCustomer = idCustomer) AND (nobat_allnobats.FldDeleted = 0)
ORDER BY fldState DESC  ;
 end if ;
 if idLevel1 > 0 then
 
SELECT     ffffConvertMilladyToGHamary(nobat_allnobats.FldDate) as FldDate , nobat_allnobats.FldAproved ,   nobat_allnobats.Fldid, nobat_allnobats.FldidLastLevel, nobat_allnobats.FldFlag, nobat_allnobats.Fldtitle, nobat_allnobats.FldActive, nobat_allnobats.FldCallerid, nobat_allnobats.FldTimeStartSTR, 
                         nobat_allnobats.FldCodeMeli, nobat_allnobats.FldMobileNO, ffffConvertMilladyToGHamary(nobat_allnobats.FldInsertTime)
						 AS inserTime, nobat_allnobats.FldDesc, nobat_level1.Fldtitle AS FldtitleLevel1 , 
  CASE 
     WHEN  (CAST(FldDate as date) < CAST(now() as date))   THEN -1   
     WHEN (CAST(FldDate as date) > CAST(now() as date)) THEN  1  
     ELSE 2  
  END as fldState,     (select    ifnull( FldRate ,0)  from rating where FldIdNobat =  nobat_allnobats.Fldid and FldDeleted=0  limit 1) as rate
    ,    (select  ifnull( FldSuggest ,0) from rating where FldIdNobat =  nobat_allnobats.Fldid and FldDeleted=0   limit 1 ) as FldSuggest ,  ffffConvertMilladyToGHamary(nobat_allnobats.FldCallTime)as FldCallTime
FROM            nobat_allnobats INNER JOIN
                         nobat_level1 ON nobat_allnobats.FldidLastLevel = nobat_level1.Fldid
WHERE        (nobat_allnobats.FldIdCustomer = idCustomer) AND (nobat_allnobats.FldDeleted = 0) and ( nobat_level1.Fldid=idLevel1)
order by fldState   desc ;
end if;


END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPNobat_AllSMSSended_UserMessages` */;
DELIMITER ;;
CREATE  PROCEDURE `SPNobat_AllSMSSended_UserMessages`(   
in idCustomer bigint ,
   in count bigint  )
BEGIN

SELECT        allsmssended.tell, allsmssended.message,   allsmssended.insertTime  , allsmssended.result, tblwebusers.Fldid
 
FROM            allsmssended INNER JOIN
                         tblwebusers ON allsmssended.tell = tblwebusers.FldMobile
						 where tblwebusers.fldid = idCustomer
						 order by allsmssended.insertTime desc limit count  ;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPNobat_DeactiveNearNobats` */;
DELIMITER ;;
CREATE  PROCEDURE `SPNobat_DeactiveNearNobats`()
BEGIN
declare  Timenow varchar(5) ;
 declare tp varchar(100);
 declare  Timen int;
 set tp = concat( 'AutoDisabel Datetime: ' , cast( now() as char(40)) );

	set    Timenow = ( select DATE_FORMAT(NOW(), '%H:%i'));
	 

	  set Timen  =( select fConvertTimeToInt(Timenow) + 60 ) ;
         
	    UPDATE nobat_allnobats SET FldActive=0 , flddesc=tp   WHERE    FldActive=1 AND fldflag=0      AND   date( FldDate)< date(now())  ;
	  UPDATE nobat_allnobats SET FldActive=0 , flddesc=tp   WHERE    FldActive=1 AND fldflag=0   and  FldTimeEnd <=  Timen    AND   date(FldDate) = date(now())  ;
      
       UPDATE nobat_allnobats SET FldMobileNO=NULL, FldCodeMeli=NULL, FldCallTime=NULL ,FldCommentVoicePath=NULL, 
 FldCallerid=NULL, FldFlag=0, FldIdCustomer=NULL    , FldLocked=false , 
     FldLockedTime=null , FldTranUID = null        where FldLocked= true  and  (  FldIdTransaction=0 or FldIdTransaction=null )   and  TIMESTAMPDIFF(MINUTE,FldLockedTime,NOW()) > 15     ;
      
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPNobat_GetFixLockedNobatById` */;
DELIMITER ;;
CREATE  PROCEDURE `SPNobat_GetFixLockedNobatById`(
 in  F_ldid bigint,
 in     F_ldCallerid varchar(100)  CHARSET utf8mb4 , 
  in    F_ldCodeMeli varchar(100)  CHARSET utf8mb4,
  in   F_ldMobileNO varchar(100)  CHARSET utf8mb4,
  in   F_pid varchar(500)  CHARSET utf8mb4 ,
 in     F_ldIdCustomer  bigint)
BEGIN

  declare flag int ;
	  declare A_ctive tinyint(1) ;
       declare tranID bigint ; 
       
      set flag = ( select   FldFlag   from nobat_allnobats where Fldid=F_ldid and FldDeleted=0);
      set A_ctive = ( select   FldActive   from nobat_allnobats where Fldid=F_ldid and FldDeleted=0);
      set tranID = ( select   ID   from transactions  where  PID= F_pid  and IDRef=F_ldid  );
      
      
	  if   flag =1 and A_ctive = 1       and tranID>0  then
	  UPDATE nobat_allnobats SET FldCallTime=now() , FldCommentVoicePath=NULL,
      FldCallerid=F_ldCallerid,  FldFlag=1,  FldIdCustomer=F_ldIdCustomer  , FldCodeMeli=F_ldCodeMeli 
	  ,  FldMobileNO=F_ldMobileNO , FldIdTransaction  = tranID  WHERE Fldid = F_ldid and FldFlag=1  and FldLocked=1 and   FldTranUID = F_pid  ;
	  select  F_ldid as id ;
	 
	  else
	  select -1  as id ;
     
     end if;
     
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPNobat_GetLockNobatById` */;
DELIMITER ;;
CREATE  PROCEDURE `SPNobat_GetLockNobatById`(
 in  F_ldid bigint,
 in     F_ldCallerid varchar(100)  CHARSET utf8mb4 , 
  in    F_ldCodeMeli varchar(100)  CHARSET utf8mb4,
  in   F_ldMobileNO varchar(100)  CHARSET utf8mb4,
 in     F_ldIdCustomer  bigint,
   in   F_UID varchar(150)  CHARSET utf8mb4)
BEGIN

  declare flag int ;
	  declare A_ctive tinyint(1) ;
      
      set flag = ( select   FldFlag   from nobat_allnobats where Fldid=F_ldid and FldDeleted=0);
            set A_ctive = ( select   FldActive   from nobat_allnobats where Fldid=F_ldid and FldDeleted=0);
 
	  if   flag =0 and A_ctive = 1  then
	 UPDATE nobat_allnobats SET FldCallTime=now() ,FldCommentVoicePath=NULL, FldLocked=true , 
     FldLockedTime=now() , FldTranUID = F_UID ,
     FldCallerid=F_ldCallerid,FldFlag=1,FldIdCustomer=F_ldIdCustomer  , FldCodeMeli=F_ldCodeMeli 
	 ,  FldMobileNO=F_ldMobileNO  WHERE Fldid = F_ldid and FldFlag=0       ;
	 select   * from nobat_allnobats  where fldid= F_ldid ;
	 
	 else
	 select -1  as id ;
     
     end if;
     
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPNobat_GetNobatById` */;
DELIMITER ;;
CREATE  PROCEDURE `SPNobat_GetNobatById`(
 in  F_ldid bigint,
 in     F_ldCallerid varchar(100)  CHARSET utf8mb4 , 
  in    F_ldCodeMeli varchar(100)  CHARSET utf8mb4,
  in   F_ldMobileNO varchar(100)  CHARSET utf8mb4,
 in     F_ldIdCustomer  bigint)
BEGIN

  declare flag int ;
	  declare A_ctive tinyint(1) ;
      
      set flag = ( select   FldFlag   from nobat_allnobats where Fldid=F_ldid and FldDeleted=0);
            set A_ctive = ( select   FldActive   from nobat_allnobats where Fldid=F_ldid and FldDeleted=0);
 
	  if   flag =0 and A_ctive = 1  then
	 UPDATE nobat_allnobats SET FldCallTime=now() ,FldCommentVoicePath=NULL,  FldCallerid=F_ldCallerid,FldFlag=1,FldIdCustomer=F_ldIdCustomer  , FldCodeMeli=F_ldCodeMeli 
	 ,  FldMobileNO=F_ldMobileNO  WHERE Fldid = F_ldid and FldFlag=0    ;
	 select  F_ldid as id ;
	 
	 else
	 select -1  as id ;
     
     end if;
     
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPNobat_Level1_FindById` */;
DELIMITER ;;
CREATE  PROCEDURE `SPNobat_Level1_FindById`(IN `id` INT)
BEGIN
Select *  From  nobat_level1   WHERE Fldid =  id   and FldDeleted = 0   ;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPNobat_Level1_FindByShortCode` */;
DELIMITER ;;
CREATE  PROCEDURE `SPNobat_Level1_FindByShortCode`(IN `ShortCode` BIGINT)
BEGIN
Select *  From  nobat_level1   WHERE FldShortCode =  ShortCode    and FldDeleted = 0    order by fldid desc ;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPNobat_Level1_GetLastShortCode` */;
DELIMITER ;;
CREATE  PROCEDURE `SPNobat_Level1_GetLastShortCode`()
BEGIN
 select  IFNULL( max(FldShortCode),100) + 1 as ShortCode  from  nobat_level1 ;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPNobat_Level1_Items_search` */;
DELIMITER ;;
CREATE  PROCEDURE `SPNobat_Level1_Items_search`(IN `Wheree` VARCHAR(1055) CHARSET utf8mb4, IN `limitt` INT)
BEGIN

  SET @stmt_str = CONCAT(' SELECT        								  nobat_level1.Fldid,  nobat_level1.IdCustomer, 
 ifnull( (select CONCAT( tyu.FldName , '' '' , tyu.FldLastName )  from  tblwebusers as tyu  where tyu.Fldid =  nobat_level1.IdCustomer ), '''') as   CustomerName , 
								  nobat_level1.fldvoicepath,
                                  nobat_level1.fldtitle,
                                  nobat_level1.fldactive,
								  nobat_level1.fldiddb,
                                  nobat_level1.fldsex,
                                  nobat_level1.fldjobtitle,
                                  nobat_level1.fldactive_ov,
                                  nobat_level1.fldvoicepath_ov,
                                  nobat_level1.fldshortcode,
                                    nobat_level1.FldWebDesc,
                                  nobat_level1.fldidlevel2_items ,
                                  nobat_level2_items.Fldtitle as Fldtitle2   ,    nobat_level2_items.furl as furllevel2 , nobat_level1.fimages,
                      nobat_level1.furl,
                      nobat_level1.fhtml,
                      nobat_level1.flast_update , FldMobile
FROM            nobat_level1 inner join nobat_level2_items on nobat_level1.fldidlevel2_items = nobat_level2_items.Fldid 
WHERE        (nobat_level1.FldDeleted = 0) and ', Wheree, '
ORDER BY  nobat_level1.Fldid  desc  limit ', limitt, ' ');
  PREPARE stmt FROM @stmt_str;
  EXECUTE stmt;
  DEALLOCATE PREPARE stmt;
  
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `SPNobat_Level2_FindById` */;
