-- Table structure for table `bank`
--

CREATE TABLE `bank` (
  `bankid` int(11) NOT NULL AUTO_INCREMENT,
  `bankname` varchar(256) NOT NULL,
  `bankdetails` text DEFAULT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `bankdate` date NOT NULL,
  `webApiId` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`bankid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `bank`
--


--
-- Table structure for table `bankaccount`
--

CREATE TABLE `bankaccount` (
  `accountid` int(11) NOT NULL AUTO_INCREMENT,
  `accountname` varchar(256) NOT NULL,
  `comment` text DEFAULT NULL,
  `accountnumber` varchar(256) NOT NULL,
  `accountbeginingbalance` decimal(10,2) NOT NULL,
  `accountdate` datetime NOT NULL,
  `accountcurrencytype` varchar(10) DEFAULT NULL,
  `bankid` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `visa` tinyint(4) NOT NULL DEFAULT 0,
  `visaDisPer` float NOT NULL DEFAULT 0,
  `treeId` int(11) NOT NULL DEFAULT 0,
  `webApiId` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`accountid`),
  KEY `bankid` (`bankid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `bankaccount`
--


--
-- Table structure for table `beneficiaries`
--

CREATE TABLE `beneficiaries` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `del` int(11) unsigned DEFAULT NULL,
  `sysdate` datetime DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `del_date` varchar(191) DEFAULT NULL,
  `deluserid` varchar(191) DEFAULT NULL,
  `area_id` int(11) unsigned DEFAULT NULL,
  `name` varchar(191) DEFAULT NULL,
  `nickname` varchar(191) DEFAULT NULL,
  `phone_no` int(11) unsigned DEFAULT NULL,
  `address` varchar(191) DEFAULT NULL,
  `age` int(11) unsigned DEFAULT NULL,
  `idnumber` varchar(255) DEFAULT NULL,
  `marital_status` int(11) unsigned DEFAULT NULL,
  `work` varchar(191) DEFAULT NULL,
  `workplace` varchar(191) DEFAULT NULL,
  `diseas` varchar(191) DEFAULT NULL,
  `status_description` varchar(191) DEFAULT NULL,
  `social_status` varchar(191) DEFAULT NULL,
  `health_status` varchar(191) DEFAULT NULL,
  `floors_no` int(11) unsigned DEFAULT NULL,
  `rooms_no` int(11) unsigned DEFAULT NULL,
  `rent` int(11) unsigned DEFAULT NULL,
  `bathroom` tinyint(1) unsigned DEFAULT NULL,
  `flooring` varchar(191) DEFAULT NULL,
  `ceiling` varchar(191) DEFAULT NULL,
  `walls` varchar(191) DEFAULT NULL,
  `lighting` varchar(191) DEFAULT NULL,
  `hall` varchar(191) DEFAULT NULL,
  `bedroom` varchar(191) DEFAULT NULL,
  `bathroom_desc` varchar(191) DEFAULT NULL,
  `kitchen` varchar(191) DEFAULT NULL,
  `cooker` tinyint(1) unsigned DEFAULT NULL,
  `cooker_no` varchar(191) DEFAULT NULL,
  `cooker_status` varchar(191) DEFAULT NULL,
  `cooker_notes` varchar(191) DEFAULT NULL,
  `washer` tinyint(1) unsigned DEFAULT NULL,
  `washer_no` varchar(191) DEFAULT NULL,
  `washer_status` varchar(191) DEFAULT NULL,
  `washer_notes` varchar(191) DEFAULT NULL,
  `fridge` tinyint(1) unsigned DEFAULT NULL,
  `fridge_no` varchar(191) DEFAULT NULL,
  `fridge_status` varchar(191) DEFAULT NULL,
  `fridge_notes` varchar(191) DEFAULT NULL,
  `fan` tinyint(1) unsigned DEFAULT NULL,
  `fan_no` varchar(191) DEFAULT NULL,
  `fan_status` varchar(191) DEFAULT NULL,
  `fan_notes` varchar(191) DEFAULT NULL,
  `phone` int(11) unsigned DEFAULT NULL,
  `phone_nu` varchar(191) DEFAULT NULL,
  `phone_status` varchar(191) DEFAULT NULL,
  `phone_notes` varchar(191) DEFAULT NULL,
  `casset` int(11) unsigned DEFAULT NULL,
  `casset_no` varchar(191) DEFAULT NULL,
  `casset_status` varchar(191) DEFAULT NULL,
  `casset_notes` varchar(191) DEFAULT NULL,
  `blender` tinyint(1) unsigned DEFAULT NULL,
  `blender_no` varchar(191) DEFAULT NULL,
  `blender_status` varchar(191) DEFAULT NULL,
  `blender_notes` varchar(191) DEFAULT NULL,
  `tv` tinyint(1) unsigned DEFAULT NULL,
  `tv_no` varchar(191) DEFAULT NULL,
  `tv_status` varchar(191) DEFAULT NULL,
  `tv_notes` varchar(191) DEFAULT NULL,
  `machine_name` varchar(191) DEFAULT NULL,
  `machine_no` varchar(191) DEFAULT NULL,
  `machine_status` varchar(191) DEFAULT NULL,
  `machine_notes` varchar(191) DEFAULT NULL,
  `bed` tinyint(1) unsigned DEFAULT NULL,
  `bed_no` varchar(191) DEFAULT NULL,
  `bed_status` varchar(191) DEFAULT NULL,
  `bed_notes` varchar(191) DEFAULT NULL,
  `wardrobe` tinyint(1) unsigned DEFAULT NULL,
  `wardrobe_no` varchar(191) DEFAULT NULL,
  `wardrobe_status` varchar(191) DEFAULT NULL,
  `wardrobe_notes` varchar(191) DEFAULT NULL,
  `couch` tinyint(1) unsigned DEFAULT NULL,
  `couch_no` varchar(191) DEFAULT NULL,
  `couch_status` varchar(191) DEFAULT NULL,
  `couch_notes` varchar(191) DEFAULT NULL,
  `salon` tinyint(1) unsigned DEFAULT NULL,
  `salon_no` varchar(191) DEFAULT NULL,
  `salon_status` varchar(191) DEFAULT NULL,
  `salon_notes` varchar(191) DEFAULT NULL,
  `chair` tinyint(1) unsigned DEFAULT NULL,
  `chair_no` varchar(191) DEFAULT NULL,
  `chair_status` varchar(191) DEFAULT NULL,
  `chair_notes` varchar(191) DEFAULT NULL,
  `library` int(11) unsigned DEFAULT NULL,
  `library_no` varchar(191) DEFAULT NULL,
  `library_status` varchar(191) DEFAULT NULL,
  `library_notes` varchar(191) DEFAULT NULL,
  `carpet` tinyint(1) unsigned DEFAULT NULL,
  `carpet_no` varchar(191) DEFAULT NULL,
  `carpet_status` varchar(191) DEFAULT NULL,
  `carpet_notes` varchar(191) DEFAULT NULL,
  `mat` tinyint(1) unsigned DEFAULT NULL,
  `mat_no` varchar(191) DEFAULT NULL,
  `mat_status` varchar(191) DEFAULT NULL,
  `mat_notes` varchar(191) DEFAULT NULL,
  `blanket` tinyint(1) unsigned DEFAULT NULL,
  `blanket_no` varchar(191) DEFAULT NULL,
  `blanket_status` varchar(191) DEFAULT NULL,
  `blanket_notes` varchar(191) DEFAULT NULL,
  `beneficiaries_needs` varchar(191) DEFAULT NULL,
  `observer_needs` varchar(191) DEFAULT NULL,
  `nearest_shop` varchar(191) DEFAULT NULL,
  `nearest_neighbour` varchar(191) DEFAULT NULL,
  `other_opinion` varchar(191) DEFAULT NULL,
  `observer_opinion` varchar(191) DEFAULT NULL,
  `final_opinion` int(11) unsigned DEFAULT NULL,
  `reasons` varchar(191) DEFAULT NULL,
  `update_date` datetime DEFAULT NULL,
  `updateuserid` double DEFAULT NULL,
  `charity_id` int(11) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `beneficiaries`
--


--
-- Table structure for table `beneficiaries_eco`
--

CREATE TABLE `beneficiaries_eco` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `beneficiaries_id` int(11) unsigned DEFAULT NULL,
  `income` varchar(191) DEFAULT NULL,
  `paying` varchar(191) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `beneficiaries_eco`
--


--
-- Table structure for table `beneficiaries_family`
--

CREATE TABLE `beneficiaries_family` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `beneficiaries_id` int(11) unsigned DEFAULT NULL,
  `name` varchar(191) DEFAULT NULL,
  `relation` varchar(191) DEFAULT NULL,
  `age` varchar(191) DEFAULT NULL,
  `id_number` varchar(191) DEFAULT NULL,
  `status` varchar(191) DEFAULT NULL,
  `job` varchar(191) DEFAULT NULL,
  `salary` varchar(191) DEFAULT NULL,
  `health_status` varchar(191) DEFAULT NULL,
  `education_status` varchar(191) DEFAULT NULL,
  `health__status` varchar(191) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `beneficiaries_family`
--


--
-- Table structure for table `billname`
--

CREATE TABLE `billname` (
  `billnameid` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(256) NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL,
  `billnamedate` date NOT NULL,
  `billtype` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0 => sellbill- 1 => buybill',
  `billtype2` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0=>normal bill-1=>optics bill',
  `ordertype` tinyint(4) NOT NULL DEFAULT 0 COMMENT ' 1 ',
  `saveeffect` tinyint(4) NOT NULL DEFAULT 0 COMMENT ' 1 ',
  `productAndQuantityOnly` int(11) NOT NULL DEFAULT 0,
  `posFlag` int(11) NOT NULL COMMENT 'parcode scale',
  `posCode` int(11) NOT NULL COMMENT 'parcode scale',
  `posType` tinyint(4) NOT NULL COMMENT 'parcode scale',
  `posWeightPrice` int(11) NOT NULL COMMENT 'parcode scale',
  `checkDigit` int(11) NOT NULL COMMENT 'parcode scale',
  `goodsReceiptApproval` text NOT NULL,
  `parcodeType` tinyint(4) NOT NULL DEFAULT 0,
  `defVisaAccount` int(11) NOT NULL DEFAULT 0,
  `defVisaAccountSelect` tinyint(4) NOT NULL DEFAULT 0,
  `isBankAccountTransfer` tinyint(4) NOT NULL DEFAULT 0,
  `taxOfDiscountVal` float NOT NULL DEFAULT 0,
  `taxOfDiscountPrint` tinyint(4) NOT NULL DEFAULT 0,
  `extraDiscountPlace` tinyint(4) NOT NULL DEFAULT 0,
  `extraDiscountFixed` tinyint(4) NOT NULL DEFAULT 0,
  `extraDiscountPer` float NOT NULL DEFAULT 0,
  `storeeffect` tinyint(4) NOT NULL DEFAULT 0,
  `taxname` varchar(256) NOT NULL DEFAULT 'ضريبه القيمة المضافة',
  PRIMARY KEY (`billnameid`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `billname`
--

INSERT INTO `billname` VALUES
(1,'Ùاتورة مشتريات',1,0,'2021-12-05',1,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,1,0,0,0,0,'ضريبه القيمة المضاÙة'),
(3,'Ùاتورة مبيعات',1,0,'2021-12-16',0,0,0,0,1,0,0,0,0,0,'',0,0,0,0,0,1,0,0,0,0,'ضريبه القيمة المضاÙة'),
(4,'Ùاتورة  مبيعات و مردودات',1,0,'2018-07-24',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,0,0,0,0,'ضريبه القيمة المضاÙة'),
(5,'Ùاتوره مردودات مبيعات ',1,0,'2021-12-16',0,0,0,0,0,0,0,0,0,0,'',0,1,0,0,0,1,0,0,0,0,'ضريبه القيمة المضاÙة'),
(6,'Ùاتوره مردودات مشتريات',1,0,'2021-12-05',1,0,0,0,0,0,0,0,0,0,'',0,1,0,0,0,1,0,0,0,0,'ضريبه القيمة المضاÙة');

--
-- Table structure for table `billoperation`
--

CREATE TABLE `billoperation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `userid` int(11) NOT NULL,
  `sydate` datetime NOT NULL,
  `del` tinyint(4) NOT NULL,
  `treeId` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `billoperation`
--


--
-- Table structure for table `billprint`
--

CREATE TABLE `billprint` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `billid` int(11) NOT NULL,
  `type` tinyint(4) NOT NULL COMMENT '0:with price, 1:without price',
  `is_printed` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0: not printed --- 1: printed',
  `sysdate` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `billprint`
--


--
-- Table structure for table `billprinter`
--

CREATE TABLE `billprinter` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `cats` varchar(400) NOT NULL,
  `userids` varchar(255) NOT NULL,
  `userid` int(11) NOT NULL,
  `sysdate` date NOT NULL,
  `del` tinyint(4) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `billprinter`
--


--
-- Table structure for table `billproperty`
--

CREATE TABLE `billproperty` (
  `billpropertyid` int(11) NOT NULL AUTO_INCREMENT,
  `billpropertyname` varchar(256) NOT NULL,
  `description` text NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`billpropertyid`)
) ENGINE=InnoDB AUTO_INCREMENT=129 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `billproperty`
--

INSERT INTO `billproperty` VALUES
(1,'مردودات','يوجد مردودات',0),
(2,'مورد','يوجد مورد ',0),
(3,'مخزن','يوجد مخزن ',0),
(4,'مندوب','مندوب',0),
(5,'باركود','يوجد باركود',0),
(6,'تاريخ','يوجد تاريخ',0),
(7,'جديد','يوجد منتج جديد',0),
(8,'ملاحظات','ملاحظات عن كل منتج',0),
(9,'الخصم ','الخصم  عن كل منتج',0),
(10,'كتابة العدد  بعد اختيار المنتج او الباركود','بعد اختيار المنتج او كتابة الباركود يتم عمل \r\nFocus\r\nعلى التكست لكتابة العدد او او على التكت لكتابة باركود جديد',0),
(11,'وحدة القياس','اظهار او اخÙاء وحدات قياس المنتج',0),
(12,'رقم السداد','اظهار او اخÙاء رقم السداد',0),
(13,'التعليق على الÙاتورة','اظهار او اخÙاء التعليق على الÙاتورة',0),
(15,'تنبيه بعدم وجود كمية متاحة من المنتج Ùي Ùاتورة المبيعات','تنبيه بعدم وجود كمية متاحة من المنتج Ùي Ùاتورة المبيعات',0),
(16,'اخÙاء البيع/الشراء','',0),
(17,'طباعة اخÙاء سريل الÙاتورة','',0),
(18,'طباعة اخÙاء الاسم عميل/مورد','',0),
(19,'print_client_name','',0),
(20,'طباعة الدين قبل','',0),
(21,'طباعة الدين بعد','',0),
(22,'طباعة الباركود','',0),
(23,'طباعة الوحدات','',0),
(24,'طباعة التعليق','',0),
(25,'طباعة الخصم','',0),
(26,'print_calac','',0),
(28,'طباعة a5','',0),
(29,'البيع من اكثر من مخزن','البيع من اكثر من مخزن',0),
(30,'طباعه المخزن','',0),
(31,'طباعه الصاÙى ','',0),
(32,'طباعه المدÙوع ','',0),
(33,'طباعه الباقى  ','',0),
(34,'يوجد ضريبه مبيعات','',0),
(35,'نوع السعر','',0),
(36,'نوع الÙاتوره','',0),
(37,'نوع الخصم لكل منتج','',0),
(38,'خاص بمراكز السيارات','',0),
(39,'ضريبه المبيعات المدÙوعه','ضريبه المبيعات المدÙوعه',0),
(40,'اكثر من عميل','اكثر من عميل',0),
(41,'bouns','',0),
(42,'اظهار عنوان العميل وتليÙونه','',0),
(43,'ترقيم الÙاتوره','',0),
(44,'اجمالى القطع','',0),
(45,'الخصم العام ','',0),
(46,'توقيع العميل والمندوب Ùى الطباعه','',0),
(47,'نوع الخصم العام','',0),
(48,'اضاÙه مراكز التلكلÙه','',0),
(49,'طباعة عدد القطع','',0),
(50,'طباعة الخصم العام','',0),
(51,'رقم عملية السداد - اختياري','',0),
(52,'المدÙوع والباقى Ùى Ùاتورة المبيعات يمين','',0),
(53,'اسم العميل المؤقت','',0),
(54,'المبلغ بعد الخصم','',0),
(56,'طباعة المبلغ بعد الخصم','',0),
(57,'عرض الوحدة وعددها','',0),
(58,'المدÙوع','',0),
(59,'المتبقى','',0),
(60,'رصيد الدين','',0),
(61,'الخصم العام على Ùاتورة المبيعات','',0),
(62,'عدد اللقطع','',0),
(63,'الباركود Ùي التÙاصيل','',0),
(64,'تصنيÙ المنتج Ùى الطباعة','تصنيÙ المنتج Ùى الطباعة',0),
(65,'رقم الÙاتورة','رقم الÙاتورة',0),
(66,'تطبيق نسب الخصم Ùى Ùاتورة الشراء','',0),
(67,'تطبيق نسب الخصم Ùى Ùاتورة الشراء','',0),
(68,'العدد','',0),
(69,'تÙعيل ميزان الباركود','تÙعيل ميزان الباركود',0),
(70,'a4','a4',0),
(71,'اظهار الوحدة الاخرى Ùى الطباعة','',0),
(72,'اظهار نوع السعر','',0),
(73,'طباعة','',0),
(74,'اظهار اسم الÙاتوره Ùى الطباعة','',0),
(75,'المدÙوع اكبر من قيمه الÙاتوره','',0),
(76,'طباعة بيانات','',0),
(77,'تجميع المنتجات المتشابه مع بعضها','',0),
(78,'ربط نوع السعر بالعميل','',0),
(79,'زر حÙظ يعود الى','',0),
(80,'البائع - المندوب إلزامى','',0),
(81,'اقرار استلام بضاعه','',0),
(82,'التعليق على العميل','',0),
(83,'طباعة المنتج بالمقاس واللون','',0),
(84,'شحن / توصيل','شحن او توصيل',0),
(85,'الحقوق','',0),
(86,'الهامش','',0),
(87,'نوع السعر مع كل صÙ','',0),
(88,'حجز الÙواتير','',0),
(89,'طباعة سعر المنتج قبل الخصم','',0),
(90,'الدÙع الالكترونى','',0),
(91,'خزنة الÙاتورة','',0),
(92,'طباعة التصنيÙ بدل المنتجات','',0),
(93,'ضريبة خصم','',0),
(94,'خصم اضاÙى','',0),
(95,'الاجمالي شامل ضريبة القيمة المضاÙة لمنتج واحد','',0),
(96,'Ùاتورة ضريبية','',0),
(97,'نوع التحصيل و تاريخ الاستحقاق','',0),
(98,'زر حÙظ و طباعة','',0),
(99,'عند تعديل سعر شراء المنتج تحديث الاسعار؟','',0),
(100,'الضريبة على كل منتج','',0),
(101,'البحث باسم التصنيÙ والمنتج Ùقط','',0),
(102,'تÙعيل الحÙظ التلقائى','',0),
(103,'الÙواتير المحÙوظة','',0),
(104,'الطول و العرض','',0),
(105,'نوع الÙاتورة مباشر او مستهلك','',0),
(106,'تاريخ التنÙيذ','',0),
(107,'نوع العميل','',0),
(108,'السيريال الثانوى','',0),
(109,'رد المنتجات لعميل','',0),
(110,'زر حÙظ و ارسال','',0),
(111,'تنبيه بتكرار المنتجات Ùى الÙاتورة','',0),
(112,'إظهار المخازن Ùي الطباعة Ùي حالة أكتر من مخزن','',0),
(113,'طرق المعرÙة','',0),
(114,'حالة الÙاتورة','',0),
(115,'مسمى الحالات','',0),
(116,'تاريخ التسليم Ùي الطباعة','',0),
(117,'العدد','',0),
(118,'طباعة الإجمالي قبل الخصم','',0),
(119,'العملاء Ùى Ùاتورة مشتريات','',0),
(120,'عرض خصم التصنيÙ Ùي المنتج','',0),
(121,'عرض إجمالي الخصومات','',0),
(122,'تنبيه لو سعر البيع اقل من سعر الشراء','',0),
(123,'رقم Ùاتورة البيع','',0),
(124,'Ùاتورة المراكز الطبية المتخصصة','',0),
(125,'الجهة الكÙيلة','',0),
(126,'العميل الاÙتراضى للÙاتوره','',0),
(127,'Ùاتوره بيع من عميل لمورد','',0),
(128,'الاضاÙة','',0);

--
-- Table structure for table `bills`
--

CREATE TABLE `bills` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `branchid` int(11) DEFAULT 0,
  `clientid` int(11) DEFAULT NULL,
  `receivedate` datetime DEFAULT NULL,
  `billno` varchar(255) DEFAULT NULL,
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `billdate` datetime DEFAULT NULL,
  `serverdate` datetime DEFAULT NULL COMMENT 'date when bill added',
  `kashfid` int(11) DEFAULT NULL,
  `cash` int(11) DEFAULT 0,
  `cashvalue` decimal(10,2) DEFAULT 0.00,
  `waitvalue` decimal(10,2) DEFAULT 0.00,
  `insurance` int(11) DEFAULT 0,
  `insurancecompanyid` int(11) DEFAULT NULL,
  `customerpercent` decimal(10,2) DEFAULT 0.00,
  `customermax` decimal(10,2) DEFAULT 0.00,
  `customercarry` decimal(10,2) DEFAULT 0.00,
  `companyaccept` decimal(10,2) DEFAULT 0.00,
  `companycarry` decimal(10,2) DEFAULT 0.00,
  `card` int(11) DEFAULT 0,
  `cardvalue` decimal(10,2) DEFAULT 0.00,
  `paymentnetworkid` int(11) DEFAULT NULL,
  `userid` int(11) DEFAULT NULL,
  `deleted` int(11) DEFAULT 0,
  `kashftype` int(11) NOT NULL DEFAULT 0 COMMENT '1 external - 0 internal ',
  `alloweddays` int(11) DEFAULT 0,
  `productstotalprice` decimal(10,2) DEFAULT NULL,
  `kashfvalue` decimal(10,2) DEFAULT NULL,
  `kashfdiscount` decimal(10,2) DEFAULT NULL,
  `netbillvalue` decimal(10,2) DEFAULT NULL,
  `discounttype` int(11) DEFAULT NULL COMMENT ' 1 direct   - 2 percent',
  `discountvalue` decimal(10,2) DEFAULT NULL COMMENT 'discValue',
  `finalnetbillvalue` decimal(10,2) DEFAULT NULL,
  `offline` int(11) DEFAULT 0 COMMENT '0 online - 1 offline',
  `uploaddate` datetime DEFAULT NULL,
  `pricetype` tinyint(4) DEFAULT NULL,
  `billstatus` int(11) DEFAULT NULL,
  `approvalno` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deliverytime` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `kashfplace` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `kashfdate` date DEFAULT NULL,
  `dailyentryid` int(11) DEFAULT NULL,
  `insdiscountpercent` decimal(10,2) DEFAULT 0.00 COMMENT 'insurance company discount percent',
  `clientPayReceiptVal` decimal(10,2) DEFAULT 0.00,
  `netdiscountpercent` decimal(10,2) DEFAULT 0.00 COMMENT 'network discount percent',
  `rondomtxt` varchar(255) DEFAULT NULL,
  `attatch` varchar(255) NOT NULL COMMENT 'for insurance only it is file in the bill by fatma',
  `approved` int(11) NOT NULL COMMENT '1accepted-2rejected this is for insurance only  by fatma',
  `saveid` int(11) NOT NULL COMMENT ' by fatma',
  `approveNo` varchar(255) NOT NULL COMMENT 'for insurance bills approve by fatma',
  `approveFile` varchar(255) NOT NULL COMMENT 'for insurance bills approve  by fatma',
  `notifSeen` int(11) NOT NULL COMMENT '0 not seen - 1 seen in notification',
  `payType` varchar(30) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `bills`
--


--
-- Table structure for table `billsbuy`
--

CREATE TABLE `billsbuy` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `branchid` int(11) DEFAULT 0,
  `clientid` int(11) DEFAULT NULL COMMENT 'which is supplierid',
  `receivedate` date DEFAULT NULL,
  `billno` varchar(255) DEFAULT NULL,
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `billdate` datetime DEFAULT NULL,
  `serverdate` datetime DEFAULT NULL COMMENT 'date when bill added',
  `kashfid` int(11) DEFAULT NULL,
  `cash` int(11) DEFAULT 0,
  `cashvalue` decimal(10,2) DEFAULT 0.00,
  `waitvalue` decimal(10,2) DEFAULT 0.00,
  `insurance` int(11) DEFAULT 0,
  `insurancecompanyid` int(11) DEFAULT NULL,
  `customerpercent` decimal(10,2) DEFAULT 0.00,
  `customermax` decimal(10,2) DEFAULT 0.00,
  `customercarry` decimal(10,2) DEFAULT 0.00,
  `companyaccept` decimal(10,2) DEFAULT 0.00,
  `companycarry` decimal(10,2) DEFAULT 0.00,
  `card` int(11) DEFAULT 0,
  `cardvalue` decimal(10,2) DEFAULT 0.00,
  `paymentnetworkid` int(11) DEFAULT NULL,
  `userid` int(11) DEFAULT NULL,
  `deleted` int(11) DEFAULT 0,
  `kashftype` int(11) NOT NULL DEFAULT 0 COMMENT '1 external - 0 internal ',
  `alloweddays` int(11) DEFAULT 0,
  `productstotalprice` decimal(10,2) DEFAULT NULL,
  `kashfvalue` decimal(10,2) DEFAULT NULL,
  `kashfdiscount` decimal(10,2) DEFAULT NULL,
  `netbillvalue` decimal(10,2) DEFAULT NULL,
  `discounttype` int(11) DEFAULT NULL COMMENT ' 1 direct   - 2 percent',
  `discountvalue` decimal(10,2) DEFAULT NULL COMMENT 'discValue',
  `finalnetbillvalue` decimal(10,2) DEFAULT NULL,
  `offline` int(11) DEFAULT 0 COMMENT '0 online - 1 offline',
  `uploaddate` datetime DEFAULT NULL,
  `pricetype` tinyint(4) DEFAULT NULL,
  `billstatus` int(11) DEFAULT NULL,
  `approvalno` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deliverytime` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `kashfplace` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `kashfdate` date DEFAULT NULL,
  `dailyentryid` int(11) DEFAULT NULL,
  `insdiscountpercent` decimal(10,2) DEFAULT 0.00 COMMENT 'insurance company discount percent',
  `clientPayReceiptVal` decimal(10,2) DEFAULT 0.00,
  `netdiscountpercent` decimal(10,2) DEFAULT 0.00 COMMENT 'network discount percent',
  `rondomtxt` varchar(255) DEFAULT NULL,
  `attatch` varchar(255) NOT NULL COMMENT 'for insurance only it is file in the bill by fatma',
  `approved` int(11) NOT NULL COMMENT '1accepted-2rejected this is for insurance only  by fatma',
  `saveid` int(11) NOT NULL COMMENT ' by fatma',
  `approveNo` varchar(255) NOT NULL COMMENT 'for insurance bills approve by fatma',
  `approveFile` varchar(255) NOT NULL COMMENT 'for insurance bills approve  by fatma',
  `notifSeen` int(11) NOT NULL COMMENT '0 not seen - 1 seen in notification',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `billsbuy`
--


--
-- Table structure for table `billsettings`
--

CREATE TABLE `billsettings` (
  `billsettingsid` int(11) NOT NULL AUTO_INCREMENT,
  `billnameid` int(11) NOT NULL,
  `billpropertyid` int(11) NOT NULL,
  `billsettingsvalue` int(11) NOT NULL DEFAULT 0 COMMENT '0 => yes- 1 => no',
  PRIMARY KEY (`billsettingsid`)
) ENGINE=InnoDB AUTO_INCREMENT=1191 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `billsettings`
--

INSERT INTO `billsettings` VALUES
(1,1,1,1),
(2,1,2,0),
(3,1,3,0),
(4,1,4,0),
(5,1,5,1),
(6,1,6,0),
(7,1,7,0),
(8,1,8,1),
(9,1,9,1),
(10,1,10,1),
(11,1,11,1),
(12,1,12,1),
(13,1,13,0),
(14,1,15,0),
(29,3,1,1),
(30,3,2,0),
(31,3,3,0),
(32,3,4,1),
(33,3,5,0),
(34,3,6,0),
(35,3,7,1),
(36,3,8,1),
(37,3,9,1),
(38,3,10,1),
(39,3,11,0),
(40,3,12,0),
(41,3,13,1),
(42,3,15,1),
(43,4,1,0),
(44,4,2,0),
(45,4,3,0),
(46,4,4,1),
(47,4,5,1),
(48,4,6,0),
(49,4,7,1),
(50,4,8,0),
(51,4,9,0),
(52,4,10,0),
(53,4,11,0),
(54,4,12,0),
(55,4,13,0),
(56,4,15,0),
(57,5,1,0),
(58,5,2,0),
(59,5,3,0),
(60,5,4,1),
(61,5,5,0),
(62,5,6,0),
(63,5,7,1),
(64,5,8,1),
(65,5,9,1),
(66,5,10,1),
(67,5,11,1),
(68,5,12,0),
(69,5,13,1),
(70,5,15,1),
(71,5,16,1),
(72,6,1,0),
(73,6,2,0),
(74,6,3,0),
(75,6,4,0),
(76,6,5,1),
(77,6,6,0),
(78,6,7,0),
(79,6,8,0),
(80,6,9,1),
(81,6,10,0),
(82,6,11,0),
(83,6,12,0),
(84,6,13,0),
(85,6,15,0),
(86,6,16,1),
(119,1,16,0),
(120,1,17,0),
(121,1,18,0),
(122,1,19,0),
(123,1,20,1),
(124,1,21,1),
(125,1,22,1),
(126,1,23,0),
(127,1,24,0),
(128,1,25,0),
(129,1,26,0),
(130,1,28,1),
(143,3,16,0),
(144,3,17,0),
(145,3,18,0),
(146,3,19,0),
(147,3,20,0),
(148,3,21,0),
(149,3,22,1),
(150,3,23,1),
(151,3,24,1),
(152,3,25,1),
(153,3,26,0),
(154,3,28,1),
(155,4,16,0),
(156,4,17,0),
(157,4,18,0),
(158,4,19,0),
(159,4,20,0),
(160,4,21,0),
(161,4,22,0),
(162,4,23,0),
(163,4,24,0),
(164,4,25,0),
(165,4,26,0),
(166,4,28,1),
(167,5,17,0),
(168,5,18,0),
(169,5,19,0),
(170,5,20,0),
(171,5,21,0),
(172,5,22,1),
(173,5,23,1),
(174,5,24,1),
(175,5,25,1),
(176,5,26,0),
(177,5,28,1),
(178,6,17,0),
(179,6,18,0),
(180,6,19,0),
(181,6,20,0),
(182,6,21,0),
(183,6,22,0),
(184,6,23,0),
(185,6,24,0),
(186,6,25,0),
(187,6,26,0),
(188,6,28,0),
(242,1,29,1),
(244,3,29,1),
(245,4,29,1),
(246,5,29,1),
(247,6,29,1),
(248,1,30,0),
(249,1,31,0),
(250,1,32,0),
(251,1,33,0),
(256,3,30,0),
(257,3,31,0),
(258,3,32,0),
(259,3,33,0),
(260,4,30,0),
(261,4,31,0),
(262,4,32,0),
(263,4,33,0),
(264,5,30,0),
(265,5,31,0),
(266,5,32,0),
(267,5,33,0),
(268,6,30,0),
(269,6,31,0),
(270,6,32,0),
(271,6,33,0),
(303,1,34,0),
(304,1,35,0),
(305,1,36,0),
(309,3,34,1),
(310,3,35,1),
(311,3,36,0),
(312,4,34,0),
(313,4,35,0),
(314,4,36,0),
(315,5,34,1),
(316,5,35,1),
(317,5,36,0),
(318,6,34,0),
(319,6,35,0),
(320,6,36,0),
(324,1,37,0),
(326,3,37,0),
(327,4,37,0),
(328,5,37,0),
(329,6,37,0),
(331,1,38,0),
(333,3,38,1),
(334,4,38,1),
(335,5,38,1),
(336,6,38,0),
(338,1,39,1),
(340,3,39,1),
(341,4,39,1),
(342,5,39,1),
(343,6,39,0),
(345,1,40,1),
(347,3,40,1),
(348,4,40,1),
(349,5,40,1),
(350,6,40,0),
(352,1,41,0),
(354,3,41,1),
(355,4,41,1),
(356,5,41,1),
(357,6,41,1),
(359,1,42,0),
(361,3,42,1),
(362,4,42,1),
(363,5,42,1),
(364,6,42,1),
(366,1,43,1),
(368,3,43,0),
(369,4,43,0),
(370,5,43,0),
(371,6,43,1),
(373,1,44,1),
(375,3,44,0),
(376,4,44,0),
(377,5,44,0),
(378,6,44,0),
(380,1,45,0),
(382,3,45,0),
(383,4,45,0),
(384,5,45,0),
(385,6,45,0),
(387,1,46,0),
(389,3,46,1),
(390,4,46,0),
(391,5,46,1),
(392,6,46,0),
(394,1,47,2),
(396,3,47,2),
(397,4,47,0),
(398,5,47,2),
(399,6,47,2),
(401,1,48,1),
(403,3,48,1),
(404,4,48,1),
(405,5,48,1),
(406,6,48,1),
(408,1,14,0),
(410,3,14,0),
(411,4,14,0),
(412,5,14,0),
(413,6,14,0),
(650,3,49,0),
(651,3,50,0),
(652,3,51,0),
(653,3,52,0),
(654,3,53,0),
(655,1,49,1),
(656,1,50,0),
(657,1,51,1),
(658,1,52,0),
(659,1,53,0),
(660,6,49,0),
(661,6,50,0),
(662,6,51,1),
(663,6,52,0),
(664,6,53,1),
(665,1,54,0),
(666,6,54,1),
(673,5,49,0),
(674,5,50,0),
(675,5,51,0),
(676,5,52,0),
(677,5,53,0),
(678,5,54,0),
(679,4,49,1),
(680,4,50,1),
(681,4,51,1),
(682,4,52,1),
(683,4,53,0),
(684,4,54,0),
(685,3,54,0),
(686,1,56,0),
(687,6,56,0),
(688,5,56,0),
(689,4,56,0),
(690,3,56,0),
(699,1,57,0),
(700,3,57,0),
(701,4,57,1),
(702,1,58,0),
(703,3,58,0),
(715,4,58,0),
(716,5,57,0),
(717,5,58,0),
(727,6,57,0),
(728,6,58,0),
(749,1,59,0),
(750,6,59,0),
(752,3,59,0),
(753,4,59,0),
(754,5,59,0),
(756,3,60,0),
(757,5,60,0),
(758,4,60,0),
(759,3,61,0),
(760,5,61,0),
(761,1,60,0),
(762,1,61,0),
(763,6,60,0),
(764,6,61,0),
(767,4,61,0),
(782,3,62,0),
(783,5,62,0),
(784,4,62,0),
(785,1,62,0),
(786,6,62,1),
(787,3,63,0),
(788,1,63,1),
(789,5,63,0),
(790,6,63,0),
(793,6,64,1),
(794,3,64,0),
(795,5,64,0),
(796,4,63,1),
(797,4,64,0),
(798,1,64,0),
(867,3,65,1),
(868,4,65,1),
(869,5,65,0),
(870,6,65,1),
(871,1,65,1),
(873,1,66,0),
(874,1,67,0),
(875,3,66,0),
(876,3,67,0),
(877,6,66,0),
(878,6,67,0),
(879,5,66,0),
(880,5,67,0),
(881,4,66,0),
(882,4,67,0),
(885,3,68,0),
(886,4,68,1),
(887,1,68,0),
(888,5,68,0),
(889,6,68,0),
(890,1,69,0),
(891,1,70,0),
(892,1,71,0),
(893,1,72,0),
(894,1,73,1),
(895,1,74,0),
(896,1,75,0),
(897,1,76,0),
(898,3,69,0),
(899,3,70,0),
(900,3,71,0),
(901,3,72,0),
(902,3,73,1),
(903,3,74,1),
(904,3,75,0),
(905,3,76,0),
(906,4,69,0),
(907,4,70,0),
(908,4,71,0),
(909,4,72,0),
(910,4,73,0),
(911,4,74,0),
(912,4,75,0),
(913,4,76,0),
(914,5,69,0),
(915,5,70,0),
(916,5,71,0),
(917,5,72,0),
(918,5,73,1),
(919,5,74,1),
(920,5,75,0),
(921,5,76,0),
(922,6,69,0),
(923,6,70,0),
(924,6,71,0),
(925,6,72,0),
(926,6,73,1),
(927,6,74,0),
(928,6,75,0),
(929,6,76,0),
(930,1,77,0),
(931,1,78,0),
(932,1,79,0),
(933,1,80,0),
(934,1,81,0),
(935,1,82,1),
(936,3,77,0),
(937,3,78,0),
(938,3,79,1),
(939,3,80,0),
(940,3,81,0),
(941,3,82,1),
(942,4,77,0),
(943,4,78,0),
(944,4,79,0),
(945,4,80,0),
(946,4,81,0),
(947,4,82,0),
(948,5,77,0),
(949,5,78,0),
(950,5,79,1),
(951,5,80,0),
(952,5,81,0),
(953,5,82,1),
(954,6,77,0),
(955,6,78,0),
(956,6,79,0),
(957,6,80,0),
(958,6,81,0),
(959,6,82,1),
(960,1,83,0),
(961,3,83,0),
(962,4,83,0),
(963,5,83,0),
(964,6,83,0),
(965,1,84,0),
(966,3,84,1),
(967,4,84,0),
(968,5,84,1),
(969,6,84,1),
(970,1,85,0),
(971,1,86,0),
(972,1,87,0),
(973,1,88,0),
(974,3,85,1),
(975,3,86,0),
(976,3,87,0),
(977,3,88,1),
(978,4,85,0),
(979,4,86,0),
(980,4,87,0),
(981,4,88,0),
(982,5,85,0),
(983,5,86,0),
(984,5,87,0),
(985,5,88,1),
(986,6,85,0),
(987,6,86,0),
(988,6,87,0),
(989,6,88,1),
(990,3,89,1),
(991,3,90,0),
(992,3,91,0),
(993,3,92,0),
(994,3,93,0),
(995,3,94,0),
(996,3,95,1),
(997,3,96,0),
(998,3,97,1),
(999,3,98,1),
(1000,1,89,0),
(1001,1,90,0),
(1002,1,91,1),
(1003,1,92,0),
(1004,1,93,0),
(1005,1,94,0),
(1006,1,95,1),
(1007,1,96,0),
(1008,1,97,1),
(1009,1,98,1),
(1010,5,89,1),
(1011,5,90,0),
(1012,5,91,0),
(1013,5,92,1),
(1014,5,93,0),
(1015,5,94,0),
(1016,5,95,1),
(1017,5,96,0),
(1018,5,97,1),
(1019,5,98,1),
(1020,6,89,1),
(1021,6,90,0),
(1022,6,91,1),
(1023,6,92,1),
(1024,6,93,0),
(1025,6,94,0),
(1026,6,95,1),
(1027,6,96,1),
(1028,6,97,1),
(1029,6,98,1),
(1030,1,100,1),
(1031,2,100,1),
(1032,3,100,1),
(1033,4,100,1),
(1034,5,100,1),
(1035,6,100,1),
(1036,1,99,0),
(1037,1,101,0),
(1038,1,102,0),
(1039,1,103,0),
(1040,1,104,0),
(1041,3,99,0),
(1042,3,101,0),
(1043,3,102,0),
(1044,3,103,0),
(1045,3,104,0),
(1046,4,89,0),
(1047,4,90,0),
(1048,4,91,0),
(1049,4,92,0),
(1050,4,93,0),
(1051,4,94,0),
(1052,4,95,0),
(1053,4,96,0),
(1054,4,97,0),
(1055,4,98,0),
(1056,4,99,0),
(1057,4,101,0),
(1058,4,102,0),
(1059,4,103,0),
(1060,4,104,0),
(1061,5,99,0),
(1062,5,101,0),
(1063,5,102,0),
(1064,5,103,0),
(1065,5,104,0),
(1066,6,99,0),
(1067,6,101,0),
(1068,6,102,0),
(1069,6,103,0),
(1070,6,104,0),
(1071,3,105,1),
(1072,4,105,1),
(1073,5,105,1),
(1074,3,112,1),
(1075,3,113,1),
(1076,3,114,1),
(1077,3,115,0),
(1078,3,116,1),
(1079,4,114,1),
(1080,4,115,0),
(1081,4,116,1),
(1082,4,113,1),
(1083,5,113,1),
(1084,5,114,1),
(1085,5,115,0),
(1086,5,116,1),
(1087,6,113,1),
(1088,6,114,1),
(1089,6,115,0),
(1090,6,116,1),
(1091,3,106,1),
(1092,3,108,1),
(1093,1,105,0),
(1094,1,106,0),
(1095,1,107,0),
(1096,1,108,0),
(1097,1,109,0),
(1098,1,110,0),
(1099,1,111,0),
(1100,1,112,0),
(1101,1,113,0),
(1102,1,114,0),
(1103,1,115,0),
(1104,1,116,0),
(1105,1,117,0),
(1106,1,118,0),
(1107,1,119,0),
(1108,1,120,0),
(1109,1,121,0),
(1110,1,122,0),
(1111,1,123,0),
(1112,1,124,0),
(1113,1,125,0),
(1114,1,126,0),
(1115,1,127,0),
(1116,1,128,0),
(1117,3,107,0),
(1118,3,109,0),
(1119,3,110,0),
(1120,3,111,0),
(1121,3,117,0),
(1122,3,118,0),
(1123,3,119,0),
(1124,3,120,0),
(1125,3,121,0),
(1126,3,122,0),
(1127,3,123,0),
(1128,3,124,0),
(1129,3,125,0),
(1130,3,126,0),
(1131,3,127,0),
(1132,3,128,0),
(1133,4,106,0),
(1134,4,107,0),
(1135,4,108,0),
(1136,4,109,0),
(1137,4,110,0),
(1138,4,111,0),
(1139,4,112,0),
(1140,4,117,0),
(1141,4,118,0),
(1142,4,119,0),
(1143,4,120,0),
(1144,4,121,0),
(1145,4,122,0),
(1146,4,123,0),
(1147,4,124,0),
(1148,4,125,0),
(1149,4,126,0),
(1150,4,127,0),
(1151,4,128,0),
(1152,5,106,0),
(1153,5,107,0),
(1154,5,108,0),
(1155,5,109,0),
(1156,5,110,0),
(1157,5,111,0),
(1158,5,112,0),
(1159,5,117,0),
(1160,5,118,0),
(1161,5,119,0),
(1162,5,120,0),
(1163,5,121,0),
(1164,5,122,0),
(1165,5,123,0),
(1166,5,124,0),
(1167,5,125,0),
(1168,5,126,0),
(1169,5,127,0),
(1170,5,128,0),
(1171,6,105,0),
(1172,6,106,0),
(1173,6,107,0),
(1174,6,108,0),
(1175,6,109,0),
(1176,6,110,0),
(1177,6,111,0),
(1178,6,112,0),
(1179,6,117,0),
(1180,6,118,0),
(1181,6,119,0),
(1182,6,120,0),
(1183,6,121,0),
(1184,6,122,0),
(1185,6,123,0),
(1186,6,124,0),
(1187,6,125,0),
(1188,6,126,0),
(1189,6,127,0),
(1190,6,128,0);

--
-- Table structure for table `billsproducts`
--

CREATE TABLE `billsproducts` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `billid` int(11) unsigned DEFAULT NULL,
  `productid` int(11) unsigned DEFAULT NULL,
  `note` varchar(191) DEFAULT NULL,
  `productno` int(10) unsigned DEFAULT NULL,
  `productprice` decimal(10,2) unsigned DEFAULT NULL,
  `producttotalprice` decimal(10,2) DEFAULT NULL,
  `deleted` int(11) DEFAULT 0,
  `service` varchar(255) DEFAULT NULL,
  `retproductno` int(11) DEFAULT 0 COMMENT 'no of returned product',
  `rondomtxt` varchar(255) DEFAULT NULL,
  `lastbuyprice` decimal(10,2) DEFAULT NULL,
  `meanbuyprice` decimal(10,2) DEFAULT NULL,
  `storeid` int(11) NOT NULL,
  `productcode` varchar(255) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `billsproducts`
--


--
-- Table structure for table `billsproductsbuy`
--

CREATE TABLE `billsproductsbuy` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `billid` int(11) unsigned DEFAULT NULL,
  `productid` int(11) unsigned DEFAULT NULL,
  `note` varchar(191) DEFAULT NULL,
  `productno` int(10) unsigned DEFAULT NULL,
  `productprice` decimal(10,2) unsigned DEFAULT NULL,
  `producttotalprice` decimal(10,2) DEFAULT NULL,
  `deleted` int(11) DEFAULT 0,
  `service` varchar(255) DEFAULT NULL,
  `retproductno` int(11) DEFAULT 0 COMMENT 'no of returned product',
  `rondomtxt` varchar(255) DEFAULT NULL,
  `lastbuyprice` decimal(10,2) DEFAULT NULL,
  `meanbuyprice` decimal(10,2) DEFAULT NULL,
  `storeid` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `billsproductsbuy`
--


--
-- Table structure for table `billsreturn`
--

CREATE TABLE `billsreturn` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `billid` int(11) DEFAULT NULL,
  `returnedprice` decimal(10,2) DEFAULT 0.00,
  `clientreceivevalue` decimal(10,2) DEFAULT 0.00,
  `date` date DEFAULT NULL,
  `deleted` int(11) DEFAULT 0,
  `dailyentryid` int(11) DEFAULT NULL,
  `userid` int(11) DEFAULT NULL,
  `branchid` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `billsreturn`
--


--
-- Table structure for table `billsreturnproducts`
--

CREATE TABLE `billsreturnproducts` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `productid` int(11) DEFAULT NULL,
  `returnbillid` int(11) DEFAULT NULL,
  `productno` int(11) DEFAULT 0,
  `productprice` decimal(10,2) DEFAULT NULL,
  `producttotalprice` decimal(10,2) DEFAULT NULL,
  `deleted` int(11) DEFAULT 0,
  `billproductid` int(11) DEFAULT NULL,
  `lastbuyprice` decimal(10,2) DEFAULT NULL,
  `meanbuyprice` decimal(10,2) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `billsreturnproducts`
--


--
-- Table structure for table `billtemplate`
--

CREATE TABLE `billtemplate` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(300) NOT NULL,
  `userid` int(11) NOT NULL,
  `sysdate` datetime NOT NULL,
  `del` tinyint(4) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `billtemplate`
--


--
-- Table structure for table `billtemplatedetail`
--

CREATE TABLE `billtemplatedetail` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `billTemplateId` int(11) NOT NULL,
  `type` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0 sell,1 ret',
  `parcode` varchar(255) NOT NULL,
  `productid` int(11) NOT NULL,
  `sizeid` int(11) NOT NULL DEFAULT 0,
  `colorid` int(11) NOT NULL DEFAULT 0,
  `unitid` int(11) NOT NULL DEFAULT -1,
  `quantity` float NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `billtemplatedetail`
--


--
-- Table structure for table `bind`
--

CREATE TABLE `bind` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `employeeid` int(11) DEFAULT NULL,
  `bindtype` int(11) DEFAULT NULL COMMENT '1 : save - 0 : bank',
  `saveid` int(11) DEFAULT NULL,
  `savevalue` decimal(10,2) DEFAULT NULL,
  `bankid` int(11) DEFAULT NULL,
  `bankaccount` int(11) DEFAULT NULL,
  `ckekno` varchar(255) DEFAULT NULL,
  `benefitname` varchar(255) DEFAULT NULL,
  `ckekvalue` decimal(10,2) DEFAULT NULL,
  `dailyentryid` int(11) DEFAULT NULL,
  `userid` int(11) DEFAULT NULL,
  `binddate` date DEFAULT NULL,
  `deleted` int(11) DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `bind`
--


--
-- Table structure for table `bindsettlement`
--

CREATE TABLE `bindsettlement` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `userid` int(11) DEFAULT NULL,
  `employeeid` int(11) DEFAULT NULL,
  `settlementway` int(11) DEFAULT NULL COMMENT '1 : masroufat - 2 saves',
  `settlementwayid` int(11) DEFAULT NULL,
  `projectid` int(11) DEFAULT NULL,
  `value` decimal(10,2) DEFAULT NULL,
  `comment` text DEFAULT NULL,
  `deleted` int(11) DEFAULT 0,
  `dailyentryid` int(11) DEFAULT NULL,
  `groupno` int(11) DEFAULT 0,
  `group` int(11) DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='تسوية عهده ';

--
-- Dumping data for table `bindsettlement`
--


--
-- Table structure for table `boarding`
--

CREATE TABLE `boarding` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(255) NOT NULL,
  `titleEn` varchar(255) NOT NULL,
  `titleUrl` varchar(500) NOT NULL,
  `openTarget` tinyint(4) NOT NULL COMMENT '0 newtab, 1 same tab',
  `image` varchar(500) NOT NULL,
  `content` text NOT NULL,
  `contentEn` text NOT NULL,
  `position` int(11) NOT NULL COMMENT 'order of showing',
  `isActive` tinyint(4) NOT NULL,
  `sysDate` datetime NOT NULL,
  `userid` int(11) NOT NULL,
  `isdel` tinyint(4) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `boarding`
--


--
-- Table structure for table `branch`
--

CREATE TABLE `branch` (
  `branchId` int(11) NOT NULL AUTO_INCREMENT,
  `branchName` varchar(255) NOT NULL,
  `branchDate` date NOT NULL,
  `phone` varchar(255) NOT NULL,
  `mobile` varchar(255) NOT NULL,
  `branchNo` int(11) DEFAULT NULL,
  `branchAddress` varchar(255) DEFAULT NULL,
  `message` text NOT NULL,
  `logo` varchar(255) NOT NULL,
  `branchTaxNo` varchar(255) NOT NULL,
  PRIMARY KEY (`branchId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `branch`
--

INSERT INTO `branch` VALUES
(0,'كل الÙروع','0000-00-00','','',NULL,NULL,'','','');

--
-- Table structure for table `buyandruternbill`
--

CREATE TABLE `buyandruternbill` (
  `buybillid` int(11) NOT NULL AUTO_INCREMENT,
  `buybillSerial` varchar(255) DEFAULT NULL,
  `buybilldate` datetime DEFAULT NULL,
  `buybillsupplierid` int(11) NOT NULL,
  `buybilltotaldeptbefor` decimal(10,2) NOT NULL,
  `buybilltotaldeptafter` decimal(10,2) NOT NULL,
  `buybilldiscount` varchar(255) NOT NULL DEFAULT '',
  `buybilldiscountrype` int(11) NOT NULL DEFAULT 0,
  `buybilltotalbill` decimal(10,2) NOT NULL,
  `buybillaftertotalbill` decimal(10,2) NOT NULL,
  `buybilltotalpayed` decimal(10,2) NOT NULL,
  `buybillfinalbill` decimal(10,2) NOT NULL,
  `buybillstoreid` int(11) NOT NULL,
  `buybillsysdate` datetime NOT NULL,
  `comment` text NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `buybillclientname` varchar(255) NOT NULL DEFAULT '',
  `buybillsaveid` int(11) NOT NULL,
  `buybilldirectpayment` int(11) NOT NULL DEFAULT 0,
  `billnameid` int(11) NOT NULL,
  `deletedbuyid` int(11) DEFAULT NULL,
  `controlname` varchar(255) NOT NULL,
  `payedtax` decimal(10,2) NOT NULL DEFAULT 0.00,
  `costcenterid` int(11) DEFAULT 0,
  `dailyentryid` varchar(100) NOT NULL DEFAULT '',
  `delbyuserid` int(11) NOT NULL DEFAULT 0,
  `currencyId` int(11) NOT NULL DEFAULT 1,
  `taxOfDiscountPer` float NOT NULL DEFAULT 0,
  `taxOfDiscountVal` float NOT NULL DEFAULT 0,
  `client` int(11) NOT NULL DEFAULT 0,
  `storeid` int(11) NOT NULL DEFAULT 0,
  `buybilladdition` varchar(255) NOT NULL DEFAULT '',
  `buybilladditiontrype` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`buybillid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `buyandruternbill`
--


--
-- Table structure for table `buyandruternbillcurr`
--

CREATE TABLE `buyandruternbillcurr` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `buybillid` int(11) NOT NULL,
  `conversionFactor` float NOT NULL DEFAULT 1,
  `buybilldiscountC` varchar(255) NOT NULL DEFAULT '',
  `buybilltotalbillC` decimal(10,2) NOT NULL,
  `buybillaftertotalbillC` decimal(10,2) NOT NULL,
  `buybilltotalpayedC` decimal(10,2) NOT NULL,
  `buybillfinalbillC` decimal(10,2) NOT NULL,
  `buybilldirectpaymentC` int(11) NOT NULL DEFAULT 0,
  `payedtaxC` decimal(10,2) NOT NULL DEFAULT 0.00,
  `saveConversionFactor` float NOT NULL DEFAULT 1,
  `buybilladditionC` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `buyandruternbillcurr`
--


--
-- Table structure for table `buyandruternbilldetail`
--

CREATE TABLE `buyandruternbilldetail` (
  `Parcode` varchar(255) NOT NULL DEFAULT '',
  `buybilldetailid` int(11) NOT NULL AUTO_INCREMENT,
  `buybillid` int(11) NOT NULL,
  `buybilldetailcatid` int(11) NOT NULL,
  `buybilldetailproductid` int(11) NOT NULL,
  `buybilldetailquantity` decimal(10,2) NOT NULL,
  `buybilldetailprice` decimal(10,2) NOT NULL,
  `buybilldetailtotalprice` decimal(10,2) NOT NULL,
  `discountvalue` decimal(10,2) NOT NULL,
  `note` varchar(256) DEFAULT NULL,
  `buybilldetaildate` date NOT NULL,
  `billtype` int(11) NOT NULL COMMENT '0 for buy 1 for return',
  `productunitid` int(11) NOT NULL,
  `lastbuyprice` decimal(10,2) DEFAULT NULL,
  `meanbuyprice` decimal(10,2) DEFAULT NULL,
  `lastbuyprice_withDiscount` decimal(10,2) DEFAULT NULL,
  `meanbuyprice_withDiscount` decimal(10,2) DEFAULT NULL,
  `otherdetailquantity` int(11) NOT NULL DEFAULT 0,
  `sizeid` int(11) NOT NULL DEFAULT 0,
  `colorid` int(11) NOT NULL DEFAULT 0,
  `quantitybefore` decimal(10,2) DEFAULT NULL,
  `buybilldetailpriceC` decimal(10,2) NOT NULL,
  `buybilldetailtotalpriceC` decimal(10,2) NOT NULL,
  `discountvalueC` decimal(10,2) NOT NULL,
  `discounttype` decimal(10,2) NOT NULL DEFAULT 0.00 COMMENT 'discount percentage like 5%',
  `rowtaxval` decimal(10,2) NOT NULL,
  `rowtaxper` decimal(10,2) NOT NULL DEFAULT 0.00 COMMENT 'like 5%',
  `lastbuyprice_withTax` decimal(10,2) DEFAULT NULL,
  `meanbuyprice_withTax` decimal(10,2) DEFAULT NULL,
  `lastbuyprice_withDiscountAndTax` decimal(10,2) DEFAULT NULL,
  PRIMARY KEY (`buybilldetailid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `buyandruternbilldetail`
--


--
-- Table structure for table `buybill`
--

CREATE TABLE `buybill` (
  `buybillid` int(11) NOT NULL AUTO_INCREMENT,
  `buybillSerial` varchar(255) DEFAULT NULL,
  `buybilldate` datetime DEFAULT NULL,
  `buybillsupplierid` int(11) NOT NULL,
  `buybilltotaldeptbefor` decimal(10,2) NOT NULL,
  `buybilltotaldeptafter` decimal(10,2) NOT NULL,
  `buybilldiscount` varchar(255) NOT NULL DEFAULT '',
  `buybilldiscountrype` int(11) NOT NULL DEFAULT 0,
  `buybilltotalbill` decimal(10,2) NOT NULL,
  `buybillaftertotalbill` decimal(10,2) NOT NULL,
  `buybilltotalpayed` decimal(10,2) NOT NULL,
  `buybillfinalbill` decimal(10,2) NOT NULL,
  `buybillstoreid` int(11) NOT NULL,
  `buybillsysdate` datetime NOT NULL,
  `comment` text NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `buybillclientname` varchar(255) NOT NULL DEFAULT '',
  `buybillsaveid` int(11) NOT NULL,
  `buybilldirectpayment` int(11) NOT NULL DEFAULT 0,
  `billnameid` int(11) NOT NULL,
  `deletedbuyid` int(11) DEFAULT NULL,
  `controlname` varchar(255) NOT NULL,
  `payedtax` decimal(10,2) NOT NULL DEFAULT 0.00,
  `costcenterid` int(11) DEFAULT 0,
  `dailyentryid` varchar(100) NOT NULL DEFAULT '',
  `delbyuserid` int(11) NOT NULL DEFAULT 0,
  `currencyId` int(11) NOT NULL DEFAULT 1,
  `taxOfDiscountPer` float NOT NULL DEFAULT 0,
  `taxOfDiscountVal` float NOT NULL DEFAULT 0,
  `files` text NOT NULL DEFAULT '',
  `client` int(11) NOT NULL DEFAULT 0,
  `totalBuyDiscountVal` decimal(10,2) NOT NULL DEFAULT 0.00,
  `webApiId` int(11) NOT NULL DEFAULT 0,
  `buybilladdition` varchar(255) NOT NULL DEFAULT '',
  `buybilladditiontrype` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`buybillid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `buybill`
--


--
-- Table structure for table `buybillcurr`
--

CREATE TABLE `buybillcurr` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `buybillid` int(11) NOT NULL,
  `conversionFactor` float NOT NULL DEFAULT 1,
  `buybilldiscountC` varchar(255) NOT NULL DEFAULT '',
  `buybilltotalbillC` decimal(10,2) NOT NULL,
  `buybillaftertotalbillC` decimal(10,2) NOT NULL,
  `buybilltotalpayedC` decimal(10,2) NOT NULL,
  `buybillfinalbillC` decimal(10,2) NOT NULL,
  `buybilldirectpaymentC` int(11) NOT NULL DEFAULT 0,
  `payedtaxC` decimal(10,2) NOT NULL DEFAULT 0.00,
  `saveConversionFactor` float NOT NULL DEFAULT 1,
  `buybilladditionC` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `buybillcurr`
--


--
-- Table structure for table `buybilldetail`
--

CREATE TABLE `buybilldetail` (
  `Parcode` varchar(255) NOT NULL DEFAULT '',
  `buybilldetailid` int(11) NOT NULL AUTO_INCREMENT,
  `buybillid` int(11) NOT NULL,
  `buybilldetailcatid` int(11) NOT NULL,
  `buybilldetailproductid` int(11) NOT NULL,
  `buybilldetailquantity` decimal(10,2) NOT NULL,
  `buybilldetailprice` decimal(10,2) NOT NULL,
  `buybilldetailtotalprice` decimal(10,2) NOT NULL,
  `discountvalue` decimal(10,2) NOT NULL,
  `note` varchar(256) DEFAULT NULL,
  `buybilldetaildate` date NOT NULL,
  `productunitid` int(11) NOT NULL,
  `lastbuyprice` decimal(10,2) DEFAULT NULL,
  `meanbuyprice` decimal(10,2) DEFAULT NULL,
  `lastbuyprice_withDiscount` decimal(10,2) DEFAULT NULL,
  `meanbuyprice_withDiscount` decimal(10,2) DEFAULT NULL,
  `otherdetailquantity` int(11) NOT NULL DEFAULT 0,
  `sizeid` int(11) NOT NULL DEFAULT 0,
  `colorid` int(11) NOT NULL DEFAULT 0,
  `quantitybefore` decimal(10,2) DEFAULT NULL,
  `buybilldetailpriceC` decimal(10,2) NOT NULL,
  `buybilldetailtotalpriceC` decimal(10,2) NOT NULL,
  `discountvalueC` decimal(10,2) NOT NULL,
  `discounttype` decimal(10,2) NOT NULL DEFAULT 0.00 COMMENT 'discount percentage like 5%',
  `rowtaxval` decimal(10,2) NOT NULL,
  `rowtaxper` decimal(10,2) NOT NULL DEFAULT 0.00 COMMENT 'like 5%',
  `lastbuyprice_withTax` decimal(10,2) DEFAULT NULL,
  `meanbuyprice_withTax` decimal(10,2) DEFAULT NULL,
  `probuyDiscountPer` float NOT NULL DEFAULT 0,
  `lastbuyprice_withDiscountAndTax` decimal(10,2) DEFAULT NULL,
  `storeid` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`buybilldetailid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `buybilldetail`
--


--
-- Table structure for table `buybilldetailoffer`
--

CREATE TABLE `buybilldetailoffer` (
  `Parcode` varchar(255) NOT NULL DEFAULT '',
  `buybilldetailid` int(11) NOT NULL AUTO_INCREMENT,
  `buybillid` int(11) NOT NULL,
  `buybilldetailcatid` int(11) NOT NULL,
  `buybilldetailproductid` int(11) NOT NULL,
  `buybilldetailquantity` decimal(10,2) NOT NULL,
  `buybilldetailprice` decimal(10,2) NOT NULL,
  `buybilldetailtotalprice` decimal(10,2) NOT NULL,
  `discountvalue` decimal(10,2) NOT NULL,
  `note` varchar(256) DEFAULT NULL,
  `buybilldetaildate` date NOT NULL,
  `productunitid` int(11) NOT NULL,
  `lastbuyprice` decimal(10,2) DEFAULT NULL,
  `meanbuyprice` decimal(10,2) DEFAULT NULL,
  `lastbuyprice_withDiscount` decimal(10,2) DEFAULT NULL,
  `meanbuyprice_withDiscount` decimal(10,2) DEFAULT NULL,
  `otherdetailquantity` int(11) NOT NULL DEFAULT 0,
  `sizeid` int(11) NOT NULL DEFAULT 0,
  `colorid` int(11) NOT NULL DEFAULT 0,
  `quantitybefore` decimal(10,2) DEFAULT NULL,
  `buybilldetailpriceC` decimal(10,2) NOT NULL,
  `buybilldetailtotalpriceC` decimal(10,2) NOT NULL,
  `discountvalueC` decimal(10,2) NOT NULL,
  `discountper` decimal(10,2) NOT NULL DEFAULT 0.00,
  `discounttype` decimal(10,2) NOT NULL DEFAULT 0.00 COMMENT 'discount percentage like 5%',
  PRIMARY KEY (`buybilldetailid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `buybilldetailoffer`
--


--
-- Table structure for table `buybilloffer`
--

CREATE TABLE `buybilloffer` (
  `buybillid` int(11) NOT NULL AUTO_INCREMENT,
  `buybillSerial` varchar(255) DEFAULT NULL,
  `buybilldate` datetime DEFAULT NULL,
  `buybillsupplierid` int(11) NOT NULL,
  `buybilltotaldeptbefor` decimal(10,2) NOT NULL,
  `buybilltotaldeptafter` decimal(10,2) NOT NULL,
  `buybilldiscount` varchar(255) NOT NULL DEFAULT '',
  `buybilldiscountrype` int(11) NOT NULL DEFAULT 0,
  `buybilltotalbill` decimal(10,2) NOT NULL,
  `buybillaftertotalbill` decimal(10,2) NOT NULL,
  `buybilltotalpayed` decimal(10,2) NOT NULL,
  `buybillfinalbill` decimal(10,2) NOT NULL,
  `buybillstoreid` int(11) NOT NULL,
  `buybillsysdate` datetime NOT NULL,
  `comment` text NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `buybillclientname` varchar(255) NOT NULL DEFAULT '',
  `buybillsaveid` int(11) NOT NULL,
  `buybilldirectpayment` int(11) NOT NULL DEFAULT 0,
  `billnameid` int(11) NOT NULL,
  `deletedbuyid` int(11) DEFAULT NULL,
  `controlname` varchar(255) NOT NULL,
  `payedtax` decimal(10,2) NOT NULL DEFAULT 0.00,
  `costcenterid` int(11) DEFAULT 0,
  `dailyentryid` int(11) NOT NULL DEFAULT 0,
  `delbyuserid` int(11) NOT NULL DEFAULT 0,
  `currencyId` int(11) NOT NULL DEFAULT 1,
  `orderSavedBillId` int(11) NOT NULL DEFAULT 0,
  `taxOfDiscountPer` float NOT NULL DEFAULT 0,
  `taxOfDiscountVal` float NOT NULL DEFAULT 0,
  `buybilladdition` varchar(255) NOT NULL DEFAULT '',
  `buybilladditiontrype` int(11) NOT NULL DEFAULT 0,
  `webApiId` tinyint(4) NOT NULL DEFAULT 0,
  PRIMARY KEY (`buybillid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `buybilloffer`
--


--
-- Table structure for table `buypriceshistorybook`
--

CREATE TABLE `buypriceshistorybook` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `theDate` date NOT NULL,
  `storeId` int(11) NOT NULL,
  `productid` int(11) NOT NULL,
  `sizeid` int(11) NOT NULL,
  `colorid` int(11) NOT NULL,
  `buyprice` decimal(10,2) NOT NULL,
  `buyQuantity` decimal(10,2) NOT NULL,
  `sellQuantity` decimal(10,2) NOT NULL,
  `del` tinyint(4) NOT NULL,
  `userid` int(11) NOT NULL,
  `sysDate` datetime NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `theDate` (`theDate`,`storeId`,`productid`,`sizeid`,`colorid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `buypriceshistorybook`
--


--
-- Table structure for table `capital`
--

CREATE TABLE `capital` (
  `capitalid` int(11) NOT NULL AUTO_INCREMENT,
  `capitalamount` double NOT NULL,
  `treeId` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`capitalid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `capital`
--


--
-- Table structure for table `carfile`
--

CREATE TABLE `carfile` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `del` int(11) unsigned DEFAULT NULL,
  `addtoday` datetime DEFAULT NULL,
  `adduserid` tinyint(1) unsigned DEFAULT NULL,
  `deltoday` varchar(191) DEFAULT NULL,
  `deluserid` varchar(191) DEFAULT NULL,
  `name` varchar(191) DEFAULT NULL,
  `image` varchar(191) DEFAULT NULL,
  `tagids` varchar(191) DEFAULT NULL,
  `updatetoday` datetime DEFAULT NULL,
  `updateuserid` tinyint(1) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `carfile`
--


--
-- Table structure for table `cashtransfer`
--

CREATE TABLE `cashtransfer` (
  `cashtransferid` int(11) NOT NULL AUTO_INCREMENT,
  `bankaccountid` int(11) NOT NULL,
  `saveid` int(11) NOT NULL,
  `accountbeforevalue` decimal(10,2) NOT NULL,
  `cashtransferuser` varchar(256) DEFAULT NULL,
  `cashtransferamount` decimal(10,2) NOT NULL,
  `cashtransferdate` date NOT NULL,
  `cashtransfernote` varchar(600) DEFAULT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `cashtransfernumber` decimal(55,2) NOT NULL,
  `type` int(11) NOT NULL DEFAULT 0,
  `dailyentryid` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`cashtransferid`),
  KEY `bankaccountid` (`bankaccountid`,`saveid`),
  KEY `saveid` (`saveid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `cashtransfer`
--


--
-- Table structure for table `charities`
--

CREATE TABLE `charities` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `del` int(11) unsigned DEFAULT NULL,
  `sysdate` datetime DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `del_date` varchar(191) DEFAULT NULL,
  `deluserid` varchar(191) DEFAULT NULL,
  `charityname` varchar(191) DEFAULT NULL,
  `charitynumber` int(11) unsigned DEFAULT NULL,
  `charityphone` varchar(191) DEFAULT NULL,
  `charityaddress` varchar(191) DEFAULT NULL,
  `charityimage` varchar(191) DEFAULT NULL,
  `charitynote` varchar(191) DEFAULT NULL,
  `createdate` date DEFAULT NULL,
  `update_date` datetime DEFAULT NULL,
  `updateuserid` double DEFAULT NULL,
  `center_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `charities`
--


--
-- Table structure for table `charitiescenter`
--

CREATE TABLE `charitiescenter` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `del` int(11) unsigned DEFAULT NULL,
  `sysdate` datetime DEFAULT NULL,
  `user_id` int(11) unsigned DEFAULT NULL,
  `del_date` varchar(191) DEFAULT NULL,
  `deluserid` varchar(191) DEFAULT NULL,
  `name` varchar(191) DEFAULT NULL,
  `update_date` datetime DEFAULT NULL,
  `updateuserid` tinyint(1) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `charitiescenter`
--


--
-- Table structure for table `charitysearchlog`
--

CREATE TABLE `charitysearchlog` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `charity_id` varchar(255) NOT NULL DEFAULT '0',
  `benefeciary_id` int(11) DEFAULT NULL,
  `idnumber` varchar(255) DEFAULT NULL,
  `sysdate` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `charitysearchlog`
--


--
-- Table structure for table `checkcontroller`
--

CREATE TABLE `checkcontroller` (
  `checkControllerid` int(11) NOT NULL AUTO_INCREMENT,
  `checkid` int(11) NOT NULL,
  `controllerid` int(11) NOT NULL,
  `type` varchar(255) NOT NULL,
  PRIMARY KEY (`checkControllerid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `checkcontroller`
--


--
-- Table structure for table `checkdeposit`
--

CREATE TABLE `checkdeposit` (
  `checkdepositid` int(11) NOT NULL AUTO_INCREMENT,
  `bankaccountid` int(11) NOT NULL,
  `clientid` int(11) NOT NULL,
  `checkdepositnumber` int(11) NOT NULL,
  `checkdeposituser` varchar(256) DEFAULT NULL,
  `checkdepositamount` decimal(10,2) NOT NULL,
  `checkdepositdate` date NOT NULL,
  `checkdepositnote` varchar(600) DEFAULT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `accountbeforevalue` decimal(10,2) NOT NULL,
  `dailyentryid` int(11) NOT NULL DEFAULT 0,
  `checkdate` date DEFAULT NULL,
  PRIMARY KEY (`checkdepositid`),
  KEY `bankaccountid` (`bankaccountid`,`clientid`),
  KEY `clientid` (`clientid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `checkdeposit`
--


--
-- Table structure for table `checkwithdrawal`
--

CREATE TABLE `checkwithdrawal` (
  `checkwithdrawalid` int(11) NOT NULL AUTO_INCREMENT,
  `bankaccountid` int(11) NOT NULL,
  `supplierid` int(11) NOT NULL,
  `accountbeforevalue` decimal(10,2) NOT NULL,
  `checkwithdrawaluser` varchar(256) DEFAULT NULL,
  `checkwithdrawalamount` decimal(10,2) NOT NULL,
  `checkwithdrawaldate` date NOT NULL,
  `checkwithdrawalnote` varchar(600) DEFAULT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `checkwithdrawalnumber` decimal(13,0) NOT NULL,
  `dailyentryid` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`checkwithdrawalid`),
  KEY `bankaccountid` (`bankaccountid`,`supplierid`),
  KEY `supplierid` (`supplierid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `checkwithdrawal`
--


--
-- Table structure for table `claimdebts`
--

CREATE TABLE `claimdebts` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `del` int(11) unsigned DEFAULT NULL,
  `addtoday` datetime DEFAULT NULL,
  `adduserid` double DEFAULT NULL,
  `deltoday` varchar(191) DEFAULT NULL,
  `deluserid` varchar(191) DEFAULT NULL,
  `claimid` int(11) unsigned DEFAULT NULL,
  `paymethod` tinyint(1) unsigned DEFAULT NULL,
  `saveid` tinyint(1) unsigned DEFAULT NULL,
  `bankid` double DEFAULT NULL,
  `saveidorbankid` tinyint(1) unsigned DEFAULT NULL,
  `bankaccountid` varchar(191) DEFAULT NULL,
  `claim_value` int(11) unsigned DEFAULT NULL,
  `transaction_number` int(11) unsigned DEFAULT NULL,
  `direct_debit` int(11) unsigned DEFAULT NULL,
  `tax_rate` int(11) unsigned DEFAULT NULL,
  `direct_tax` double DEFAULT NULL,
  `claim_debtcomment` varchar(191) DEFAULT NULL,
  `full_total` double DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `claimdebts`
--


--
-- Table structure for table `claimreturnsellbills`
--

CREATE TABLE `claimreturnsellbills` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `del` int(11) unsigned DEFAULT NULL,
  `deltoday` varchar(191) DEFAULT NULL,
  `deluserid` varchar(191) DEFAULT NULL,
  `claimreturnsellbillid` varchar(191) DEFAULT NULL,
  `claimsclientbillid` int(11) unsigned DEFAULT NULL,
  `claimid` int(11) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `claimreturnsellbills`
--


--
-- Table structure for table `claims`
--

CREATE TABLE `claims` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `del` int(11) unsigned DEFAULT NULL,
  `addtoday` datetime DEFAULT NULL,
  `adduserid` double DEFAULT NULL,
  `deltoday` varchar(191) DEFAULT NULL,
  `deluserid` varchar(191) DEFAULT NULL,
  `from_date` date DEFAULT NULL,
  `to_date` date DEFAULT NULL,
  `typeclientids` varchar(191) DEFAULT NULL,
  `claim_number` int(11) unsigned DEFAULT NULL,
  `claim_value` double DEFAULT NULL,
  `claim_comment` varchar(191) DEFAULT NULL,
  `debttrue` int(11) unsigned DEFAULT NULL,
  `stoptrue` int(11) unsigned DEFAULT NULL,
  `updatetoday` datetime DEFAULT NULL,
  `updateuserid` double DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `claims`
--


--
-- Table structure for table `claimsclientbills`
--

CREATE TABLE `claimsclientbills` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `del` int(11) unsigned DEFAULT NULL,
  `deltoday` varchar(191) DEFAULT NULL,
  `deluserid` varchar(191) DEFAULT NULL,
  `clientid` int(11) unsigned DEFAULT NULL,
  `typeclientid` int(11) unsigned DEFAULT NULL,
  `sellbillids` varchar(191) DEFAULT NULL,
  `sellbillfinalbill` int(11) unsigned DEFAULT NULL,
  `returnsellbillids` varchar(191) DEFAULT NULL,
  `returnsellbillfinalbill` varchar(191) DEFAULT NULL,
  `valueclaimed` double DEFAULT NULL,
  `claimid` int(11) unsigned DEFAULT NULL,
  `sellbillidsprices` varchar(191) DEFAULT NULL,
  `returnsellbillidsprices` varchar(191) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `claimsclientbills`
--


--
-- Table structure for table `claimsellbills`
--

CREATE TABLE `claimsellbills` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `del` int(11) unsigned DEFAULT NULL,
  `deltoday` varchar(191) DEFAULT NULL,
  `deluserid` varchar(191) DEFAULT NULL,
  `claimsellbillid` int(11) unsigned DEFAULT NULL,
  `claimsclientbillid` int(11) unsigned DEFAULT NULL,
  `claimid` int(11) unsigned DEFAULT NULL,
  `claimsellbillfinalbill` int(11) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `claimsellbills`
--


--
-- Table structure for table `claimstypeclients`
--

CREATE TABLE `claimstypeclients` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `del` int(11) unsigned DEFAULT NULL,
  `deltoday` varchar(191) DEFAULT NULL,
  `deluserid` varchar(191) DEFAULT NULL,
  `typeclientid` varchar(191) DEFAULT NULL,
  `claimid` int(11) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `claimstypeclients`
--


--
-- Table structure for table `clientarea`
--

CREATE TABLE `clientarea` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `comment` text NOT NULL,
  `webApiId` int(11) NOT NULL DEFAULT 0,
  `associatedtag_id` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `clientarea`
--


--
-- Table structure for table `clientdebtchange`
--

CREATE TABLE `clientdebtchange` (
  `clientdebtchangeid` int(11) NOT NULL AUTO_INCREMENT,
  `clientid` int(11) NOT NULL,
  `clientdebtchangebefore` decimal(20,3) NOT NULL,
  `clientdebtchangeamount` decimal(20,3) NOT NULL,
  `clientdebtchangetype` int(11) NOT NULL DEFAULT 0 COMMENT '0 => plus- 1 => minus',
  `processname` varchar(500) NOT NULL,
  `clientdebtchangemodelid` int(11) NOT NULL,
  `clientdebtchangeafter` decimal(20,3) NOT NULL,
  `clientdebtchangedate` datetime NOT NULL,
  `userid` int(11) NOT NULL,
  `tablename` varchar(256) NOT NULL,
  `comment` text DEFAULT NULL,
  `totalOperationCost` decimal(20,3) NOT NULL DEFAULT 0.000,
  `discount` decimal(10,2) DEFAULT 0.00,
  `reciptid` int(11) DEFAULT 0,
  `del` int(11) NOT NULL DEFAULT 0,
  `dailyentryid` int(11) NOT NULL DEFAULT 0,
  `num` int(11) DEFAULT NULL,
  `billid` int(11) DEFAULT NULL,
  `paytype` varchar(255) DEFAULT NULL,
  `seller` int(11) NOT NULL DEFAULT 0,
  `discountearlyRepayment` decimal(10,2) DEFAULT NULL,
  `costcenterid` int(11) NOT NULL DEFAULT 0,
  `currencyId` int(11) NOT NULL,
  `conversionFactor` float NOT NULL,
  `payedInCurrency` decimal(10,2) NOT NULL,
  `saveConversionFactor` float NOT NULL,
  `userSelectedDate` datetime NOT NULL,
  `paySerialNo` int(11) NOT NULL,
  `totalpayments` decimal(10,3) NOT NULL,
  `tagids` varchar(255) NOT NULL DEFAULT '0',
  PRIMARY KEY (`clientdebtchangeid`),
  KEY `clientid` (`clientid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `clientdebtchange`
--


--
-- Table structure for table `clientpaymentreceiptt`
--

CREATE TABLE `clientpaymentreceiptt` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `clientid` int(11) NOT NULL,
  `billid` int(11) NOT NULL,
  `payedtype` int(11) NOT NULL COMMENT '0 ',
  `paymethod` int(11) NOT NULL,
  `debtbefore` decimal(10,2) NOT NULL,
  `payed` decimal(10,2) NOT NULL,
  `debtafter` decimal(10,2) NOT NULL,
  `biltype` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `sysdate` date NOT NULL,
  `del` int(11) NOT NULL,
  `dailyentryid` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `clientpaymentreceiptt`
--


--
-- Table structure for table `clientproductreview`
--

CREATE TABLE `clientproductreview` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `clientid` int(11) NOT NULL,
  `productid` int(11) NOT NULL,
  `rating` tinyint(4) NOT NULL,
  `review` text NOT NULL,
  `sysDate` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `clientproductreview`
--


--
-- Table structure for table `clinic`
--

CREATE TABLE `clinic` (
  `id` int(6) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
  `description` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
  `tempdel` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `clinic`
--


--
-- Table structure for table `collectedparcodestemp`
--

CREATE TABLE `collectedparcodestemp` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `userid` int(11) NOT NULL,
  `sellerid` int(11) NOT NULL,
  `parcodes` text NOT NULL,
  `sysdate` datetime NOT NULL,
  `conditions` tinyint(4) NOT NULL COMMENT '0 new,1 being done as sellbill , 2 completed',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `collectedparcodestemp`
--


--
-- Table structure for table `commentclient`
--

CREATE TABLE `commentclient` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `clientid` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `comments` text NOT NULL,
  `commentdate` date NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `commentclient`
--


--
-- Table structure for table `costcenter`
--

CREATE TABLE `costcenter` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `comment` text NOT NULL,
  `condation` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `costcenter`
--


--
-- Table structure for table `costcenterdetail`
--

CREATE TABLE `costcenterdetail` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `costcenterid` int(11) NOT NULL,
  `type` int(11) NOT NULL COMMENT '0 for sell 1 for return sell 2 for selland return 3 for buy 4 for return buy 5 for buyand return 6 for expeneses 7 for income 8 for salary 9 withdrow 10borrow 11 Advance payment directly-12 expenseexchange-13 bindsettlement',
  `processname` text NOT NULL,
  `modelid` int(11) NOT NULL,
  `tablename` varchar(255) NOT NULL,
  `costdate` date NOT NULL,
  `uesrid` int(11) NOT NULL,
  `del` int(11) NOT NULL,
  `costamount` decimal(10,2) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `costcenterdetail`
--


--
-- Table structure for table `country`
--

CREATE TABLE `country` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `nameen` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `country`
--


--
-- Table structure for table `currency`
--

CREATE TABLE `currency` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `symbol` varchar(100) NOT NULL,
  `conversionFactor` float NOT NULL DEFAULT 1,
  `conditions` tinyint(4) NOT NULL,
  `userid` int(11) NOT NULL,
  `sysDate` datetime NOT NULL,
  `otherconversionFactor` float NOT NULL DEFAULT 1,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `currency`
--

INSERT INTO `currency` VALUES
(1,'جنيه','EGP',1,0,1,'2026-02-03 23:53:44',1);

--
-- Table structure for table `dailyentry`
--

CREATE TABLE `dailyentry` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `totalcreditor` decimal(10,2) NOT NULL,
  `totaldebtor` decimal(10,2) NOT NULL,
  `thedate` date NOT NULL,
  `userid` int(11) NOT NULL,
  `condition` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0 not del',
  `reverseofid` int(11) NOT NULL DEFAULT 0,
  `dDateTime` datetime NOT NULL,
  `entryComment` text DEFAULT NULL,
  `fromFlag` int(11) NOT NULL COMMENT '0entry from daily entry controller-1 entry from program plugins-2 from plugins that use affectplugin()"like case 0" it makes daily entry and automatically affect plugins like ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â‚¬Å¾Ã‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚Â ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¾Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â ÃƒÆ’Ã†â€™Ãƒâ',
  `related` int(11) NOT NULL COMMENT 'rows has the same no are related "dailyentrymany one entry"',
  `branchid` int(11) DEFAULT 0,
  `isopeningentry` tinyint(4) NOT NULL DEFAULT 0,
  `operationId` int(11) NOT NULL,
  `operationDetailLink` text NOT NULL,
  PRIMARY KEY (`id`),
  KEY `thedate` (`thedate`),
  KEY `related` (`related`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `dailyentry`
--


--
-- Table structure for table `dailyentrycreditor`
--

CREATE TABLE `dailyentrycreditor` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `dailyentryid` int(11) NOT NULL,
  `accountstreeid` int(11) NOT NULL,
  `value` decimal(10,2) NOT NULL,
  `dComment` varchar(300) NOT NULL,
  `costcenterid` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `dailyentryid` (`dailyentryid`),
  KEY `accountstreeid` (`accountstreeid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `dailyentrycreditor`
--


--
-- Table structure for table `dailyentrydebtor`
--

CREATE TABLE `dailyentrydebtor` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `dailyentryid` int(11) NOT NULL,
  `accountstreeid` int(11) NOT NULL,
  `value` decimal(10,2) NOT NULL,
  `dComment` varchar(300) NOT NULL,
  `costcenterid` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `dailyentryid` (`dailyentryid`),
  KEY `accountstreeid` (`accountstreeid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `dailyentrydebtor`
--


--
-- Table structure for table `damagedproduct`
--

CREATE TABLE `damagedproduct` (
  `damagedProductId` int(11) NOT NULL AUTO_INCREMENT,
  `productId` int(11) NOT NULL,
  `measurUnitId` int(11) NOT NULL,
  `productQuantity` int(11) NOT NULL,
  `cost` int(11) NOT NULL,
  `productionOrderId` int(11) NOT NULL,
  `operationDate` date NOT NULL,
  `userID` int(11) NOT NULL,
  `storeId` int(11) NOT NULL,
  PRIMARY KEY (`damagedProductId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `damagedproduct`
--


--
-- Table structure for table `datedchecked`
--

CREATE TABLE `datedchecked` (
  `addType` int(11) NOT NULL COMMENT '0 for client 1 for supplier',
  `datedCheckedID` int(11) NOT NULL AUTO_INCREMENT,
  `bankName` varchar(255) NOT NULL,
  `accountNo` int(11) NOT NULL,
  `checkValue` int(11) NOT NULL,
  `checkNo` int(11) NOT NULL,
  `dueDate` date NOT NULL,
  `antherDetailes` varchar(255) NOT NULL,
  `done` int(11) NOT NULL COMMENT '0 for not done - 1 for done - 2 for cancaled - 3 for endoursed',
  `operationDate` date NOT NULL,
  `userID` int(11) NOT NULL,
  `clientNum` int(11) NOT NULL COMMENT 'clientNum = clientId',
  `resonForRefused` varchar(255) NOT NULL,
  `dailyentryid` int(11) NOT NULL DEFAULT 0,
  `checkdate` date DEFAULT NULL,
  `endorsePersonId` int(11) DEFAULT NULL COMMENT 'often id of supplier ',
  `endorseComment` text DEFAULT NULL,
  `endorseDate` date DEFAULT NULL,
  `paperType` tinyint(4) DEFAULT 0,
  `bankid` int(11) DEFAULT 0,
  `accountid` int(11) DEFAULT 0,
  PRIMARY KEY (`datedCheckedID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `datedchecked`
--


--
-- Table structure for table `discountcontrol`
--

CREATE TABLE `discountcontrol` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `totalFrom` float NOT NULL,
  `totalTo` float NOT NULL,
  `discount` float NOT NULL,
  `userid` int(11) NOT NULL,
  `sysdate` datetime NOT NULL,
  `conditions` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `discountcontrol`
--


--
-- Table structure for table `disease`
--

CREATE TABLE `disease` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `sysdate` date DEFAULT NULL,
  `name` varchar(191) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `disease`
--


--
-- Table structure for table `doctorkashf`
--

CREATE TABLE `doctorkashf` (
  `id` int(6) NOT NULL AUTO_INCREMENT,
  `rdsphere` text NOT NULL,
  `rnsphere` text NOT NULL,
  `rdcylinder` text NOT NULL,
  `rncylinder` text NOT NULL,
  `rdaxis` text NOT NULL,
  `rnaxis` text NOT NULL,
  `rdprism` text NOT NULL,
  `rnprism` text NOT NULL,
  `rdva` text NOT NULL,
  `rnva` text NOT NULL,
  `ldsphere` text NOT NULL,
  `lnsphere` text NOT NULL,
  `ldcylinder` text NOT NULL,
  `lncylinder` text NOT NULL,
  `ldaxis` text NOT NULL,
  `lnaxis` text NOT NULL,
  `ldprism` text NOT NULL,
  `lnprism` text NOT NULL,
  `ldva` text NOT NULL,
  `lnva` text NOT NULL,
  `customerid` int(6) NOT NULL,
  `kashfid` int(11) NOT NULL DEFAULT 0,
  `doctorid` int(11) NOT NULL,
  `date` date NOT NULL,
  `loguserid` int(11) NOT NULL DEFAULT 0,
  `branchid` int(11) NOT NULL DEFAULT 0,
  `rondomtxt` varchar(255) DEFAULT NULL,
  `uploaddate` datetime DEFAULT NULL,
  `offline` int(11) DEFAULT 0 COMMENT ' 1 offline - 0 online ',
  `radd` text DEFAULT NULL,
  `rbiofocal` text DEFAULT NULL,
  `ladd` text DEFAULT NULL,
  `lbiofocal` text DEFAULT NULL,
  `pd` text DEFAULT NULL,
  `bvd` text DEFAULT NULL,
  `notes` text DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `doctorkashf`
--


--
-- Table structure for table `ebillsetting`
--

CREATE TABLE `ebillsetting` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `eTaxNum` varchar(150) NOT NULL,
  `eTaxNumBranch` varchar(150) NOT NULL,
  `eGovernorate` varchar(150) NOT NULL,
  `eCity` varchar(150) NOT NULL,
  `eStreet` varchar(200) NOT NULL,
  `eBuildingNum` varchar(150) NOT NULL,
  `eTaxType` varchar(5) NOT NULL,
  `eTaxTypeNum` varchar(255) NOT NULL,
  `eCompanyNameInTaxCard` text NOT NULL,
  `eunitInTax` varchar(100) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ebillsetting`
--


--
-- Table structure for table `eclientsetting`
--

CREATE TABLE `eclientsetting` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `clientid` int(11) NOT NULL,
  `egovernorate` varchar(255) NOT NULL,
  `ecity` varchar(255) NOT NULL,
  `estreet` varchar(255) NOT NULL,
  `ebuildingNum` int(11) NOT NULL,
  `etaxType` varchar(255) NOT NULL,
  `etaxNum` varchar(255) NOT NULL,
  `clientname` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `eclientsetting`
--


--
-- Table structure for table `employee`
--

CREATE TABLE `employee` (
  `employeeId` int(11) NOT NULL AUTO_INCREMENT,
  `employeeName` varchar(256) NOT NULL,
  `employeeBOD` date DEFAULT NULL,
  `employeeAddress` text DEFAULT NULL,
  `employeePhone` varchar(256) DEFAULT NULL,
  `employeeSalary` decimal(10,2) NOT NULL DEFAULT 0.00,
  `employeeBouns` decimal(10,2) NOT NULL DEFAULT 0.00,
  `employeeDate` datetime NOT NULL,
  `conditions` int(1) NOT NULL DEFAULT 0,
  `userId` int(11) NOT NULL,
  `username` varchar(256) NOT NULL,
  `empdept` int(11) NOT NULL DEFAULT 0,
  `isworker` int(11) NOT NULL DEFAULT 0 COMMENT '0 for yes 1 for no',
  `Hourlyrate` decimal(10,2) NOT NULL DEFAULT 0.00,
  `houseAllowance` decimal(10,2) NOT NULL,
  `transportationAllowance` decimal(10,2) NOT NULL,
  `otherAllowance` decimal(10,2) NOT NULL,
  `nationality` varchar(256) NOT NULL,
  `religion` varchar(256) NOT NULL,
  `noOfWorkDaysPerMonth` int(11) NOT NULL,
  `noOfWorkHoursDaysPerDay` int(11) NOT NULL,
  `noOfDistountDaysWhenAbsences` int(11) NOT NULL,
  `contract` varchar(255) NOT NULL,
  `residence` varchar(255) NOT NULL,
  `personalPhoto` varchar(255) NOT NULL,
  `healthCard` varchar(255) NOT NULL,
  `visa` varchar(255) NOT NULL,
  `passport` varchar(255) NOT NULL,
  `minuteLateCost` decimal(10,2) NOT NULL,
  `dayAbsencesCost` decimal(10,2) NOT NULL,
  `graduate` varchar(255) NOT NULL,
  `expert1` varchar(255) NOT NULL,
  `expert2` varchar(255) NOT NULL,
  `expert3` varchar(255) NOT NULL,
  `employeegroupid` int(11) NOT NULL,
  `employeesubgroupid` int(11) NOT NULL,
  `halfHourLateWithPermissionDisount` float NOT NULL,
  `hourLateWithPermissionDisount` float NOT NULL,
  `hourAndHalfLateWithPermissionDisount` float NOT NULL,
  `twoHoursLateWithPermissionDisount` float NOT NULL,
  `halfHourLateWithoutPermissionDisount` float NOT NULL,
  `hourLateWithoutPermissionDisount` float NOT NULL,
  `hourAndHalfLateWithoutPermissionDisount` float NOT NULL,
  `twoHoursLateWithoutPermissionDisount` float NOT NULL,
  `halfHourPermissionDisount` float NOT NULL,
  `hourPermissionDisount` float NOT NULL,
  `hourAndHalfPermissionDisount` float NOT NULL,
  `twoHoursPermissionDisount` float NOT NULL,
  `dayAbsenceWithPermissionDisount` float NOT NULL,
  `dayAbsenceWithoutPermissionDisount` float NOT NULL,
  `moreThanTwoHoursLateWithPermissionDisount` float NOT NULL,
  `moreThanTwoHoursLateWithoutPermissionDisount` float NOT NULL,
  `empFingerId` varchar(18) NOT NULL DEFAULT '',
  `empRFID` varchar(18) NOT NULL DEFAULT '',
  `empFingerId2` varchar(18) NOT NULL DEFAULT '',
  `empFingerId3` varchar(18) NOT NULL DEFAULT '',
  `empFingerId4` varchar(18) NOT NULL DEFAULT '',
  `empFingerId5` varchar(18) NOT NULL DEFAULT '',
  `numberOfMinutesOfDelayAllowed` int(11) NOT NULL DEFAULT 0,
  `takeVacationDays` int(11) NOT NULL DEFAULT 0,
  `treeId` int(11) NOT NULL DEFAULT 0,
  `treeId2` int(11) NOT NULL DEFAULT 0,
  `quarterHourLateWithPermissionDisount` float NOT NULL,
  `quarterHourLateWithoutPermissionDisount` float NOT NULL,
  `numberOfCountsOfDelayAllowed` int(11) NOT NULL DEFAULT 0,
  `branchid` int(11) NOT NULL DEFAULT 0,
  `empCode` int(11) NOT NULL,
  `socialInsurance` float NOT NULL DEFAULT 0,
  `workTax` float NOT NULL DEFAULT 0,
  `sysdate` datetime NOT NULL,
  PRIMARY KEY (`employeeId`),
  UNIQUE KEY `empCode` (`empCode`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `employee`
--


--
-- Table structure for table `employeeattendance`
--

CREATE TABLE `employeeattendance` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `empid` int(11) NOT NULL,
  `theImage` varchar(255) NOT NULL,
  `sysdate` datetime NOT NULL,
  `userid` int(11) NOT NULL,
  `fingerid` varchar(18) NOT NULL,
  `rfid` varchar(18) NOT NULL,
  `accessType` tinyint(4) NOT NULL COMMENT 'finger access 0, rfid access 1',
  `syncToServer` tinyint(4) NOT NULL COMMENT '0 at accees  device , 1 handled at erp',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `employeeattendance`
--


--
-- Table structure for table `employeeattendancesystem`
--

CREATE TABLE `employeeattendancesystem` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `numberOfMinutesOfDelayAllowed` int(11) NOT NULL DEFAULT 0,
  `takeVacationDays` int(11) NOT NULL DEFAULT 0,
  `halfHourLateWithPermissionDisount` float NOT NULL,
  `hourLateWithPermissionDisount` float NOT NULL,
  `hourAndHalfLateWithPermissionDisount` float NOT NULL,
  `twoHoursLateWithPermissionDisount` float NOT NULL,
  `halfHourLateWithoutPermissionDisount` float NOT NULL,
  `hourLateWithoutPermissionDisount` float NOT NULL,
  `hourAndHalfLateWithoutPermissionDisount` float NOT NULL,
  `twoHoursLateWithoutPermissionDisount` float NOT NULL,
  `halfHourPermissionDisount` float NOT NULL,
  `hourPermissionDisount` float NOT NULL,
  `hourAndHalfPermissionDisount` float NOT NULL,
  `twoHoursPermissionDisount` float NOT NULL,
  `dayAbsenceWithPermissionDisount` float NOT NULL,
  `dayAbsenceWithoutPermissionDisount` float NOT NULL,
  `userid` int(11) NOT NULL,
  `del` tinyint(4) NOT NULL,
  `sysdate` datetime NOT NULL,
  `moreThanTwoHoursLateWithPermissionDisount` float NOT NULL,
  `moreThanTwoHoursLateWithoutPermissionDisount` float NOT NULL,
  `quarterHourLateWithPermissionDisount` float NOT NULL,
  `quarterHourLateWithoutPermissionDisount` float NOT NULL,
  `numberOfCountsOfDelayAllowed` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `employeeattendancesystem`
--


--
-- Table structure for table `employeeclosedaygroupstatus`
--

CREATE TABLE `employeeclosedaygroupstatus` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `day` date NOT NULL,
  `employeegroupid` int(11) NOT NULL,
  `status` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `sysdate` datetime NOT NULL,
  `conditions` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `day` (`day`,`employeegroupid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `employeeclosedaygroupstatus`
--


--
-- Table structure for table `employeeclosedayhistory`
--

CREATE TABLE `employeeclosedayhistory` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `employeeid` int(11) NOT NULL,
  `day` date NOT NULL,
  `attendanceTime` time NOT NULL,
  `departureTime` time NOT NULL,
  `latePeriod` float NOT NULL,
  `lateHasPermission` tinyint(4) NOT NULL,
  `lateDiscount` float NOT NULL,
  `isAbsent` tinyint(4) NOT NULL,
  `absentHasPermission` tinyint(4) NOT NULL,
  `absentDiscount` float NOT NULL,
  `userid` int(11) NOT NULL,
  `sysdate` datetime NOT NULL,
  `del` int(11) NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT -1 COMMENT '-1 is just attenendace no affect with late or absent money, 1 hr close it and already affect done',
  PRIMARY KEY (`id`),
  UNIQUE KEY `employeeid` (`employeeid`,`day`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `employeeclosedayhistory`
--


--
-- Table structure for table `employeeclosedaystatus`
--

CREATE TABLE `employeeclosedaystatus` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `day` date NOT NULL,
  `status` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `sysdate` datetime NOT NULL,
  `conditions` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `day` (`day`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `employeeclosedaystatus`
--


--
-- Table structure for table `employeeclosedaysubgroupstatus`
--

CREATE TABLE `employeeclosedaysubgroupstatus` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `day` date NOT NULL,
  `employeesubgroupid` int(11) NOT NULL,
  `status` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `sysdate` datetime NOT NULL,
  `conditions` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `day` (`day`,`employeesubgroupid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `employeeclosedaysubgroupstatus`
--


--
-- Table structure for table `employeedoctor`
--

CREATE TABLE `employeedoctor` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `thetype` tinyint(4) NOT NULL COMMENT '0 employee,1 doctor',
  `name` varchar(255) NOT NULL,
  `val` float NOT NULL,
  `treeId` int(11) NOT NULL,
  `dailyentryid` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `sysdate` datetime NOT NULL,
  `del` tinyint(4) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `employeedoctor`
--


--
-- Table structure for table `employeedoctordebtandpay`
--

CREATE TABLE `employeedoctordebtandpay` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `thetype` tinyint(4) NOT NULL COMMENT '0 debt , 1 pay',
  `employeeOrDoctor` tinyint(4) NOT NULL,
  `employeeOrDoctorId` int(11) NOT NULL,
  `saveid` int(11) NOT NULL,
  `paytype` tinyint(4) NOT NULL COMMENT '0 direct with save , 1 with salary',
  `whatexpens` tinyint(4) NOT NULL COMMENT 'this is for employess    0 genersl expenses, 1  running expenses',
  `val` float NOT NULL,
  `dailyentryid` varchar(11) NOT NULL,
  `note` text NOT NULL,
  `userid` int(11) NOT NULL,
  `sysdate` datetime NOT NULL,
  `del` tinyint(4) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `employeedoctordebtandpay`
--


--
-- Table structure for table `employeedoctordebtchange`
--

CREATE TABLE `employeedoctordebtchange` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `employeeOrDoctor` tinyint(4) NOT NULL,
  `employeeOrDoctorId` int(11) NOT NULL,
  `debtchangebefore` decimal(10,2) NOT NULL,
  `debtchangeamount` decimal(10,2) NOT NULL,
  `debtchangetype` tinyint(4) NOT NULL,
  `processname` varchar(255) NOT NULL,
  `debtchangemodelid` int(11) NOT NULL,
  `debtchangeafter` decimal(10,2) NOT NULL,
  `debtchangedate` datetime NOT NULL,
  `userid` int(11) NOT NULL,
  `tablename` varchar(300) NOT NULL,
  `comment` text NOT NULL,
  `del` tinyint(4) NOT NULL,
  `dailyentryid` int(11) NOT NULL,
  `saveid` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `employeedoctordebtchange`
--


--
-- Table structure for table `employeegroup`
--

CREATE TABLE `employeegroup` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `employeeattendancesystemid` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `del` tinyint(4) NOT NULL,
  `sysdate` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `employeegroup`
--


--
-- Table structure for table `employeepersonnel`
--

CREATE TABLE `employeepersonnel` (
  `employeepersonnelid` int(11) NOT NULL AUTO_INCREMENT,
  `employeeid` int(11) NOT NULL,
  `employeepersonnelvalue` decimal(10,2) NOT NULL,
  `employeepersonnelnote` varchar(600) DEFAULT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `userid` int(11) NOT NULL,
  `employeepersonneldate` datetime NOT NULL,
  `employeepersonneltype` int(11) NOT NULL COMMENT '1 for Reward 2 for Discount  3 for  Withdrawal 4 for Borrow 5 for Absence 6 for  Repayment 7 Repayment from salary   ',
  `done` int(11) NOT NULL DEFAULT 0 COMMENT '1 for Catch 0 for notCatch',
  `empdeptbefor` int(11) NOT NULL DEFAULT 0,
  `empdeptafter` int(11) NOT NULL DEFAULT 0,
  `salarymonth` varchar(255) NOT NULL,
  `paymenttype` int(11) NOT NULL,
  `payid` int(11) NOT NULL,
  `payid2` int(11) NOT NULL,
  `checknum` varchar(255) NOT NULL,
  `isMandobReward` tinyint(4) NOT NULL DEFAULT 0,
  `dailyentryid` int(11) NOT NULL DEFAULT 0,
  `deviceid` varchar(255) NOT NULL DEFAULT '01',
  `employeedeviceid` varchar(255) NOT NULL DEFAULT '0',
  PRIMARY KEY (`employeepersonnelid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `employeepersonnel`
--


--
-- Table structure for table `employeesubgroup`
--

CREATE TABLE `employeesubgroup` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `employeegroupid` int(11) NOT NULL,
  `employeeattendancesystemid` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `del` tinyint(4) NOT NULL,
  `sysdate` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `employeesubgroup`
--


--
-- Table structure for table `entryproductspurchased`
--

CREATE TABLE `entryproductspurchased` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `productid` int(11) NOT NULL,
  `price` decimal(10,2) NOT NULL,
  `productquantity` decimal(10,2) NOT NULL,
  `soldquantity` decimal(10,2) NOT NULL,
  `tablename` varchar(255) NOT NULL,
  `modelid` int(11) NOT NULL,
  `expirationDate` date DEFAULT NULL,
  `priority` int(11) NOT NULL DEFAULT 0,
  `del` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `entryproductspurchased`
--


--
-- Table structure for table `expenseexchange`
--

CREATE TABLE `expenseexchange` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `serialno` varchar(255) NOT NULL,
  `projectid` int(11) NOT NULL,
  `expensefrom` int(11) NOT NULL COMMENT '0 from save-1from bank-2from ohda',
  `expenseid` int(11) NOT NULL,
  `expenseid2` int(11) NOT NULL,
  `thevalue` int(11) NOT NULL,
  `costcenterid` int(11) NOT NULL,
  `expensedate` date NOT NULL,
  `expensetype` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `del` int(11) NOT NULL,
  `sysdate` date NOT NULL,
  `entryid` int(11) NOT NULL,
  `expenseexcomment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `images` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `supplierid` int(11) NOT NULL,
  `supervision_type` int(11) NOT NULL,
  `supervision_amount` int(11) NOT NULL,
  `finalsupervision` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `expenseexchange`
--


--
-- Table structure for table `expenses`
--

CREATE TABLE `expenses` (
  `expensesid` int(11) NOT NULL AUTO_INCREMENT,
  `expensestypeid` int(11) NOT NULL,
  `expensesname` varchar(100) NOT NULL,
  `expensesdetails` text DEFAULT NULL,
  `expensesValue` decimal(10,2) NOT NULL DEFAULT 0.00,
  `expensesdate` date NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0 COMMENT '0 for not deleted- 1 for deleted',
  `costcenterid` int(11) DEFAULT 0,
  `saveid` int(11) NOT NULL,
  `dailyentryid` int(11) NOT NULL DEFAULT 0,
  `bankid` int(11) NOT NULL,
  `bankaccountid` int(11) NOT NULL,
  `checknum` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `productid` int(11) NOT NULL DEFAULT 0,
  `expensenumbrt` decimal(10,2) NOT NULL DEFAULT 0.00,
  `expenseprice` decimal(10,2) NOT NULL DEFAULT 0.00,
  `expensetotaln` decimal(10,2) NOT NULL DEFAULT 0.00,
  `expenseshortfalls` decimal(10,2) NOT NULL DEFAULT 0.00,
  `supplier` int(11) NOT NULL,
  `suppRemainingVal` float NOT NULL,
  `sellbillid` int(11) NOT NULL DEFAULT 0,
  `clientid` int(11) NOT NULL DEFAULT 0,
  `realestateid` int(11) NOT NULL DEFAULT 0,
  `realestateunitid` int(11) NOT NULL DEFAULT 0,
  `file` varchar(255) NOT NULL DEFAULT '',
  `taxPer` float NOT NULL DEFAULT 0,
  `taxVal` float NOT NULL DEFAULT 0,
  `travelDriverId` int(11) DEFAULT NULL,
  `travelBusId` int(11) DEFAULT NULL,
  `travelPathId` int(11) DEFAULT NULL,
  `travelTripId` int(11) DEFAULT NULL,
  `travelTripTypeId` int(11) DEFAULT NULL,
  `travelTripDateId` int(11) DEFAULT NULL,
  `travelOfficeId` int(11) DEFAULT NULL,
  `webApiId` int(11) NOT NULL DEFAULT 0,
  `tagids` varchar(255) NOT NULL DEFAULT '0',
  PRIMARY KEY (`expensesid`),
  KEY `idx_expenses` (`expensestypeid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `expenses`
--


--
-- Table structure for table `expensestype`
--

CREATE TABLE `expensestype` (
  `expensestypeid` int(11) NOT NULL AUTO_INCREMENT,
  `expensestypename` varchar(256) NOT NULL,
  `expensestypedetails` text DEFAULT NULL,
  `expensestypedate` date NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0 COMMENT '0 for not deleted- 1 for deleted',
  `userid` int(11) NOT NULL,
  `parent` int(11) NOT NULL,
  `type` int(11) NOT NULL DEFAULT 0 COMMENT '0 for ',
  `saveid` int(11) NOT NULL,
  `addOnlyGroupIds` varchar(255) NOT NULL,
  `treeType` tinyint(4) DEFAULT 0,
  `treeId` int(11) NOT NULL DEFAULT 0,
  `withinsupervision_ratio` tinyint(4) DEFAULT NULL,
  `supervision_ratiotype` tinyint(4) DEFAULT 1,
  `supervision_amount` decimal(10,2) NOT NULL DEFAULT 0.00,
  `webApiId` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`expensestypeid`)
) ENGINE=InnoDB AUTO_INCREMENT=65 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `expensestype`
--

INSERT INTO `expensestype` VALUES
(1,'تكلÙة النشاط','انواع اÙتراضية','2022-07-04',0,1,0,0,0,'',2,158,NULL,1,0.00,0),
(2,'تكلÙة البضاعة المباعة ','انواع اÙتراضية','2022-07-04',0,1,1,0,0,'',2,159,NULL,1,0.00,0),
(3,'تكلÙة مبيعات المخزون السلعي','انواع اÙتراضية','2022-07-04',0,1,2,0,0,'',2,160,NULL,1,0.00,0),
(4,'المرتبات والاجور الانتاجية وما Ùي حكمها','انواع اÙتراضية','2022-07-04',0,1,3,0,0,'',2,164,NULL,1,0.00,0),
(5,'تكلÙة التشغيل','0','2023-07-25',0,1,3,0,0,'',0,402,NULL,1,0.00,0),
(6,'مصاريÙ خدمات انتاجيه','انواع اÙتراضية','2022-07-04',0,1,3,0,0,'',2,181,NULL,1,0.00,0),
(17,'المصروÙات','0','2023-07-04',0,1,1,0,0,'',0,411,NULL,1,0.00,0),
(19,'خصم الأطباء','0','2023-07-26',0,1,20,0,0,'',0,400,NULL,1,0.00,0),
(20,'مصروÙات التشغيل','0','2023-07-04',0,1,17,0,0,'',0,412,NULL,1,0.00,0),
(21,'اجور تشغيل موظÙين','0','2023-07-04',0,1,20,0,0,'',0,415,NULL,1,0.00,0),
(22,' اجور تشغيل اطباء','0','2023-07-04',0,1,20,0,0,'',0,416,NULL,1,0.00,0),
(23,'مصروÙات عمومية و إدارية','0','2023-07-04',0,1,17,0,0,'',0,413,NULL,1,0.00,0),
(24,'اجور ومرتبات-م-ع','0','2023-07-04',0,1,23,0,0,'',0,417,NULL,1,0.00,0),
(25,'مصروÙات بيع و تسويق','0','2023-07-04',0,1,17,0,0,'',0,414,NULL,1,0.00,0),
(26,'ايجارات','0','2023-07-04',0,1,23,0,0,'',1,3,NULL,1,0.00,0),
(27,'أدوات كتابيه و مطبوعات','0','2023-07-04',0,1,23,0,0,'',1,4,NULL,1,0.00,0),
(28,'مياه و اناره','0','2023-07-04',0,1,23,0,0,'',1,7,NULL,1,0.00,0),
(29,'تلÙون و نت','0','2023-07-04',0,1,23,0,0,'',1,10,NULL,1,0.00,0),
(30,'اصلاح و صيانه','0','2023-07-04',0,1,23,0,0,'',1,13,NULL,1,0.00,0),
(31,'مهمات','0','2023-07-04',0,1,23,0,0,'',1,16,NULL,1,0.00,0),
(32,'نقل و مشال','0','2023-07-04',0,1,23,0,0,'',1,19,NULL,1,0.00,0),
(33,'اكراميات','0','2023-07-04',0,1,23,0,0,'',1,22,NULL,1,0.00,0),
(34,'نظاÙه','0','2023-07-04',0,1,23,0,0,'',1,24,NULL,1,0.00,0),
(35,'بوÙيه وضياÙه','0','2023-07-04',0,1,23,0,0,'',1,32,NULL,1,0.00,0),
(36,'بوÙيه وضياÙه (Ùطار رمضان)','0','2023-07-04',0,1,23,0,0,'',1,64,NULL,1,0.00,0),
(37,'مصروÙات بنكيه','0','2023-07-04',0,1,23,0,0,'',1,65,NULL,1,0.00,0),
(38,'Ùوائد بنكيه','0','2023-07-04',0,1,23,0,0,'',1,66,NULL,1,0.00,0),
(39,'مصنعيات','0','2023-07-04',0,1,23,0,0,'',1,129,NULL,1,0.00,0),
(40,'عمولات موظÙين','0','2023-07-04',0,1,23,0,0,'',1,161,NULL,1,0.00,0),
(41,'تامينات','0','2023-07-04',0,1,23,0,0,'',1,162,NULL,1,0.00,0),
(42,'عمولات تحويلات بنكيه','0','2023-07-04',0,1,23,0,0,'',1,163,NULL,1,0.00,0),
(43,'تعبئه و تغليÙ','0','2023-07-04',0,1,23,0,0,'',1,165,NULL,1,0.00,0),
(44,'دعايا و اعلان','0','2023-07-04',0,1,23,0,0,'',1,166,NULL,1,0.00,0),
(45,'مكاÙات','0','2023-07-04',0,1,23,0,0,'',1,167,NULL,1,0.00,0),
(46,'رسوم حكوميه','0','2023-07-04',0,1,23,0,0,'',1,168,NULL,1,0.00,0),
(47,'تراخيص','0','2023-07-04',0,1,23,0,0,'',1,169,NULL,1,0.00,0),
(48,'شهريات','0','2023-07-04',0,1,23,0,0,'',1,170,NULL,1,0.00,0),
(49,'مصروÙات و نثريات السياره','0','2023-07-04',0,1,23,0,0,'',1,171,NULL,1,0.00,0),
(50,'زيوت وقود','0','2023-07-04',0,1,23,0,0,'',1,172,NULL,1,0.00,0),
(51,'ايجار سياره','0','2023-07-04',0,1,23,0,0,'',1,173,NULL,1,0.00,0),
(52,'مصروÙات شحن','0','2023-07-05',0,1,23,0,0,'',1,174,NULL,1,0.00,0),
(53,'تبرعات','0','2023-07-04',0,1,23,0,0,'',1,175,NULL,1,0.00,0),
(54,'ضريبه كسب العمل','0','2023-07-04',0,1,23,0,0,'',1,176,NULL,1,0.00,0),
(55,'زكاة','0','2023-07-04',0,1,23,0,0,'',1,177,NULL,1,0.00,0),
(56,'جمعيات ومحاضر','0','2023-07-04',0,1,23,0,0,'',1,178,NULL,1,0.00,0),
(57,'اتعاب مهنية','0','2023-07-04',0,1,23,0,0,'',1,179,NULL,1,0.00,0),
(58,'ضرائب عقارية','0','2023-07-04',0,1,23,0,0,'',1,180,NULL,1,0.00,0),
(59,'احبار','0','2023-07-04',0,1,23,0,0,'',1,182,NULL,1,0.00,0),
(60,'اشتراك ( hot line)','0','2023-07-04',0,1,23,0,0,'',1,183,NULL,1,0.00,0),
(61,'ايجار معدات','0','2023-07-04',0,1,0,0,0,'',2,184,NULL,1,0.00,0),
(62,'مغسله','0','2023-07-04',0,1,0,0,0,'',2,185,NULL,1,0.00,0),
(63,'اصلاح_صيانه','0','2023-07-04',0,1,0,0,0,'',2,186,NULL,1,0.00,0),
(64,'عمولات ومكاÙات','0','2023-07-04',0,1,0,0,0,'',2,187,NULL,1,0.00,0);

--
-- Table structure for table `faida`
--

CREATE TABLE `faida` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `client_id` int(11) NOT NULL,
  `premmium` varchar(100) NOT NULL,
  `comment` text NOT NULL,
  `user_id` int(11) NOT NULL,
  `store_id` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0 COMMENT '(0=all) (1=approval)(2=refusal)',
  `installment_duration` int(11) NOT NULL,
  `total_amount` int(11) NOT NULL,
  `presenter` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `faida`
--


--
-- Table structure for table `faidadirector`
--

CREATE TABLE `faidadirector` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `faida_id` int(11) NOT NULL,
  `conditions` int(11) DEFAULT 0 COMMENT '(0=>Approval)(1=>Refusal)',
  `comment` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `faidadirector`
--


--
-- Table structure for table `faidaproduct`
--

CREATE TABLE `faidaproduct` (
  `faida_prod_id` int(11) NOT NULL AUTO_INCREMENT,
  `parcode` int(11) DEFAULT NULL,
  `comment` text DEFAULT NULL,
  `productunit` float DEFAULT NULL,
  `pronum` float DEFAULT NULL,
  `scunitname` int(11) DEFAULT NULL,
  `bouns` float DEFAULT NULL,
  `pricetypepro` int(11) DEFAULT NULL,
  `proprice` int(11) DEFAULT NULL,
  `discounttype` float DEFAULT NULL,
  `Faida_id` int(11) DEFAULT NULL,
  `product_id` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `faidaproducttotalprice` decimal(10,2) NOT NULL,
  PRIMARY KEY (`faida_prod_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `faidaproduct`
--


--
-- Table structure for table `goverarea`
--

CREATE TABLE `goverarea` (
  `goverareaid` int(11) NOT NULL AUTO_INCREMENT,
  `governmentid` int(11) DEFAULT NULL,
  `clientareaid` int(11) DEFAULT NULL,
  PRIMARY KEY (`goverareaid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `goverarea`
--


--
-- Table structure for table `government`
--

CREATE TABLE `government` (
  `governmetid` int(11) NOT NULL AUTO_INCREMENT,
  `governmentname` text DEFAULT NULL,
  PRIMARY KEY (`governmetid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `government`
--


--
-- Table structure for table `impotencetreatmentsuppliersave`
--

CREATE TABLE `impotencetreatmentsuppliersave` (
  `impotencetreatmentsuppliersaveid` int(11) NOT NULL AUTO_INCREMENT,
  `typesimpotencetreatmentid` int(11) NOT NULL,
  `saveid` int(11) NOT NULL,
  `supplierid` int(11) NOT NULL,
  `impotencetreatmentsuppliersavetype` int(11) NOT NULL,
  `impotencetreatmentsuppliersavebefore` decimal(10,2) NOT NULL,
  `impotencetreatmentsuppliersavetamount` decimal(10,2) NOT NULL,
  `impotencetreatmentsuppliersaveafter` decimal(10,2) NOT NULL,
  `impotencetreatmentsuppliersavecomment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `conditions` int(11) NOT NULL COMMENT '0 for not deleted- 1 for deleted',
  `impotencetreatmentsuppliersavedate` datetime NOT NULL,
  `userid` int(11) NOT NULL,
  `tablename` varchar(256) NOT NULL,
  `dailyentryid` varchar(11) NOT NULL,
  PRIMARY KEY (`impotencetreatmentsuppliersaveid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `impotencetreatmentsuppliersave`
--


--
-- Table structure for table `income`
--

CREATE TABLE `income` (
  `incomeId` int(11) NOT NULL AUTO_INCREMENT,
  `incomeTypeId` int(11) NOT NULL,
  `incomeName` varchar(255) NOT NULL,
  `incomeDetails` text NOT NULL,
  `incomeValue` decimal(10,2) NOT NULL,
  `incomeDate` date NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL COMMENT '0 for not deleted- 1 for deleted',
  `costcenterid` int(11) DEFAULT 0,
  `dailyentryid` int(11) NOT NULL DEFAULT 0,
  `saveid` int(11) DEFAULT 0,
  `clientid` int(11) DEFAULT 0,
  `webApiId` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`incomeId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `income`
--


--
-- Table structure for table `incometype`
--

CREATE TABLE `incometype` (
  `incomeTypeId` int(11) NOT NULL AUTO_INCREMENT,
  `incomeTypeName` varchar(255) NOT NULL,
  `defaultValue` decimal(10,2) NOT NULL,
  `incomeTypeDetails` text NOT NULL,
  `parent` int(11) NOT NULL,
  `incomeTypeDate` date NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL COMMENT '0 for not deleted- 1 for deleted',
  `studentsubjectid` int(11) NOT NULL DEFAULT 0,
  `treeId` int(11) NOT NULL DEFAULT 0,
  `webApiId` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`incomeTypeId`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `incometype`
--

INSERT INTO `incometype` VALUES
(1,'ارباح بيع اوارق مالية',0.00,'انواع اÙتراضية',0,'2022-07-04',1,0,0,152,0),
(2,'ايرادات Ùروق عملة',0.00,'انواع اÙتراضية',0,'2022-07-04',1,0,0,153,0),
(3,'ايرادات عمولات',0.00,'انواع اÙتراضية',0,'2022-07-04',1,0,0,154,0),
(4,'ايرادات بيع مخلÙات ',0.00,'انواع اÙتراضية',0,'2022-07-04',1,0,0,155,0),
(5,'إيرادات رسمالية',0.00,'انواع اÙتراضية',0,'2022-07-04',1,0,0,156,0),
(6,'ايرادات ايجارات دائنة',0.00,'انواع اÙتراضية',0,'2022-07-04',1,0,0,157,0),
(7,'ايرادات اشراÙ',0.00,'ايرادات اشراÙ',0,'2022-07-04',1,0,0,418,0);

--
-- Table structure for table `insurancecompanies`
--

CREATE TABLE `insurancecompanies` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `discountpercent` decimal(10,2) DEFAULT 0.00,
  `contractstart` date DEFAULT NULL,
  `contractend` date DEFAULT NULL,
  `contractphoto` varchar(255) DEFAULT NULL,
  `instruction` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deleted` int(11) NOT NULL DEFAULT 0,
  `userid` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci COMMENT='أسماء شركات التأمين ';

--
-- Dumping data for table `insurancecompanies`
--


--
-- Table structure for table `kashf`
--

CREATE TABLE `kashf` (
  `id` int(6) NOT NULL AUTO_INCREMENT,
  `kashfvalue` int(6) NOT NULL,
  `kashftype` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `customerid` int(6) NOT NULL,
  `doctorid` int(6) NOT NULL,
  `kashfdate` date DEFAULT NULL,
  `entered` int(11) unsigned NOT NULL DEFAULT 0,
  `paystatus` int(11) NOT NULL DEFAULT 0 COMMENT '0 paid now - will be paid with bill - ## added to bill previous already ',
  `rondomtxt` varchar(255) DEFAULT NULL,
  `branchid` int(11) DEFAULT NULL,
  `offline` int(11) DEFAULT 0 COMMENT ' 1 offline - 0 online ',
  `uploaddate` datetime DEFAULT NULL,
  `dailyentryid` int(11) NOT NULL DEFAULT 0,
  `kasfhserial` int(11) NOT NULL,
  `discountkashf` int(11) DEFAULT NULL COMMENT '0 => no - 1 =>yes',
  `used` int(11) DEFAULT NULL COMMENT '0=> no - 1 => yes',
  `bill_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `kashf`
--


--
-- Table structure for table `kempiala`
--

CREATE TABLE `kempiala` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `clientID` int(11) NOT NULL,
  `recievingdate` date NOT NULL,
  `value` decimal(10,2) NOT NULL,
  `clientcomment` text NOT NULL,
  `selling` int(11) NOT NULL DEFAULT 0 COMMENT '0 => not sold- 1 => sold',
  `expiredate` date NOT NULL,
  `supplierID` int(11) DEFAULT NULL,
  `sellingdate` datetime DEFAULT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0 COMMENT '0 for not canceled- 1 for canceled',
  `suppliercomment` text DEFAULT NULL,
  `dailyentryid` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `clientID` (`clientID`),
  KEY `supplierID` (`supplierID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `kempiala`
--


--
-- Table structure for table `knownways`
--

CREATE TABLE `knownways` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `knownways`
--


--
-- Table structure for table `languages`
--

CREATE TABLE `languages` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) DEFAULT NULL,
  `code` varchar(191) DEFAULT NULL,
  `locale` varchar(191) DEFAULT NULL,
  `status` tinyint(1) unsigned DEFAULT NULL,
  `is_default` smallint(1) NOT NULL DEFAULT 0,
  `lang_dir` tinyint(1) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `languages`
--

INSERT INTO `languages` VALUES
(1,'AR','ar','ar_eg',1,1,1),
(2,'EN','en','en_us',1,0,0);

--
-- Table structure for table `lastbillidspricesupdated`
--

CREATE TABLE `lastbillidspricesupdated` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `buybill` int(11) NOT NULL DEFAULT 0,
  `buyandret` int(11) NOT NULL DEFAULT 0,
  `retbuy` int(11) NOT NULL DEFAULT 0,
  `sell` int(11) NOT NULL DEFAULT 0,
  `sellandret` int(11) NOT NULL DEFAULT 0,
  `retsell` int(11) NOT NULL DEFAULT 0,
  `buyquantity` int(11) NOT NULL DEFAULT 0,
  `buyandretquantity` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `lastbillidspricesupdated`
--


--
-- Table structure for table `lastbillidsquickprofit`
--

CREATE TABLE `lastbillidsquickprofit` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sell` int(11) NOT NULL,
  `sellDetail` int(11) NOT NULL,
  `sellandret` int(11) NOT NULL,
  `sellandretDetail` int(11) NOT NULL,
  `retsell` int(11) NOT NULL,
  `retsellDetail` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `lastbillidsquickprofit`
--


--
-- Table structure for table `m_check`
--

CREATE TABLE `m_check` (
  `checkId` int(11) NOT NULL AUTO_INCREMENT,
  `ourSerial` varchar(255) NOT NULL,
  `userId` int(11) NOT NULL,
  `stageFrom` int(11) NOT NULL,
  `checkDate` date NOT NULL,
  `branchId` int(11) NOT NULL,
  `del` int(11) NOT NULL COMMENT '0 for not del -1 for del',
  PRIMARY KEY (`checkId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `m_check`
--


--
-- Table structure for table `m_comreceipt`
--

CREATE TABLE `m_comreceipt` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `receiptserial` varchar(255) NOT NULL,
  `receiptdat` date NOT NULL,
  `branchid` int(11) NOT NULL,
  `clientid` int(11) NOT NULL,
  `totalCost` decimal(10,2) DEFAULT 0.00 COMMENT 'for MaintennanceSettlement ',
  `Initialcost` decimal(10,2) NOT NULL,
  `shipcost` decimal(10,2) NOT NULL,
  `documentid` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `del` int(11) NOT NULL DEFAULT 0 COMMENT '0 not del 1 del',
  `status` int(11) NOT NULL DEFAULT 0 COMMENT '1 for done',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `m_comreceipt`
--


--
-- Table structure for table `m_comreceiptdetail`
--

CREATE TABLE `m_comreceiptdetail` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `receiptid` int(11) NOT NULL,
  `productserial` varchar(255) NOT NULL,
  `productId` int(11) NOT NULL,
  `ourserial` varchar(255) NOT NULL,
  `granttype` int(11) NOT NULL COMMENT '0 for maintennance- 1  for client insurance -2 for copmany insurance',
  `sellbillid` int(11) NOT NULL,
  `sellbilldate` date NOT NULL,
  `buybillid` int(11) NOT NULL,
  `buybilldate` date NOT NULL,
  `insduration` int(11) NOT NULL,
  `insstatus` int(11) NOT NULL,
  `problem` text NOT NULL,
  `attach` text NOT NULL,
  `comment` text NOT NULL,
  `shipcost` decimal(10,2) NOT NULL,
  `initialcost` decimal(10,2) NOT NULL,
  `supplierid` int(11) NOT NULL,
  `currentstage` int(11) NOT NULL,
  `branchid` int(11) NOT NULL,
  `del` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `m_comreceiptdetail`
--


--
-- Table structure for table `m_comreceiptimage`
--

CREATE TABLE `m_comreceiptimage` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `comreceiptid` int(11) NOT NULL,
  `receiptimage` varchar(255) NOT NULL,
  `imagedate` date NOT NULL,
  `userid` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `m_comreceiptimage`
--


--
-- Table structure for table `m_externalmaintenance`
--

CREATE TABLE `m_externalmaintenance` (
  `externalmaintenanceId` int(11) NOT NULL AUTO_INCREMENT,
  `ourSerial` varchar(255) NOT NULL,
  `supplierId` int(11) NOT NULL,
  `externalmaintenanceDate` date NOT NULL,
  `comment` text NOT NULL,
  `externalmaintenanceReturn` int(11) NOT NULL COMMENT '0 for nonReturn - 1 for Returned',
  `returnComment` text NOT NULL,
  `supplierCost` decimal(10,2) NOT NULL,
  `returnedDate` date NOT NULL,
  `branchId` int(11) NOT NULL,
  `userId` int(11) NOT NULL,
  `del` int(11) NOT NULL COMMENT '0 for not del -1 for del',
  PRIMARY KEY (`externalmaintenanceId`),
  KEY `externalmaintenanceReturn` (`externalmaintenanceReturn`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `m_externalmaintenance`
--


--
-- Table structure for table `m_finishingpayed`
--

CREATE TABLE `m_finishingpayed` (
  `finishingPayedId` int(11) NOT NULL AUTO_INCREMENT,
  `clientId` int(11) NOT NULL,
  `payed` decimal(10,2) NOT NULL,
  `clientDebtChangeId` int(11) NOT NULL,
  `finishingType` int(11) NOT NULL COMMENT '0 for not uesd "new"- 1 for finished - 2  for remain',
  `finishingPayedDate` date NOT NULL,
  `remain` decimal(10,2) NOT NULL,
  `userId` int(11) NOT NULL,
  `branchId` int(11) NOT NULL,
  `del` int(11) NOT NULL COMMENT '0 for not del - 1 for del',
  PRIMARY KEY (`finishingPayedId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `m_finishingpayed`
--


--
-- Table structure for table `m_handedreport`
--

CREATE TABLE `m_handedreport` (
  `handedReportId` int(11) NOT NULL AUTO_INCREMENT,
  `stageId` int(11) NOT NULL,
  `ourSerial` varchar(255) NOT NULL,
  `actualCost` decimal(10,2) NOT NULL,
  `initiateCost` decimal(10,2) NOT NULL,
  `clientCost` decimal(10,2) NOT NULL,
  `comment` text NOT NULL,
  `userId` int(11) NOT NULL,
  `handedReportDate` date NOT NULL,
  `archive` int(11) NOT NULL COMMENT '0 for delivered-1not delevered',
  `branchId` int(11) NOT NULL,
  `del` int(11) NOT NULL COMMENT '0 for not del -1 for del',
  PRIMARY KEY (`handedReportId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `m_handedreport`
--


--
-- Table structure for table `m_initialmaintenance`
--

CREATE TABLE `m_initialmaintenance` (
  `initialMaintenanceId` int(11) NOT NULL AUTO_INCREMENT,
  `ourSerial` varchar(255) NOT NULL,
  `initialMaintenanceDate` date NOT NULL,
  `comment` text NOT NULL,
  `userId` int(11) NOT NULL,
  `branchId` int(11) NOT NULL,
  `totalClientCost` decimal(10,2) NOT NULL,
  `del` int(11) NOT NULL COMMENT '0 for not del -1 for del',
  PRIMARY KEY (`initialMaintenanceId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `m_initialmaintenance`
--


--
-- Table structure for table `m_initialmaintenancedetail`
--

CREATE TABLE `m_initialmaintenancedetail` (
  `initialMaintenanceDetailId` int(11) NOT NULL AUTO_INCREMENT,
  `initialMaintenanceId` int(11) NOT NULL,
  `propertyId` int(11) NOT NULL,
  `propertyValue` decimal(10,2) NOT NULL,
  `userId` int(11) NOT NULL,
  `branchId` int(11) NOT NULL,
  `initialMaintenanceDetailDate` date NOT NULL,
  `del` int(11) NOT NULL COMMENT '0 for not del -1 for del',
  PRIMARY KEY (`initialMaintenanceDetailId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `m_initialmaintenancedetail`
--


--
-- Table structure for table `m_insurance`
--

CREATE TABLE `m_insurance` (
  `insuranceId` int(11) NOT NULL AUTO_INCREMENT,
  `ourSerial` varchar(255) NOT NULL,
  `stageIdBefore` int(11) NOT NULL,
  `currentStage` int(11) NOT NULL,
  `shipNameGo` int(11) NOT NULL,
  `shipCompanyGo` int(11) NOT NULL,
  `shipPersonalGo` int(11) NOT NULL,
  `shipCostGo` decimal(10,2) NOT NULL,
  `shipNameReturned` int(11) NOT NULL,
  `shipCompanyReturned` int(11) NOT NULL,
  `shipPersonalReturned` int(11) NOT NULL,
  `shipCostReturned` decimal(10,2) NOT NULL,
  `type` int(11) NOT NULL COMMENT '0 for replace - 1 for discount - 2 for  maintenance-3 for reject- 4 in preparing Stage "Donnot have type yet"',
  `oldSN` varchar(255) NOT NULL,
  `newSN` varchar(255) NOT NULL,
  `insuranceCost` decimal(10,2) NOT NULL,
  `kindOfInsurance` int(11) NOT NULL COMMENT '0 for new - 1 for continue',
  `insuranceDate` date NOT NULL,
  `insuranceDiscount` decimal(10,2) NOT NULL,
  `userId` int(11) NOT NULL,
  `branchId` int(11) NOT NULL,
  `comment` text NOT NULL,
  `del` int(11) NOT NULL COMMENT '0 for not del - 1 for del',
  `returned` int(11) NOT NULL COMMENT '0 fornot returned - 1 for returned',
  PRIMARY KEY (`insuranceId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `m_insurance`
--


--
-- Table structure for table `m_maintenancereceipt`
--

CREATE TABLE `m_maintenancereceipt` (
  `maintenanceReceiptId` int(11) NOT NULL AUTO_INCREMENT,
  `receiptId` int(11) NOT NULL,
  `totalCost` decimal(10,2) NOT NULL,
  `type` int(11) NOT NULL COMMENT '0 for finished-1 for remain',
  `userId` int(11) NOT NULL,
  `branchId` int(11) NOT NULL,
  `maintenanceReceiptDAte` date NOT NULL,
  `del` int(11) NOT NULL COMMENT '0 for not del - 1 for del',
  PRIMARY KEY (`maintenanceReceiptId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `m_maintenancereceipt`
--


--
-- Table structure for table `m_maintenancereceiptfinish`
--

CREATE TABLE `m_maintenancereceiptfinish` (
  `maintenanceReceiptFinishId` int(11) NOT NULL AUTO_INCREMENT,
  `maintenanceReceiptId` int(11) NOT NULL,
  `finishingPayedId` int(11) NOT NULL,
  `payed` decimal(10,2) NOT NULL,
  `remain` decimal(10,2) NOT NULL,
  `maintenanceReceiptFinishDate` date NOT NULL,
  `userId` int(11) NOT NULL,
  `branchId` int(11) NOT NULL,
  `del` int(11) NOT NULL COMMENT '0 for not del - 1 for del',
  PRIMARY KEY (`maintenanceReceiptFinishId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `m_maintenancereceiptfinish`
--


--
-- Table structure for table `m_producthistory`
--

CREATE TABLE `m_producthistory` (
  `productHistoryId` int(11) NOT NULL AUTO_INCREMENT,
  `ourSerial` varchar(255) NOT NULL,
  `stageFrom` int(11) NOT NULL,
  `stageTo` int(11) NOT NULL,
  `cost` decimal(10,2) NOT NULL,
  `comment` text NOT NULL,
  `status` int(11) NOT NULL COMMENT '0 for accepted- 1 for rejected',
  `userId` int(11) NOT NULL,
  `productHistoryDate` datetime NOT NULL,
  `branchId` int(11) NOT NULL,
  `del` int(11) NOT NULL COMMENT '0 for not del -1 for del',
  PRIMARY KEY (`productHistoryId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `m_producthistory`
--


--
-- Table structure for table `m_stage`
--

CREATE TABLE `m_stage` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(255) NOT NULL,
  `descreption` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `m_stage`
--


--
-- Table structure for table `m_stageproperity`
--

CREATE TABLE `m_stageproperity` (
  `stageProperityId` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `initialValue` decimal(10,2) NOT NULL,
  `stageId` int(11) NOT NULL,
  `userId` int(11) NOT NULL,
  `branchId` int(11) NOT NULL,
  `stageProperityDate` date NOT NULL,
  `del` int(11) NOT NULL COMMENT '0 for not del -1 for del',
  PRIMARY KEY (`stageProperityId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `m_stageproperity`
--


--
-- Table structure for table `maccontrol`
--

CREATE TABLE `maccontrol` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mac` varchar(17) NOT NULL,
  `deviceType` varchar(10) NOT NULL COMMENT '0 desktop - 1 mobile',
  `allowRemoteAccess` tinyint(4) NOT NULL COMMENT '0 allowd,1 forbidden',
  `userid` int(11) NOT NULL,
  `del` tinyint(4) NOT NULL,
  `sysdate` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `maccontrol`
--


--
-- Table structure for table `maintenancecases`
--

CREATE TABLE `maintenancecases` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `casename` varchar(191) DEFAULT NULL,
  `maintenancecasedate` datetime DEFAULT NULL,
  `conditions` int(11) unsigned DEFAULT NULL,
  `userid` double DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `maintenancecases`
--

INSERT INTO `maintenancecases` VALUES
(1,'الطلبات المستلمة','2022-02-09 12:42:35',0,-1),
(2,'تم الشحن','2022-02-09 12:43:11',0,-1),
(3,'تم رجوعها','2022-02-09 12:43:35',0,-1),
(4,'جاهز للتسليم','2022-02-09 15:49:09',0,-1);

--
-- Table structure for table `maintenancecenters`
--

CREATE TABLE `maintenancecenters` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `maintenancecenterdate` datetime DEFAULT NULL,
  `conditions` int(11) unsigned DEFAULT NULL,
  `userid` double DEFAULT NULL,
  `centername` varchar(191) DEFAULT NULL,
  `centerphone` varchar(191) DEFAULT NULL,
  `centermobile` varchar(191) DEFAULT NULL,
  `administrator` varchar(191) DEFAULT NULL,
  `administratorphone` varchar(191) DEFAULT NULL,
  `administratordebt` varchar(191) DEFAULT NULL,
  `centeraddress` varchar(191) DEFAULT NULL,
  `euserid` double DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `maintenancecenters`
--


--
-- Table structure for table `maintenancecomments`
--

CREATE TABLE `maintenancecomments` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `comments` varchar(191) DEFAULT NULL,
  `maintenanceid` int(11) unsigned DEFAULT NULL,
  `maintenancecommentdate` datetime DEFAULT NULL,
  `conditions` int(11) unsigned DEFAULT NULL,
  `userid` double DEFAULT NULL,
  `euserid` double DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `maintenancecomments`
--


--
-- Table structure for table `maintenancecompanies`
--

CREATE TABLE `maintenancecompanies` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `maintenancecompaniedate` datetime DEFAULT NULL,
  `conditions` int(11) unsigned DEFAULT NULL,
  `userid` double DEFAULT NULL,
  `companyname` varchar(191) DEFAULT NULL,
  `companyphone` varchar(191) DEFAULT NULL,
  `companyaddress` varchar(191) DEFAULT NULL,
  `euserid` double DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `maintenancecompanies`
--


--
-- Table structure for table `maintenancepolicys`
--

CREATE TABLE `maintenancepolicys` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `maintenancepolicydate` datetime DEFAULT NULL,
  `conditions` int(11) unsigned DEFAULT NULL,
  `userid` double DEFAULT NULL,
  `policydate` date DEFAULT NULL,
  `policynumber` varchar(191) DEFAULT NULL,
  `supplierid` int(11) unsigned DEFAULT NULL,
  `maintenancecompanieid` int(11) unsigned DEFAULT NULL,
  `policystatement` varchar(191) DEFAULT NULL,
  `shippingvalue` varchar(191) DEFAULT NULL,
  `euserid` double DEFAULT NULL,
  `sendorreceipt` int(11) NOT NULL DEFAULT 1,
  `bmaintenancepolicydate` datetime DEFAULT NULL,
  `buserid` double DEFAULT NULL,
  `maintenancaseid` int(11) unsigned DEFAULT NULL,
  `bpolicydate` date DEFAULT NULL,
  `bpolicynumber` int(11) unsigned DEFAULT NULL,
  `bpolicystatement` varchar(191) DEFAULT NULL,
  `bshippingvalue` int(11) unsigned DEFAULT NULL,
  `bmaintenancecompanieid` int(11) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `maintenancepolicys`
--


--
-- Table structure for table `maintenanceprocedures`
--

CREATE TABLE `maintenanceprocedures` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `maintenanceproceduredate` datetime DEFAULT NULL,
  `conditions` int(11) unsigned DEFAULT NULL,
  `userid` double DEFAULT NULL,
  `procedurename` varchar(191) DEFAULT NULL,
  `euserid` double DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `maintenanceprocedures`
--


--
-- Table structure for table `maintenances`
--

CREATE TABLE `maintenances` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `maintenancedate` datetime DEFAULT NULL,
  `conditions` int(11) unsigned DEFAULT NULL,
  `userid` double DEFAULT NULL,
  `clientid` int(11) unsigned DEFAULT NULL,
  `branchid` varchar(191) DEFAULT NULL,
  `supplierid` int(11) unsigned DEFAULT NULL,
  `productid` varchar(191) DEFAULT NULL,
  `maintenancecenterid` varchar(191) DEFAULT NULL,
  `maintenancecaseid` int(11) unsigned DEFAULT NULL,
  `receiptnumber` varchar(191) DEFAULT NULL,
  `dateatime` datetime DEFAULT NULL,
  `quantity` varchar(191) DEFAULT NULL,
  `defect` varchar(191) DEFAULT NULL,
  `accessories` varchar(191) DEFAULT NULL,
  `notes` varchar(191) DEFAULT NULL,
  `estimatedcost` varchar(191) DEFAULT NULL,
  `prepaid` varchar(191) DEFAULT NULL,
  `datepurchase` date DEFAULT NULL,
  `invoicenumber` varchar(191) DEFAULT NULL,
  `invoicedate` date DEFAULT NULL,
  `maintorguar` int(11) unsigned DEFAULT NULL,
  `euserid` double DEFAULT NULL,
  `maintenancepolicyid` int(11) unsigned DEFAULT NULL,
  `shipprice` varchar(191) DEFAULT NULL,
  `shipcharge` int(11) unsigned DEFAULT NULL,
  `shipnumber` varchar(191) DEFAULT NULL,
  `bshipprice` varchar(191) DEFAULT NULL,
  `bshipcharge` int(11) unsigned DEFAULT NULL,
  `factoringnumber` varchar(191) DEFAULT NULL,
  `maintenanceprice` varchar(191) DEFAULT NULL,
  `maintenancecost` varchar(191) DEFAULT NULL,
  `statementprocedure` varchar(191) DEFAULT NULL,
  `maintenanceprocedureid` varchar(191) DEFAULT NULL,
  `totalcost` double DEFAULT NULL,
  `requiredcustomer` double DEFAULT NULL,
  `repayment` varchar(191) DEFAULT NULL,
  `clipnumber` varchar(191) DEFAULT NULL,
  `deliverydate` date DEFAULT NULL,
  `paidlater` int(11) unsigned DEFAULT NULL,
  `paidall` int(11) unsigned DEFAULT NULL,
  `residual` int(11) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `maintenances`
--


--
-- Table structure for table `manufacuresetting`
--

CREATE TABLE `manufacuresetting` (
  `manufacuresettingid` int(11) NOT NULL AUTO_INCREMENT,
  `ordername` varchar(255) NOT NULL,
  `excahangeorder` int(11) NOT NULL DEFAULT 1 COMMENT '1->no-0->yes',
  PRIMARY KEY (`manufacuresettingid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `manufacuresetting`
--


--
-- Table structure for table `menuurl`
--

CREATE TABLE `menuurl` (
  `menuurlid` int(11) NOT NULL AUTO_INCREMENT,
  `orderno` int(11) DEFAULT 0,
  `urltitle` varchar(255) NOT NULL,
  `menuurl` varchar(255) NOT NULL,
  `urlimage` varchar(255) NOT NULL,
  `usergroupid` text NOT NULL,
  PRIMARY KEY (`menuurlid`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `menuurl`
--

INSERT INTO `menuurl` VALUES
(1,0,'Ùاتورة مبيعات','sellbillController.php?do=addsellBill&billnameid=3','1dc95e15daed93ba0013692122c4a11e.png','-1,3,1,2'),
(2,0,'Ùاتورة مردود بيع','sellbillController.php?do=addsellBill&billnameid=5','6448eefd3d761edfe44f104d192e85e5.png','-1,3,1,2'),
(3,0,'Ùاتورة شراء','buyBillController.php?do=bill&billnameid=1','3da5386c0664ed2482203904d99155c1.png','-1,1'),
(4,0,'Ùاتورة مردود شراء ','buyBillController.php?do=bill&billnameid=6','5e7a9c03aeeec1f9457edaa541496c6b.png','-1,1'),
(5,0,'اضاÙة مصروÙ','expensesController.php','6ae0747f490595e85cdb8f38a2092d68.png','-1,1'),
(6,0,'تحصيل','clientPayedDeptController.php','8f3b40e9c125a34c4cc6593ba0353088.png','-1,1'),
(7,0,'دÙعات','supplierPayedDeptController.php','3e436f1b19c4a7bab645cff396ca862b.png','-1,1'),
(8,0,'يومية الخزنة','savedailyController.php','35978bf85a0a0f4d78c080a0230487f2.png','-1,1,3'),
(9,0,'تقرير عميل','clientReportsController.php','3110b45b064b9c2d33c6fca31939341b.png','-1,1'),
(10,0,'تقرير مورد','supplierReportsController.php?do=oneSupplier','a32f65957454b1dcbe3a2d2ea768f72e.png','-1,1'),
(11,0,'تقرير عميل مÙصل ','clientReportsController.php?do=all','c3505ea9bc56e05b9cbefee04f668939.png','-1,4'),
(12,0,'اضاÙه تصنيÙ منتجات','productCatController.php','6d3a35d5ca278d6c1bd64c82045df37b.png','-1,1'),
(13,0,'اضاÙه منتج','productController.php','f87586d68893c9807c6e721c375f9b34.png','-1,1'),
(14,0,'اضاÙه عميل','clientController.php','29db8f60337801f76c8b131708a2f7b4.jpg','-1,1'),
(15,0,'اضاÙه مورد','supplierController.php','62f901bd2977d6497d192b4e4e9b92f5.png','-1,1'),
(16,0,'تقرير رصيد مخازن','storedetailController.php','ac6ccd20076ee138a00468adbc8ac597.png','-1,1'),
(17,0,'تقرير مبيعات','salesreport.php','ed9449e5f58a2c96fabbd94e585d7907.png','-1,1'),
(18,0,'تقرير ارباح مدة','profitreportController.php','f5ce79fae290873b623f4356ffcff2c3.png','-1,1'),
(19,0,'طباعه باركود','productController.php?do=showbarcode','7423d42e31b50b2e2ee82dfdfaabeb59.png','-1,1'),
(20,0,'تقرير حركه منتج بمخزن','storereportController.php','929e853810ff8dfb5d707eedf9ea83bf.png','-1,1'),
(21,0,'تقرير قائمه اسعار','storedetailpriceController.php','7dd3a756775ecca34422dd11d1b2cb1d.png','-1,4'),
(22,0,'تقرير مديونيه عملاء مجمع','clientdebt.php','fd78568acf08beef9fc4812e35d5b897.png','-1,1'),
(23,0,'مشتريات مورد','buyreport.php','df107a148aed0a06994b69f5c29f16d7.png','-1,1'),
(24,24,'المنتجات','productController.php?do=show','5f42ed53379f74a88cb0b0d6e818d537.gif','-1,1'),
(25,25,'خصم او سحب','employeePersonalController.php','8b15dc902be05ada87c315d272178755.jpg','-1,4'),
(26,26,'قبض رواتب','salaryReportController.php?','30489f166694d56fc7371bae39fcbc91.jpg','-1,4'),
(27,27,'التحويل النقدي','transfermoneyController.php','4a270e01117a454c964f8377939dd76e.jpg','-1,1'),
(28,28,'العملاء','clientController.php?do=show','39cab61dc508da8fa9831e34ee4ba2db.png','-1,1'),
(29,29,'Ùواتير المبيعات للتعديل','sellbillController.php?do=show','d4b5efa18fbf59dedcf68c7418174984.png','-1,1'),
(30,30,'ايصالات السداد','clientPayedDeptController.php?do=show','863bacee994aa4cdb615ff168f5d3ede.png','-1,1');

--
-- Table structure for table `movementmanage`
--

CREATE TABLE `movementmanage` (
  `movementmanageid` int(11) NOT NULL AUTO_INCREMENT,
  `operationname` varchar(256) NOT NULL,
  `movementmanagedate` datetime NOT NULL,
  `userid` int(11) NOT NULL,
  `currentDo` varchar(255) NOT NULL,
  `ip` varchar(35) NOT NULL,
  `mac` varchar(35) NOT NULL,
  `deviceType` varchar(10) NOT NULL,
  `completeURL` text NOT NULL,
  PRIMARY KEY (`movementmanageid`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `movementmanage`
--

INSERT INTO `movementmanage` VALUES
(1,'index.php','2026-02-03 23:53:43',1,'','196.219.186.246','','DESKTOP','https://demo77.elbaset.com/controllers/index.php'),
(2,'playStationCardController.php','2026-02-03 23:53:45',1,'handleExpiredCards','151.80.18.217','','DESKTOP','https://demo77.elbaset.com/controllers/playStationCardController.php?do=handleExpiredCards'),
(3,'index.php','2026-02-03 23:58:53',1,'','197.196.250.87','','DESKTOP','https://demo77.elbaset.com/controllers/index.php'),
(4,'playStationCardController.php','2026-02-03 23:58:53',1,'handleExpiredCards','151.80.18.217','','DESKTOP','https://demo77.elbaset.com/controllers/playStationCardController.php?do=handleExpiredCards'),
(5,'sellbillController.php','2026-02-03 23:58:59',1,'addsellBill','197.196.250.87','','DESKTOP','https://demo77.elbaset.com/controllers/sellbillController.php?do=addsellBill&billnameid=3'),
(6,'index.php','2026-02-04 09:08:14',1,'','156.197.82.55','','MOBILE','https://demo77.elbaset.com/controllers/index.php'),
(7,'playStationCardController.php','2026-02-04 09:08:14',1,'handleExpiredCards','151.80.18.217','','DESKTOP','https://demo77.elbaset.com/controllers/playStationCardController.php?do=handleExpiredCards'),
(8,'userController.php','2026-02-04 09:08:56',1,'show','156.197.82.55','','MOBILE','https://demo77.elbaset.com/controllers/userController.php?do=show'),
(9,'userController.php','2026-02-04 09:08:59',1,'','156.197.82.55','','MOBILE','https://demo77.elbaset.com/controllers/userController.php'),
(10,'index.php','2026-02-04 12:14:47',1,'','156.164.233.13','','MOBILE','https://demo77.elbaset.com/controllers/index.php'),
(11,'playStationCardController.php','2026-02-04 12:14:50',1,'handleExpiredCards','151.80.18.217','','DESKTOP','https://demo77.elbaset.com/controllers/playStationCardController.php?do=handleExpiredCards');

--
-- Table structure for table `movementmanagedeleted`
--

CREATE TABLE `movementmanagedeleted` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `operationname` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `movementmanagedate` datetime NOT NULL,
  `userid` int(11) NOT NULL,
  `currentDo` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `ip` varchar(35) NOT NULL,
  `mac` varchar(35) NOT NULL,
  `deviceType` varchar(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `movementmanagedeleted`
--


--
-- Table structure for table `newdbbackup`
--

CREATE TABLE `newdbbackup` (
  `backupid` int(11) NOT NULL AUTO_INCREMENT,
  `backupname` varchar(255) NOT NULL,
  `backupdate` datetime NOT NULL,
  PRIMARY KEY (`backupid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `newdbbackup`
--


--
-- Table structure for table `newdbname`
--

CREATE TABLE `newdbname` (
  `newdbnameid` int(11) NOT NULL AUTO_INCREMENT,
  `dbname` varchar(255) NOT NULL,
  PRIMARY KEY (`newdbnameid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `newdbname`
--


--
-- Table structure for table `notics`
--

CREATE TABLE `notics` (
  `noticesid` int(11) NOT NULL AUTO_INCREMENT,
  `productno` int(11) NOT NULL DEFAULT 0,
  `productnotsellno` int(11) NOT NULL DEFAULT 0,
  `kempilano` int(11) NOT NULL DEFAULT 0,
  `clientcheckno` int(11) NOT NULL DEFAULT 0,
  `suppliercheckno` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`noticesid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `notics`
--


--
-- Table structure for table `offerpricebill`
--

CREATE TABLE `offerpricebill` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `offerpricebillid` int(11) NOT NULL,
  `productid` int(11) NOT NULL,
  `productname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sellprice` decimal(10,2) NOT NULL,
  `prodescrption` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `pronumber` int(11) NOT NULL,
  `totalprice` decimal(10,2) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `offerpricebill`
--


--
-- Table structure for table `offerpricebillprop`
--

CREATE TABLE `offerpricebillprop` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `clientid` int(11) NOT NULL,
  `clientname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `totalprice` double NOT NULL,
  `realtotalprice` double NOT NULL,
  `sysdate` date NOT NULL,
  `serialno` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `offerpricebillprop`
--


--
-- Table structure for table `offerpricecondition`
--

CREATE TABLE `offerpricecondition` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `introduction` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `detail` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `offerpricecondition`
--


--
-- Table structure for table `onlinecat`
--

CREATE TABLE `onlinecat` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(256) NOT NULL,
  `name_en` varchar(255) DEFAULT NULL,
  `sysdate` date NOT NULL,
  `parentid` int(11) NOT NULL DEFAULT 0,
  `user_id` int(11) NOT NULL,
  `conditions` int(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `onlinecat`
--


--
-- Table structure for table `onlineproductcat`
--

CREATE TABLE `onlineproductcat` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `parentid` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `titleEn` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `descriptionEn` text NOT NULL,
  `image` varchar(255) NOT NULL,
  `sysDate` datetime NOT NULL,
  `userid` int(11) NOT NULL,
  `isdel` tinyint(4) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `onlineproductcat`
--


--
-- Table structure for table `onlinestoresetting`
--

CREATE TABLE `onlinestoresetting` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `url` varchar(255) NOT NULL,
  `availableStores` varchar(255) NOT NULL,
  `onlinestoreid` int(11) NOT NULL DEFAULT 2,
  `onlineclientareaid` int(11) NOT NULL DEFAULT 0,
  `updatetype` tinyint(4) NOT NULL DEFAULT 0,
  `catprohour` decimal(10,2) NOT NULL DEFAULT 0.00,
  `catprominute` decimal(10,2) NOT NULL DEFAULT 0.00,
  `proquantityhour` decimal(10,2) NOT NULL DEFAULT 0.00,
  `proquantityminute` decimal(10,2) NOT NULL DEFAULT 0.00,
  `clientshour` decimal(10,2) NOT NULL DEFAULT 0.00,
  `clientsminute` decimal(10,2) NOT NULL DEFAULT 0.00,
  `ordershour` decimal(10,2) NOT NULL,
  `ordersminute` decimal(10,2) NOT NULL,
  `clientdebtchangeStartId` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `onlinestoresetting`
--


--
-- Table structure for table `onlinetempcategory`
--

CREATE TABLE `onlinetempcategory` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `catid` int(11) NOT NULL,
  `edited` tinyint(4) NOT NULL COMMENT '0 not edited "this value is therre online", 1 edited , 2 del',
  `sysdate` datetime NOT NULL,
  `userid` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `catid` (`catid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `onlinetempcategory`
--


--
-- Table structure for table `onlinetemporder`
--

CREATE TABLE `onlinetemporder` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `onlineorderid` int(11) NOT NULL,
  `customerid` int(11) NOT NULL,
  `ordertotal` double NOT NULL,
  `shippingcost` varchar(191) NOT NULL,
  `fulltotal` varchar(191) NOT NULL,
  `paytype` varchar(191) NOT NULL,
  `createdatetime` datetime NOT NULL,
  `orderstatus` tinyint(4) NOT NULL,
  `tax_value` varchar(191) NOT NULL,
  `userid` int(11) NOT NULL COMMENT 'userid online',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `onlinetemporder`
--


--
-- Table structure for table `onlinetemporderclient`
--

CREATE TABLE `onlinetemporderclient` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `erpid` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `orderid` int(11) NOT NULL,
  `clientname` varchar(256) NOT NULL,
  `clientcode` varchar(255) NOT NULL,
  `clientmobile` varchar(20) NOT NULL,
  `clientdebt` decimal(10,2) NOT NULL,
  `clientaddress` varchar(256) NOT NULL,
  `clientareaid` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `onlinetemporderclient`
--


--
-- Table structure for table `onlinetemporderproduct`
--

CREATE TABLE `onlinetemporderproduct` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `orderid` int(11) NOT NULL,
  `productid` int(11) NOT NULL,
  `sizeid` varchar(255) NOT NULL,
  `price` double NOT NULL,
  `quantity` varchar(191) NOT NULL,
  `shippingcost` double NOT NULL,
  `total` double NOT NULL,
  `orderstatus` int(11) NOT NULL,
  `shippingtype` varchar(191) NOT NULL,
  `discountprice` double NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `onlinetemporderproduct`
--


--
-- Table structure for table `onlinetempproduct`
--

CREATE TABLE `onlinetempproduct` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `productid` int(11) NOT NULL,
  `edited` tinyint(4) NOT NULL COMMENT '0 not edited "this value is therre online", 1 edited , 2 del',
  `sysdate` datetime NOT NULL,
  `userid` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `productid` (`productid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `onlinetempproduct`
--


--
-- Table structure for table `onlinetempstoredetail`
--

CREATE TABLE `onlinetempstoredetail` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `storeid` int(11) NOT NULL,
  `productid` int(11) NOT NULL,
  `sizeid` int(11) NOT NULL,
  `colorid` int(11) NOT NULL,
  `quantity` decimal(10,2) NOT NULL,
  `edited` tinyint(4) NOT NULL COMMENT '0 not edited "this value is therre online", 1 edited , 2 del',
  `sysdate` datetime NOT NULL,
  `userid` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `uniquecombination` (`storeid`,`productid`,`sizeid`,`colorid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `onlinetempstoredetail`
--


--
-- Table structure for table `onlinetempstorereport`
--

CREATE TABLE `onlinetempstorereport` (
  `storereportid` int(11) NOT NULL AUTO_INCREMENT,
  `productid` int(11) NOT NULL,
  `storeid` int(11) NOT NULL,
  `productquantity` decimal(10,2) NOT NULL,
  `storereporttype` int(11) NOT NULL COMMENT '0 => plus- 1 => minus',
  `storereportmodelid` int(11) NOT NULL,
  `processname` varchar(256) NOT NULL,
  `tablename` varchar(256) NOT NULL,
  `productbefore` decimal(10,2) NOT NULL,
  `productafter` decimal(10,2) NOT NULL,
  `userid` int(11) NOT NULL,
  `storereportdate` date NOT NULL,
  PRIMARY KEY (`storereportid`),
  KEY `productid` (`productid`,`storeid`),
  KEY `storeid` (`storeid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `onlinetempstorereport`
--


--
-- Table structure for table `otherrequest`
--

CREATE TABLE `otherrequest` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `requestTo` int(11) NOT NULL COMMENT '0 branch - 1 user group - 2 user',
  `requestToId` int(11) NOT NULL,
  `requestTitle` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `requestDate` date NOT NULL,
  `userId` int(11) NOT NULL,
  `branchId` int(11) NOT NULL COMMENT 'branch who made the request',
  `seen` int(11) NOT NULL DEFAULT 0,
  `deleted` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `otherrequest`
--


--
-- Table structure for table `otherstoremovement`
--

CREATE TABLE `otherstoremovement` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `oprationnumber` varchar(255) NOT NULL,
  `deloperation` int(11) NOT NULL,
  `del` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `comment` text NOT NULL,
  `oprationdata` date NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `otherstoremovement`
--


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

CREATE TABLE `pages` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(255) NOT NULL,
  `titleEn` varchar(255) NOT NULL,
  `contentOrExternalLink` tinyint(4) NOT NULL,
  `externalLink` varchar(500) NOT NULL COMMENT '0 content',
  `openTarget` tinyint(4) NOT NULL COMMENT '0 newtab, 1 same tab',
  `content` text NOT NULL,
  `contentEn` text NOT NULL,
  `isActive` tinyint(4) NOT NULL,
  `image` varchar(255) NOT NULL,
  `sysDate` datetime NOT NULL,
  `userid` int(11) NOT NULL,
  `isdel` tinyint(4) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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


--
-- Table structure for table `partner`
--

CREATE TABLE `partner` (
  `partnerid` int(11) NOT NULL AUTO_INCREMENT,
  `partnername` varchar(256) NOT NULL,
  `partnerdate` date NOT NULL,
  `partnerpercentage` decimal(10,2) NOT NULL,
  `partnermoney` decimal(10,2) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `comment` text NOT NULL,
  `userid` int(11) NOT NULL,
  `dailyentryid` int(11) NOT NULL,
  `treeId` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`partnerid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `partner`
--


--
-- Table structure for table `partnertransferbetween`
--

CREATE TABLE `partnertransferbetween` (
  `partnertransferbetweenid` int(11) NOT NULL AUTO_INCREMENT,
  `partneridfrom` int(11) NOT NULL,
  `partneridto` int(11) NOT NULL,
  `partnervalue` decimal(10,2) NOT NULL,
  `comment` text NOT NULL,
  `partnerdate` date NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `partnerfrombefore` decimal(10,2) NOT NULL DEFAULT 0.00,
  `partnerfromafter` decimal(10,2) NOT NULL DEFAULT 0.00,
  `partnertobefore` decimal(10,2) NOT NULL DEFAULT 0.00,
  `partnertoafter` decimal(10,2) NOT NULL DEFAULT 0.00,
  `dailyentryid` int(11) NOT NULL,
  PRIMARY KEY (`partnertransferbetweenid`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `partnertransferbetween`
--


--
-- Table structure for table `partnerwithdrawal`
--

CREATE TABLE `partnerwithdrawal` (
  `partnerwithdrawalid` int(11) NOT NULL AUTO_INCREMENT,
  `partnerid` int(11) NOT NULL,
  `partnerwithdrawalvalue` decimal(10,2) NOT NULL,
  `comment` text NOT NULL,
  `partnerwithdrawaldate` date NOT NULL,
  `userid` int(11) NOT NULL,
  `saveid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `partenrwithdrawaltype` int(11) NOT NULL COMMENT '0 ',
  `dailyentryid` int(11) NOT NULL,
  `bankid` int(11) NOT NULL,
  `bankaccountid` int(11) NOT NULL,
  `checknum` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `partnerbefore` decimal(10,2) NOT NULL DEFAULT 0.00,
  `partnerafter` decimal(10,2) NOT NULL DEFAULT 0.00,
  PRIMARY KEY (`partnerwithdrawalid`),
  KEY `partnerid` (`partnerid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `partnerwithdrawal`
--


--
-- Table structure for table `paymentnetworks`
--

CREATE TABLE `paymentnetworks` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `discountpercent` decimal(10,2) DEFAULT 0.00,
  `deleted` int(11) NOT NULL DEFAULT 0,
  `nameen` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `paymentnetworks`
--


--
-- Table structure for table `playstationcard`
--

CREATE TABLE `playstationcard` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `packageVal` float NOT NULL,
  `packagePrice` float NOT NULL,
  `packageDays` int(11) NOT NULL,
  `file` varchar(255) NOT NULL,
  `del` tinyint(4) NOT NULL,
  `userid` int(11) NOT NULL,
  `sysdate` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `playstationcard`
--


--
-- Table structure for table `playstationclientcard`
--

CREATE TABLE `playstationclientcard` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `cardid` int(11) NOT NULL,
  `clientid` int(11) NOT NULL,
  `buyDate` datetime NOT NULL,
  `packVal` float NOT NULL,
  `packPrice` float NOT NULL,
  `packDays` int(11) NOT NULL,
  `packValConsumed` float NOT NULL,
  `cardEndDate` datetime NOT NULL,
  `cardStatus` tinyint(4) NOT NULL COMMENT '0 active,1 totaly consumed , 2 expired',
  `userid` int(11) NOT NULL,
  `del` tinyint(4) NOT NULL,
  `sysDate` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `playstationclientcard`
--


--
-- Table structure for table `playstationclientcardpayhistory`
--

CREATE TABLE `playstationclientcardpayhistory` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `clientid` int(11) NOT NULL,
  `cardid` int(11) NOT NULL,
  `cardValBefore` float NOT NULL,
  `payAmount` float NOT NULL,
  `changeType` tinyint(4) NOT NULL COMMENT '0 increase , 1decrease',
  `cardValAfter` float NOT NULL,
  `processname` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  `modelid` int(11) NOT NULL,
  `tablename` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  `comment` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  `conditions` tinyint(4) NOT NULL,
  `userid` int(11) NOT NULL,
  `sysDate` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `playstationclientcardpayhistory`
--


--
-- Table structure for table `policy`
--

CREATE TABLE `policy` (
  `policyId` int(11) NOT NULL AUTO_INCREMENT,
  `policyName` varchar(255) NOT NULL,
  `policyDate` date NOT NULL,
  `policyNum` int(11) NOT NULL,
  `policyCost` decimal(10,2) NOT NULL,
  `policyType` int(11) NOT NULL COMMENT '1 => go- 2 =>return',
  `companyId` int(11) NOT NULL,
  `SenderName` varchar(255) NOT NULL,
  `invoicenumber` varchar(255) NOT NULL,
  `tempdele` int(11) NOT NULL,
  `saveId` int(11) NOT NULL,
  `senderType` int(11) NOT NULL COMMENT '1 => client- 2 =>supplier',
  `affectSave` tinyint(4) DEFAULT 0,
  `senderId` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`policyId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `policy`
--


--
-- Table structure for table `premium`
--

CREATE TABLE `premium` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `value` int(11) NOT NULL,
  `premiumclient_id` int(11) NOT NULL,
  `payed` int(11) NOT NULL DEFAULT 0,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `rest` int(11) NOT NULL DEFAULT 0,
  `payment_date` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `premium`
--


--
-- Table structure for table `premiumautomatic`
--

CREATE TABLE `premiumautomatic` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `Totalinstallment` decimal(10,2) NOT NULL,
  `presenter_dir` decimal(10,2) NOT NULL,
  `presenter_per` decimal(10,2) NOT NULL,
  `date` date NOT NULL,
  `remain_amount` decimal(10,2) NOT NULL,
  `installment_nos` int(11) NOT NULL,
  `installment_months` int(11) NOT NULL,
  `installment_days` int(11) NOT NULL,
  `premiumclient_id` int(11) NOT NULL,
  `client_id` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `premiumautomatic`
--


--
-- Table structure for table `premiumclient`
--

CREATE TABLE `premiumclient` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `client_id` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `date` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `premiumclient`
--


--
-- Table structure for table `premiuminstallments`
--

CREATE TABLE `premiuminstallments` (
  `id_installment` int(11) NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `value` int(11) NOT NULL,
  `premiumauo_id` int(11) NOT NULL,
  `payed` int(11) NOT NULL DEFAULT 0,
  `conditions` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id_installment`)
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `premiuminstallments`
--


--
-- Table structure for table `product`
--

CREATE TABLE `product` (
  `productId` int(11) NOT NULL AUTO_INCREMENT,
  `inMenu` tinyint(4) DEFAULT 0 COMMENT '0 show in resturant menu-1 hide it',
  `productName` varchar(256) NOT NULL DEFAULT '',
  `productDescription` text DEFAULT NULL,
  `productCatId` int(11) NOT NULL,
  `productBuyPrice` decimal(10,2) NOT NULL,
  `productSellAllPrice` decimal(10,2) NOT NULL,
  `productSellUnitPrice` decimal(10,2) NOT NULL,
  `productSellHalfPrice` decimal(10,2) NOT NULL,
  `productDate` date NOT NULL,
  `conditions` int(1) NOT NULL DEFAULT 0,
  `userId` int(11) NOT NULL,
  `limitamount` int(11) NOT NULL DEFAULT 0,
  `parcode` varchar(256) DEFAULT NULL,
  `type` int(11) NOT NULL DEFAULT 0 COMMENT '1 for Manufacturing - 0 for not Manufacturing',
  `sellingtype` int(11) DEFAULT 0 COMMENT '1 for FCFO  2 for  LCFO  3 for expirdata ',
  `expireDate` int(11) DEFAULT NULL,
  `dailyentryId` int(11) NOT NULL,
  `isService` int(11) NOT NULL DEFAULT 0 COMMENT '0 no - 1 yes',
  `isOptic` int(11) NOT NULL DEFAULT 0 COMMENT '0 not optic -1 without size and color-2 with size and color',
  `lastbuyprice` decimal(10,2) DEFAULT NULL,
  `lastbuyprice_withDiscount` decimal(10,2) DEFAULT NULL,
  `meanbuyprice` decimal(10,2) DEFAULT NULL,
  `meanbuyprice_withDiscount` decimal(10,2) DEFAULT NULL,
  `productbuypricereal` decimal(10,2) DEFAULT 0.00,
  `buypricereal_precentage` decimal(10,2) DEFAULT 0.00,
  `buytotal_precentage` decimal(10,2) DEFAULT 0.00,
  `buyhalf_precentage` decimal(10,2) DEFAULT 0.00,
  `buypart_precentage` decimal(10,2) DEFAULT 0.00,
  `logo` varchar(255) DEFAULT NULL,
  `obygyDetectionId` int(11) DEFAULT NULL,
  `hasSizeAndColor` tinyint(4) NOT NULL DEFAULT 0,
  `logo1` varchar(255) DEFAULT NULL,
  `logo2` varchar(255) DEFAULT NULL,
  `logo3` varchar(255) DEFAULT NULL,
  `logo4` varchar(255) DEFAULT NULL,
  `logo5` varchar(255) DEFAULT NULL,
  `logo6` varchar(255) DEFAULT NULL,
  `logo7` varchar(255) DEFAULT NULL,
  `overAllAveragePrice` decimal(10,2) NOT NULL DEFAULT 0.00,
  `online` text DEFAULT NULL,
  `reviewType` int(11) NOT NULL DEFAULT 0,
  `updatebyuser` int(11) NOT NULL DEFAULT 0,
  `proExcelid` int(11) NOT NULL DEFAULT 0 COMMENT 'used to link products to products from another erp like siam see in buybill',
  `proExcelParcode` varchar(12) NOT NULL COMMENT 'used to link products to products from another erp like siam see in buybill',
  `webApiId` int(11) NOT NULL DEFAULT 0,
  `runquery` varchar(256) NOT NULL DEFAULT '',
  `weightedDiscount` float NOT NULL DEFAULT 0,
  `sortby` int(11) NOT NULL DEFAULT 0,
  `obygyInvestigationId` int(11) DEFAULT NULL,
  `TypeOfBarcodeInTax` varchar(10) DEFAULT NULL,
  `barcodeInTax` varchar(150) DEFAULT NULL,
  `productNameE` varchar(256) DEFAULT NULL,
  `partNumber` int(11) NOT NULL DEFAULT 0,
  `vehicleType` int(11) NOT NULL DEFAULT 0,
  `company` int(11) NOT NULL DEFAULT 0,
  `weight` decimal(10,2) DEFAULT 0.00,
  `origin` varchar(150) DEFAULT NULL,
  `hscode` decimal(10,2) DEFAULT 0.00,
  `power` tinyint(4) DEFAULT 0,
  `ProductionDate` varchar(150) DEFAULT NULL,
  `expiry` int(11) NOT NULL DEFAULT 0,
  `procode` varchar(150) DEFAULT NULL,
  `lastbuyprice_withTax` decimal(10,2) DEFAULT NULL,
  `meanbuyprice_withTax` decimal(10,2) DEFAULT NULL,
  `treeId` int(11) NOT NULL DEFAULT 0 COMMENT 'for royal products that is services',
  `price4` float NOT NULL DEFAULT 0,
  `price5` float NOT NULL DEFAULT 0,
  `price6` float NOT NULL DEFAULT 0,
  `price7` float NOT NULL DEFAULT 0,
  `price8` float NOT NULL DEFAULT 0,
  `clientid` int(11) NOT NULL DEFAULT 0,
  `grantduration` int(11) NOT NULL DEFAULT 0,
  `onlinepro` tinyint(4) DEFAULT 0,
  `minappearonline` int(11) NOT NULL DEFAULT 0,
  `selladdpercent` float NOT NULL DEFAULT 0,
  `selldiscountpercent` float NOT NULL DEFAULT 0,
  `buydiscountpercent` float NOT NULL DEFAULT 0,
  `onlinecatid` int(11) NOT NULL DEFAULT 0,
  `sellpercenttype` int(11) NOT NULL DEFAULT 0,
  `searchfiltersid` varchar(150) DEFAULT NULL,
  `lastbuyprice_withDiscountAndTax` decimal(10,2) DEFAULT NULL,
  `itemsymbol` varchar(255) DEFAULT NULL,
  `price9` float NOT NULL DEFAULT 0,
  `price10` float NOT NULL DEFAULT 0,
  `price11` float NOT NULL DEFAULT 0,
  `price12` float NOT NULL DEFAULT 0,
  `price13` float NOT NULL DEFAULT 0,
  `productCatIdOnline` int(11) NOT NULL DEFAULT 0,
  `tagids` varchar(255) NOT NULL DEFAULT '0',
  PRIMARY KEY (`productId`),
  KEY `productCatId` (`productCatId`),
  KEY `userId` (`userId`),
  KEY `parcode` (`parcode`(255))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `product`
--


--
-- Table structure for table `productcat`
--

CREATE TABLE `productcat` (
  `productCatId` int(11) NOT NULL AUTO_INCREMENT,
  `productCatName` varchar(256) NOT NULL,
  `productCatDate` date NOT NULL,
  `productCatDescription` text DEFAULT NULL,
  `productCatParent` int(11) NOT NULL DEFAULT 0,
  `userId` int(11) NOT NULL,
  `conditions` int(1) NOT NULL DEFAULT 0,
  `selldiscount` decimal(10,2) NOT NULL DEFAULT 0.00,
  `buydiscount` decimal(10,2) NOT NULL DEFAULT 0.00,
  `discounttype` int(11) NOT NULL DEFAULT 0 COMMENT '0 =>direct- 1=>percent',
  `isOptic` int(11) NOT NULL DEFAULT 0 COMMENT '0 not optic -1 without size and color-2 with size and color',
  `buytotal` int(11) DEFAULT 0,
  `buyhalf` int(11) DEFAULT 0,
  `buypart` int(11) DEFAULT 0,
  `buypricereal` int(11) DEFAULT 0,
  `opticServices` varchar(200) NOT NULL,
  `logo` varchar(255) DEFAULT NULL,
  `inMenu` tinyint(4) DEFAULT 0 COMMENT '0 show in resturant menu-1 hide it',
  `stopNegativeSale` tinyint(4) NOT NULL DEFAULT 0,
  `catExcelid` int(11) NOT NULL COMMENT 'used to link products to products from another erp like siam see in buybill',
  `webApiId` int(11) NOT NULL DEFAULT 0,
  `obygyInvestigationCatId` int(11) DEFAULT 0,
  `price4` float NOT NULL DEFAULT 0,
  `price5` float NOT NULL DEFAULT 0,
  `price6` float NOT NULL DEFAULT 0,
  `price7` float NOT NULL DEFAULT 0,
  `price8` float NOT NULL DEFAULT 0,
  `price9` float NOT NULL DEFAULT 0,
  `price10` float NOT NULL DEFAULT 0,
  `price11` float NOT NULL DEFAULT 0,
  `price12` float NOT NULL DEFAULT 0,
  `price13` float NOT NULL DEFAULT 0,
  PRIMARY KEY (`productCatId`),
  KEY `productCatParent` (`productCatParent`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `productcat`
--


--
-- Table structure for table `productcatunit`
--

CREATE TABLE `productcatunit` (
  `productcatunitid` int(11) NOT NULL AUTO_INCREMENT,
  `unitid` int(11) NOT NULL,
  `productcatid` int(11) NOT NULL,
  `productnumber` decimal(10,2) NOT NULL,
  `productcatunitdate` date NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`productcatunitid`),
  KEY `productcatid` (`productcatid`),
  KEY `unitid` (`unitid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `productcatunit`
--


--
-- Table structure for table `productingredients`
--

CREATE TABLE `productingredients` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `productId` int(11) NOT NULL COMMENT 'from product tabe it is the product that has ingredients',
  `ingridientId` int(11) NOT NULL COMMENT 'from product table it is the ingridient',
  `unitId` int(11) NOT NULL,
  `quantity` decimal(10,2) NOT NULL,
  `userId` int(11) NOT NULL,
  `thedate` date NOT NULL,
  `conditions` tinyint(4) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `productingredients`
--


--
-- Table structure for table `productionexecution`
--

CREATE TABLE `productionexecution` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `orderId` int(11) NOT NULL DEFAULT 0,
  `title` varchar(255) NOT NULL,
  `orderdate` date NOT NULL,
  `taskid` int(11) NOT NULL,
  `productid` int(11) NOT NULL,
  `num` decimal(10,2) NOT NULL,
  `outstoreid` int(11) NOT NULL,
  `wastestoreid` int(11) NOT NULL,
  `rentcost` double NOT NULL,
  `othercost` double NOT NULL,
  `executioncost` double NOT NULL,
  `sysdate` datetime NOT NULL,
  `executed` int(11) NOT NULL DEFAULT 0 COMMENT '0: not execued -- 1:executed',
  `comment` text NOT NULL,
  `sizeid` int(11) NOT NULL DEFAULT 0,
  `colorid` int(11) NOT NULL DEFAULT 0,
  `dailyentryid` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `orderId` (`orderId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `productionexecution`
--


--
-- Table structure for table `productionexecutionoutput`
--

CREATE TABLE `productionexecutionoutput` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `exeutionid` int(11) NOT NULL,
  `productid` int(11) NOT NULL,
  `allprice` double NOT NULL,
  `halfprice` double NOT NULL,
  `unitprice` double NOT NULL,
  `num` decimal(10,2) NOT NULL,
  `cost` double NOT NULL,
  `storeid` int(11) NOT NULL,
  `buyPricesHistoryBookIdQuantity` text NOT NULL DEFAULT '',
  `sizeid` int(11) NOT NULL DEFAULT 0,
  `colorid` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `productionexecutionoutput`
--


--
-- Table structure for table `productionexecutionproduct`
--

CREATE TABLE `productionexecutionproduct` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `executionid` int(11) NOT NULL,
  `productid` int(11) NOT NULL,
  `unitid` int(11) NOT NULL,
  `quantity` decimal(10,2) NOT NULL,
  `actualquantity` decimal(10,2) NOT NULL,
  `cost` double NOT NULL,
  `actualcost` double NOT NULL,
  `buyPricesHistoryBookIdQuantity` text NOT NULL DEFAULT '',
  `sizeid` int(11) NOT NULL DEFAULT 0,
  `colorid` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `productionexecutionproduct`
--


--
-- Table structure for table `productionexecutionwaste`
--

CREATE TABLE `productionexecutionwaste` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `executionid` int(11) NOT NULL,
  `productid` int(11) NOT NULL,
  `allprice` double NOT NULL,
  `halfprice` double NOT NULL,
  `unitprice` double NOT NULL,
  `num` decimal(10,2) NOT NULL,
  `storeid` int(11) NOT NULL,
  `buyPricesHistoryBookIdQuantity` text NOT NULL DEFAULT '',
  `sizeid` int(11) NOT NULL DEFAULT 0,
  `colorid` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `productionexecutionwaste`
--


--
-- Table structure for table `productionorder`
--

CREATE TABLE `productionorder` (
  `productionOrderid` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `orderDate` date NOT NULL,
  `branchId` int(11) DEFAULT NULL,
  `startDate` date NOT NULL,
  `endDate` date NOT NULL,
  `productId` int(11) NOT NULL,
  `stageId` int(11) NOT NULL,
  `storeId` int(11) NOT NULL,
  `outQuantity` decimal(10,3) NOT NULL,
  `measureUnitId` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0 COMMENT '0 for notdel -1 for del',
  `userId` int(11) NOT NULL,
  `orderStatus` int(11) NOT NULL DEFAULT 0 COMMENT '0 for Under implementation - 1 for finished',
  PRIMARY KEY (`productionOrderid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `productionorder`
--


--
-- Table structure for table `productionout`
--

CREATE TABLE `productionout` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `outStore` int(11) NOT NULL,
  `inStore` int(11) NOT NULL,
  `supplier` int(11) NOT NULL,
  `productid` int(11) NOT NULL,
  `sizeid` int(11) NOT NULL,
  `colorid` int(11) NOT NULL,
  `outQuantity` float NOT NULL,
  `outUnitCost` float NOT NULL,
  `outAllCost` float NOT NULL,
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `userid` int(11) NOT NULL,
  `sysDate` datetime NOT NULL,
  `del` tinyint(4) NOT NULL,
  `outAllCostTot` float NOT NULL,
  `dailyentryid` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `productionout`
--


--
-- Table structure for table `productionoutdetails`
--

CREATE TABLE `productionoutdetails` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `productionOutId` int(11) NOT NULL,
  `productid` int(11) NOT NULL,
  `sizeid` int(11) NOT NULL,
  `colorid` int(11) NOT NULL,
  `unitid` int(11) NOT NULL,
  `price` float NOT NULL,
  `quantity` float NOT NULL,
  `inTotalCost` float NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `productionoutdetails`
--


--
-- Table structure for table `productionoutmany`
--

CREATE TABLE `productionoutmany` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `outStore` int(11) NOT NULL,
  `inStore` int(11) NOT NULL,
  `supplier` int(11) NOT NULL,
  `comment` text NOT NULL,
  `userid` int(11) NOT NULL,
  `sysDate` datetime NOT NULL,
  `del` tinyint(4) NOT NULL,
  `title` varchar(255) NOT NULL,
  `productionoutmanynum` int(11) NOT NULL DEFAULT 0,
  `dailyentryid` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `productionoutmany`
--


--
-- Table structure for table `productionoutmanyinproducts`
--

CREATE TABLE `productionoutmanyinproducts` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `productionoutmanyid` int(11) NOT NULL,
  `productid` int(11) NOT NULL,
  `sizeid` int(11) NOT NULL,
  `colorid` int(11) NOT NULL,
  `prounitid` int(11) NOT NULL,
  `quantity` float NOT NULL,
  `unitpriceraw` float NOT NULL,
  `unitManufPrice` float NOT NULL,
  `inTotalCostUnit` float NOT NULL,
  `inTotalCost` float NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `productionoutmanyinproducts`
--


--
-- Table structure for table `productionoutmanyoutproducts`
--

CREATE TABLE `productionoutmanyoutproducts` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `productionoutmanyid` int(11) NOT NULL,
  `productid` int(11) NOT NULL,
  `sizeid` int(11) NOT NULL,
  `colorid` int(11) NOT NULL,
  `prounitid` int(11) NOT NULL,
  `quantity` float NOT NULL,
  `unitprice` float NOT NULL,
  `cost` float NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `productionoutmanyoutproducts`
--


--
-- Table structure for table `productionrate`
--

CREATE TABLE `productionrate` (
  `productionRateId` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL COMMENT 'equation name',
  `finalName` varchar(255) NOT NULL COMMENT 'equation final product name',
  `userId` int(11) NOT NULL,
  `thedate` date NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0 COMMENT '0 for notdel- 1for del',
  `sizeid` int(11) NOT NULL DEFAULT 0,
  `colorid` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`productionRateId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `productionrate`
--


--
-- Table structure for table `productionrateproduct`
--

CREATE TABLE `productionrateproduct` (
  `productionRateProductId` int(11) NOT NULL AUTO_INCREMENT,
  `productionRateId` int(11) NOT NULL,
  `productId` int(11) NOT NULL,
  `unitId` int(11) NOT NULL,
  `rate` decimal(10,2) NOT NULL,
  `quantity` decimal(10,2) NOT NULL,
  `userId` int(11) NOT NULL,
  `thedate` date NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0 COMMENT '0 for notdel- 1for del',
  `sizeid` int(11) NOT NULL DEFAULT 0,
  `colorid` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`productionRateProductId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `productionrateproduct`
--


--
-- Table structure for table `productrecieve`
--

CREATE TABLE `productrecieve` (
  `productrecieveid` int(11) NOT NULL AUTO_INCREMENT,
  `sparepartid` int(11) NOT NULL,
  `productrecievedate` date NOT NULL,
  `recieptnum` varchar(255) NOT NULL,
  `clientname` varchar(255) NOT NULL,
  `type` int(11) NOT NULL COMMENT '1=>',
  `cost` decimal(10,2) NOT NULL,
  `partsnumber` decimal(10,2) NOT NULL,
  `userid` int(11) NOT NULL,
  PRIMARY KEY (`productrecieveid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `productrecieve`
--


--
-- Table structure for table `productrequests`
--

CREATE TABLE `productrequests` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `productid` int(11) NOT NULL,
  `storeid` int(11) NOT NULL,
  `requeststoreid` int(11) NOT NULL COMMENT 'id of store that made the request',
  `productnoreq` int(11) NOT NULL COMMENT 'no of requested pieces',
  `productnoaccept` int(11) NOT NULL COMMENT 'no of accepted pieces',
  `useridadd` int(11) NOT NULL COMMENT 'user who add the request',
  `useridresponse` int(11) NOT NULL COMMENT 'user who respond to the request',
  `status` int(11) NOT NULL DEFAULT 0 COMMENT '0 new - 1 refuse - 2 accept - 3 accept and added to bill',
  `seen` int(11) NOT NULL DEFAULT 0,
  `deleted` int(11) NOT NULL DEFAULT 0 COMMENT '1 deleted - 0 not deleted ',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `productrequests`
--


--
-- Table structure for table `productserial`
--

CREATE TABLE `productserial` (
  `productserailid` int(11) NOT NULL AUTO_INCREMENT,
  `productid` int(11) NOT NULL,
  `serialnumber` varchar(256) NOT NULL,
  `comment` text NOT NULL,
  `startdate` date NOT NULL,
  `enddate` date NOT NULL,
  `billid` int(11) NOT NULL,
  `type` int(11) NOT NULL COMMENT '0 for Buy 1 for returnBuyBill',
  `buybilldetailid` int(11) NOT NULL,
  `don` decimal(10,2) NOT NULL,
  `sellbillid` int(11) NOT NULL,
  `del` int(11) NOT NULL COMMENT '0 for not del 1 for del',
  `storeid` int(11) NOT NULL COMMENT 'store of buy bill where serial exists',
  `sizeid` int(11) NOT NULL DEFAULT 0,
  `colorid` int(11) NOT NULL DEFAULT 0,
  `chassisNo` varchar(25) NOT NULL DEFAULT '',
  `motorNo` varchar(25) NOT NULL DEFAULT '',
  `theColor` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`productserailid`),
  KEY `productid` (`productid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `productserial`
--


--
-- Table structure for table `productsetting`
--

CREATE TABLE `productsetting` (
  `productsettingid` int(11) NOT NULL AUTO_INCREMENT,
  `leastValueAtStore` decimal(10,2) NOT NULL,
  `storeid` int(11) NOT NULL,
  PRIMARY KEY (`productsettingid`),
  KEY `storeid` (`storeid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `productsetting`
--


--
-- Table structure for table `producttemp`
--

CREATE TABLE `producttemp` (
  `producttempid` int(11) NOT NULL AUTO_INCREMENT,
  `productName` varchar(256) NOT NULL DEFAULT '',
  `productCatId` int(11) NOT NULL,
  `productBuyPrice` decimal(10,2) NOT NULL,
  `productSellAllPrice` decimal(10,2) NOT NULL,
  `productSellUnitPrice` decimal(10,2) NOT NULL,
  `productSellHalfPrice` decimal(10,2) NOT NULL,
  `productDate` date NOT NULL,
  `conditions` int(1) NOT NULL DEFAULT 0,
  `userId` int(11) NOT NULL,
  `parcode` varchar(256) DEFAULT NULL,
  PRIMARY KEY (`producttempid`),
  KEY `productCatId` (`productCatId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `producttemp`
--


--
-- Table structure for table `producttempunit`
--

CREATE TABLE `producttempunit` (
  `producttempunitid` int(11) NOT NULL AUTO_INCREMENT,
  `unitid` int(11) NOT NULL,
  `producttempid` int(11) NOT NULL,
  `productnumber` int(11) NOT NULL,
  `producttempunitdate` date NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`producttempunitid`),
  KEY `producttempid` (`producttempid`),
  KEY `unitid` (`unitid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `producttempunit`
--


--
-- Table structure for table `productunit`
--

CREATE TABLE `productunit` (
  `productunitid` int(11) NOT NULL AUTO_INCREMENT,
  `unitid` int(11) NOT NULL,
  `productid` int(11) NOT NULL,
  `productnumber` decimal(10,2) NOT NULL,
  `productunitdate` date NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `proUnitParcode` varchar(30) NOT NULL,
  `proUnitSellAllPrice` float NOT NULL,
  `proUnitSellHalfPrice` float NOT NULL,
  `proUnitSellUnitPrice` float NOT NULL,
  `proUnitBuyPrice` float NOT NULL,
  `unitInTax` varchar(150) NOT NULL,
  `proUnitPrice4` float NOT NULL,
  `proUnitPrice5` float NOT NULL,
  `proUnitPrice6` float NOT NULL,
  `proUnitPrice7` float NOT NULL,
  `proUnitPrice8` float NOT NULL,
  `proUnitPrice9` float NOT NULL,
  `proUnitPrice10` float NOT NULL,
  `proUnitPrice11` float NOT NULL,
  `proUnitPrice12` float NOT NULL,
  `proUnitPrice13` float NOT NULL,
  PRIMARY KEY (`productunitid`),
  KEY `productid` (`productid`),
  KEY `unitid` (`unitid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `productunit`
--


--
-- Table structure for table `project`
--

CREATE TABLE `project` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `totalcontract` decimal(10,2) NOT NULL,
  `image` varchar(255) DEFAULT NULL,
  `detail` text NOT NULL,
  `clientid` int(11) NOT NULL,
  `costcenterid` int(11) NOT NULL,
  `treeid` int(11) NOT NULL,
  `treeproid` int(11) NOT NULL,
  `entryid` int(11) NOT NULL,
  `sysdate` date NOT NULL,
  `del` int(11) NOT NULL DEFAULT 0,
  `finish` int(11) DEFAULT 0 COMMENT '0: not finish 1: finish',
  `projectkindid` int(11) NOT NULL DEFAULT 0,
  `bannerdesigned` int(11) NOT NULL DEFAULT 0,
  `projectsuit` int(11) NOT NULL DEFAULT 0,
  `addeddate` date NOT NULL,
  `expirydate` date NOT NULL,
  `owner_name` varchar(255) DEFAULT NULL,
  `business_type` tinyint(4) DEFAULT 0,
  `supervision_type` tinyint(4) DEFAULT 0,
  `supervision_amount` decimal(10,2) NOT NULL,
  `projectstageids` varchar(255) DEFAULT '0',
  `userid` int(11) NOT NULL DEFAULT 0,
  `projectstagesdata` tinyint(4) DEFAULT 2,
  `projecttimetableitems` tinyint(4) DEFAULT 2,
  `expenses` tinyint(4) DEFAULT 2,
  `income` tinyint(4) DEFAULT 2,
  `showpdf` tinyint(4) DEFAULT NULL,
  `filepdf` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `project`
--


--
-- Table structure for table `projectexchmaterial`
--

CREATE TABLE `projectexchmaterial` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `serilno` varchar(255) NOT NULL,
  `projectid` int(11) NOT NULL,
  `storeid` int(11) NOT NULL,
  `projdate` date NOT NULL,
  `sysdate` date NOT NULL,
  `totalnum` varchar(255) NOT NULL,
  `totalbuyprice` varchar(255) NOT NULL,
  `entryid` int(11) NOT NULL,
  `userid` int(11) NOT NULL DEFAULT 0,
  `supervision_type` int(11) NOT NULL,
  `supervision_amount` int(11) NOT NULL,
  `supplierid` int(11) NOT NULL,
  `finalsupervision` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `projectexchmaterial`
--


--
-- Table structure for table `projectexchmaterialdetail`
--

CREATE TABLE `projectexchmaterialdetail` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `projectexchid` int(11) NOT NULL,
  `productid` int(11) NOT NULL,
  `pronumber` int(11) NOT NULL,
  `probuyprice` int(11) NOT NULL,
  `expensestypeid` int(11) NOT NULL,
  `supervision_amount` int(11) NOT NULL,
  `supervision` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `projectexchmaterialdetail`
--


--
-- Table structure for table `projectexchmaterialdetailreturn`
--

CREATE TABLE `projectexchmaterialdetailreturn` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `projectexchid` int(11) NOT NULL,
  `productid` int(11) NOT NULL,
  `pronumber` int(11) NOT NULL,
  `probuyprice` int(11) NOT NULL,
  `expensestypeid` int(11) NOT NULL,
  `supervision_amount` int(11) NOT NULL,
  `supervision` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `projectexchmaterialdetailreturn`
--


--
-- Table structure for table `projectexchmaterialreturn`
--

CREATE TABLE `projectexchmaterialreturn` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `serilno` varchar(255) NOT NULL,
  `projectid` int(11) NOT NULL,
  `storeid` int(11) NOT NULL,
  `projdate` date NOT NULL,
  `sysdate` date NOT NULL,
  `totalnum` varchar(255) NOT NULL,
  `totalbuyprice` varchar(255) NOT NULL,
  `entryid` int(11) NOT NULL,
  `userid` int(11) NOT NULL DEFAULT 0,
  `supervision_type` int(11) NOT NULL,
  `supervision_amount` int(11) NOT NULL,
  `supplierid` int(11) NOT NULL,
  `finalsupervision` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `projectexchmaterialreturn`
--


--
-- Table structure for table `projectkind`
--

CREATE TABLE `projectkind` (
  `projectkindid` int(11) NOT NULL AUTO_INCREMENT,
  `projectkindname` varchar(256) DEFAULT NULL,
  `projectkinddate` datetime NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(1) NOT NULL,
  `projectkindcomment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`projectkindid`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `projectkind`
--


--
-- Table structure for table `properties`
--

CREATE TABLE `properties` (
  `propertyid` int(11) NOT NULL AUTO_INCREMENT,
  `propertyname` varchar(255) NOT NULL,
  `propertyparent` int(11) NOT NULL,
  `propertydefault` int(11) NOT NULL DEFAULT 0,
  `propertyurl` varchar(255) NOT NULL,
  PRIMARY KEY (`propertyid`)
) ENGINE=InnoDB AUTO_INCREMENT=658 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `properties`
--

INSERT INTO `properties` VALUES
(1,'خصائص عامه',0,1,''),
(2,'القائمه',1,1,'menuurController.php'),
(3,'اعدادات المنتج',1,1,'productsettingController.php'),
(4,'مجموعات المستخدمين',1,1,'usergroupController.php'),
(5,'المستخدمين',1,1,'userController.php'),
(6,'شركات الشحن',1,1,'shippercompaniesController.php'),
(7,'بوليصه الشحن',1,1,'policyController.php'),
(8,'راس المال',1,1,'capitalController.php'),
(9,'الشركاء',1,1,''),
(10,'الشركاء',9,1,'partnerController.php'),
(11,'مسحوبات الشركاء',9,1,'partnerwithdrawalController.php'),
(12,'الأصول الثابتة',1,1,'assetController.php'),
(13,'انواع الاصول الثابتة',1,1,'assetTypeController.php'),
(14,'العملاء',1,1,''),
(15,'اداره العملاء',14,1,'clientController.php'),
(16,'ايصال سداد عميل',14,1,'clientPayedDeptController.php'),
(17,'معالجه حساب عميل',14,1,'clientDeficitController.php'),
(18,'تقرير مديونيه العميل',14,1,'clientReportsController.php'),
(19,'الموردين',1,1,''),
(23,'اداره الموردين',19,1,'supplierController.php'),
(24,'سداد ديون مورد',19,1,'supplierPayedDeptController.php'),
(25,'معالجه عجز مورد',19,1,'supplierDeficitController.php'),
(26,'تقرير الدÙعات لمورد',19,1,'supplierReportsController.php'),
(27,'تقرير مديونيه مورد',19,1,'supplierReportsController.php'),
(28,'نقل قاعده البيانات',1,1,'transferdatabaseController.php'),
(29,'نسخه احتياطيه',1,1,'backupController.php'),
(30,'ارشÙه',1,1,'archiveController.php'),
(31,'اداره الÙواتير',0,1,''),
(32,'الÙاتوره',31,1,'billsettingsController.php'),
(33,'Ùاتوره مشتريات',31,1,''),
(34,'اضاÙه Ùاتوره شراء',33,1,'buyBillController.php'),
(35,'عرض مردودات المشتريات',33,1,'returnBuyBillController.php'),
(36,'عرض Ùواتير المشتريات والمردودات',33,1,'buyAndReturnBillController.php'),
(37,'Ùاتوره المبيعات',31,1,''),
(38,'اضاÙه Ùاتوره مبيعات',37,1,'sellbillController.php'),
(39,'عرض مردودات المبيعات',37,1,'returnsellbillController.php'),
(40,'عرض المبيعات والمردودات',37,1,'sellbillandruternController.php'),
(41,'المنتجات',0,1,''),
(42,'تصنيÙات المنتجات',41,1,'productCatController.php'),
(43,'المنتجات',41,1,'productController.php'),
(44,'طباعه السيريال',43,1,'printbillserailController.php'),
(45,'وحدات القياس',41,1,'unitController.php'),
(46,'قطع الغيار',41,1,'sparePartController.php'),
(47,'الصيانه',0,1,''),
(48,'استلام منتج',47,1,'productRecieveController.php'),
(49,'المصروÙات والايرادات',0,1,''),
(50,'الخزن',49,1,''),
(51,'الخزن',50,1,'saveController.php'),
(52,'التحويل بين الخزن',50,1,'transfermoneyController.php'),
(53,'معالجه عجز  خزنه',50,1,'settlementsaveController.php'),
(54,'اداره البنوك',49,1,''),
(55,'البنوك',54,1,'bankController.php'),
(56,'حسابات البنوك',54,1,'bankaccountController.php'),
(57,'الشيكات',49,1,''),
(58,'الايداعات',57,1,'depositcheckController.php'),
(59,'المسحوبات',57,1,'checkwithdrawalController.php'),
(60,'الكمبيالات',49,1,'kempialaController.php'),
(61,'انواع المصروÙات',49,1,'expensesTypeController.php'),
(62,'المصروÙات',49,1,'expensesController.php'),
(63,'المخازن',0,1,''),
(64,'المخازن',63,1,'storeController.php'),
(65,'التحويل بين المخازن',63,1,'storemovementController.php'),
(66,'تسوية مخزن',63,1,'settlementstoreController.php'),
(67,'التقارير',0,1,''),
(68,'تقرير يوميه الخزنه',67,1,'savedailyController.php'),
(69,'رصيد المخازن',67,1,'storedetailController.php'),
(70,'تقرير حركه المخازن',67,1,'storereportController.php'),
(71,'تقرير ارباح مده',67,1,'profitreportController.php'),
(72,'تقرير حسابات مجمعة',67,1,'balancereportController.php'),
(73,'تقرير المنتجات بالمخزن اقل من الحد الأدنى',67,1,'productlimitreportController.php'),
(74,'تقرير مبيعات مبسط',67,1,'productsellsreportController.php'),
(75,'تقرير حركه المستخدمين',67,1,'movementmanageController.php'),
(76,'تقرير الأصناÙ بكل الأسعار ',67,1,'productReportsController.php'),
(77,'تقرير الأصناÙ شراء ',67,1,'productReportsController.php'),
(78,'تقرير ارباح تصنيÙ',67,1,'profitproductcatController.php'),
(79,'تقرير ارباح منتج',67,1,'profitproductController.php'),
(80,'تقرير باركود لصنÙ',67,1,'productserailreportController.php'),
(82,'إعادة الجرد',41,1,'inventoryController.php'),
(83,'تحويل نقدي',49,1,'cashTransferController.php'),
(84,'تقرير المصروÙات',67,1,'expensesReportController.php'),
(85,'إعدادات البرنامج',1,1,'programsettingsController.php'),
(87,'تقرير عملاء ومنتجات',67,1,'clientsAndProductsReportController.php'),
(89,'تقرير Ùواتير المبيعات',37,1,'sellBillReportsController.php'),
(90,'تقرير مردودات المبيعات',37,1,'ReturnSellBillReportsController.php'),
(91,'تقرير الموردين',67,1,'supplierReportsController.php'),
(92,'تقرير عملاء مÙصل',67,1,'clientReportsController.php?do=all'),
(93,'التحويل بين اكثر من مخزن',63,1,'otherstoremovementController.php'),
(96,'اداره الموظÙين',0,1,''),
(97,'الموظÙين',96,1,'employeeController.php'),
(98,'الحواÙز او الخصومات',96,1,'employeePersonalController.php'),
(99,'المرتبات',96,1,'salaryReportController.php'),
(100,'تقرير نسبه بائع',31,1,'userratereportController.php'),
(105,'طباعه الباركود لمخزن او تصنيÙ ',41,1,'storeparcodeController.php'),
(123,'الاشعارات',67,1,'noticesController.php'),
(124,'الشيكات المؤجله ',57,0,'datedCheckedController.php'),
(125,'تقرير حركه منتج ',67,1,'productmovmentController.php'),
(126,'التصنيع',0,1,''),
(127,'معادلات الانتاج',126,1,'productionRateController.php'),
(128,'مراكز الانتاج',126,1,'workstationController.php'),
(129,'اعداد العمليات',126,1,'settingOperationController.php'),
(130,'اعداد المراحل',126,1,'stageController.php'),
(131,'امر انتاج',126,1,'productionOrderController.php'),
(133,'الشركات - المناطق',14,1,'clientareaController.php'),
(134,'تقرير يوميه يوم',67,1,'cashflowsController.php'),
(135,' تقرير ربحيه الÙواتير',67,1,'invoicesearningsreportController.php'),
(136,'كارت صنÙ',67,1,'productcardController.php'),
(137,'كشÙ حساب مورد',67,1,'supplierReportsnewController.php'),
(138,'كشÙ حساب عميل',67,1,'clientReportsnewController.php'),
(139,'تقرير العملاء بالمناطق/ الشركات',67,1,'clientReportsbyareaController.php'),
(140,'انواع الايرادات',49,1,'incomeTypeController.php'),
(141,'الايرادات',49,1,'incomeController.php'),
(142,'تقرير Ùواتير المشتريات',33,1,'buyBillreportController.php'),
(143,'تقرير Ùواتير مردودات المشتريات',33,1,'returnBillreportController.php'),
(144,'تقرير قائمة اسعار البضاعة',67,1,'storedetailpriceController.php'),
(145,'تقرير المشتريات',67,1,'productBuyreportController.php'),
(146,'المنتجات الراكدة Ùى التصنيÙات',67,1,'catsellrateReportController.php'),
(147,'المركز المالى',67,1,'FinancialPositionController.php'),
(148,'تقرير المبيعات والمردودات',37,1,'sellBillReportsController.php?do=sellandreturnreport'),
(149,'مراكز التكلÙه',1,1,'costcenterController.php'),
(150,'حسابات',0,1,''),
(151,'دليل الحسابات',150,1,'accountstree.php'),
(152,'قيد يومية',150,1,'dailyentry.php'),
(153,'دÙتر الأستاذ العام',150,1,'generalledger.php'),
(154,'دÙتر الأستاذ المساعد',150,1,'assistantledger.php'),
(155,'ميزان المراجعة',150,1,'trialbalance.php'),
(156,'تقرير المتاجرة',150,1,'tradingreport.php'),
(157,'تقرير الأرباح و الخسائر',150,1,'profitandlossreport.php'),
(158,'الميزانية العمومية',150,1,'thebalancesheet.php'),
(159,'تقرير حقوق الملكية',150,1,'propertyrightsreport.php'),
(160,'عروض الاسعار',0,1,'priceoffersController.php'),
(161,'عروض الاسعار',160,1,'priceoffersController.php'),
(162,'بصريات',0,1,'#'),
(163,'الورش',162,1,'workshop.php'),
(164,'Ùواتير',162,1,'bills.php'),
(165,'النقل',162,0,'workshoptransport.php'),
(166,'العملاء',0,0,''),
(167,'إدارة العملاء',166,0,'clientController.php'),
(168,'إيصال سداد عميل',166,0,'clientPayedDeptController.php'),
(169,'معالجه حساب عميل',166,0,'clientDeficitController.php'),
(170,'تقرير مديونية العميل',166,0,'clientReportsController.php'),
(171,'تقرير مبيعات عميل',166,0,'clientReportsController.php?do=clientShowforsellonly'),
(172,'الشركات - المناطق',166,0,'clientareaController.php'),
(173,'المشروعات',0,0,''),
(174,'المشروعات',173,0,'projectController.php'),
(175,'عمليات على المشروع',173,0,''),
(176,'صرÙ مواد',175,0,'projectoperationController.php'),
(177,'مرتجع مواد',175,0,'projectoperationControllerreturn.php'),
(178,'صرÙ مصروÙ',175,0,'expenseexchange.php'),
(179,'تقارير المشروعات',173,0,'projectReportController.php'),
(180,'إدارة مراكز التكلÙة',149,0,'costcenterController.php'),
(181,'تقرير مراكز التكلÙة',149,0,'costcenterReportController.php'),
(182,'شركات التأمين',1,0,'insurancecompany.php'),
(183,'تقارير المبيعات',0,0,''),
(187,'العهد',0,0,''),
(188,'إدارة العهد',187,0,'bind.php'),
(189,'تسوية العهد',187,0,'bindsettlement.php'),
(190,'تقرير العهد',187,0,'bindsettlement.php?do=showreport'),
(191,'العيادات',162,0,'rb_clinics.php'),
(192,'الاستقبال',162,0,'rb_kashf.php'),
(193,'الكشÙ',162,0,'rb_doc_kashf.php'),
(194,'الÙروع',1,0,'branchesController.php'),
(195,'طباعة قيد يومية',152,1,'propertiesController.php'),
(196,'قيد يومية مجمع',150,0,'dailyentrymany.php'),
(197,'ايصالات قبض',198,0,'clientreceiptController.php'),
(198,'إيصالات',0,0,''),
(199,'إيصالات دÙع',198,0,'supPayController.php'),
(200,'تقارير التأمين',183,1,'reports.php'),
(201,'تقارير',96,0,''),
(202,'تقرير الموظÙين',201,0,'employeereport.php'),
(203,'مسيرات الراتب',96,0,'marchSalaReport.php'),
(205,'مرتجعات Ùواتير ',162,1,'billsreturn.php'),
(206,'تقرير الدخول',201,0,'presenceReport.php'),
(207,'تقرير مبيعات',67,0,'salesreport.php'),
(208,'تقرير Ùواتير المبيعات',67,0,'salesreportbills.php'),
(209,'تقرير الشبكات',183,0,'networkreport.php'),
(210,'الايجارات',0,0,'rents.php'),
(211,'منتجات',210,0,'rentproducts.php'),
(212,'Ùاتوره ايجار',210,0,'rentbill.php'),
(213,'تقارير',210,1,'reports'),
(214,'تاريخ المنتج',213,1,'rentproduct_history.php'),
(215,'تقرير المتاخرات',213,1,'rentdelays.php'),
(216,'تقرير غير مؤجر',213,0,'rentava.php'),
(217,'متاح عند تاريخ',213,0,'rentproduct_ava.php'),
(218,'تقرير مؤجر من الخارج',213,0,'rentproduct_out.php'),
(219,'تقرير المؤجر Ùى يوم',213,0,'rentproduct_rented.php'),
(220,'تقرير تسليم Ùى يوم',213,0,'rentproduct_delivered.php'),
(221,'بحث عام الصيانة',67,0,'generalSearch.php'),
(227,'تقرير مجمع لطرق الدÙع ',183,1,'reports.php?do=paymethod'),
(228,'شبكات الدÙع',1,1,'paymentnetworks.php'),
(231,'طلب منتج من مخزن أخر',162,1,'productrequest.php'),
(232,'اضاÙة منتج بمقاسات او الوان',43,1,'productController.php?do=addoptic'),
(233,'اضاÙة منتجات من اكسل',43,1,'productController.php?do=uploadexcel'),
(234,'طلبات اخري من الÙروع ',162,1,'otherrequests.php'),
(235,'ارسال بريد الكترونى بالنواقص',41,1,'productmail.php'),
(243,'تقرير بدون مقابل',67,0,'freesales.php'),
(244,'اضاÙة 2',164,1,'bills.php?do=addview2'),
(250,'تقرير عملاء بالمنتجات',67,1,'clientsWithProductsReport.php'),
(252,'تقرير مبيعات بالخصومات المÙصلة',67,1,'saleswithdetaileddiscount.php'),
(253,'تقرير ترتيب العملاء بصاÙى المبيعات',67,1,'orderClientsWithSelles.php'),
(256,'اذن تحميل بين المخازن',63,1,'storetransferrequestController.php'),
(257,'اذن ارتجاع بين المخازن',63,1,'storeAskedRefluxController.php'),
(258,'تقرير عملاء بدون Ùواتير',67,1,'clientsWithoutBills.php'),
(259,'المحاÙظات',166,1,'governmentController.php'),
(260,'تقرير مديونيات عملاء مجمع',67,1,'clientdebt.php'),
(261,'تقرير بمدÙوعات العملاء مجمع',67,1,'clientpayments.php'),
(262,'تقرير مبيعات بالمناطق',67,1,'sellingReportByArea.php'),
(263,'المحاÙظات',14,1,'governmentController.php'),
(264,'تقرير سائق',162,1,'driveropticreport.php'),
(265,'تقرير نسب الخصومات',67,1,'disountreport.php'),
(266,'المقاسات',1,1,'sizecalculator.php'),
(267,'Ùاتورة شراء',162,1,'bills.php?do=buybill'),
(268,'تقرير مشتريات مورد',67,1,'buyreport.php'),
(269,'تقرير مبيعات بنوع السعر',67,1,'sellreportpricetype.php'),
(274,'تقرير يومية الخزنة بالبصريات',67,1,'savedailyController.php?do=showdailywithoptic'),
(275,'تقرير سداد ديون عميل بصاريات',14,1,'clientPayedDeptReportController.php'),
(278,'السداد على Ùاتورة بصريات للعميل',166,1,'clientPayedDeptBillsController.php'),
(279,'تقرير حركة المخازن مÙصل',67,1,'salesNumbersReport.php'),
(280,'تقرير حركة المخازن مÙصل',201,0,'salesNumbersReport.php'),
(281,'تقرير السداد على Ùاتوره للعميل',67,0,'clientPayedDeptBillsController.php?do=show'),
(282,'تقرير ربحية عميل',67,0,'clientProfitsController.php'),
(283,'تقرير ربحيه مخزن',67,0,'storeProfiteController.php?do=all'),
(284,'تقرير العملاء',67,0,'clientReportsController.php?do=all'),
(285,'تقرير ميزانية مدة',67,0,'balancereportController.php'),
(286,'تقرير مبيعات منتج لعميل',67,0,'clientsAndsellProductsReportController.php'),
(287,'تقرير البضاعه بكل الاسعار',67,0,'storedetailpriceController.php'),
(288,'تقرير موردين ومنتجات',67,0,'suppliersAndProductsReportController.php?do=all'),
(289,'التدÙقات النقديه',67,0,'cashflowsController.php'),
(290,'تقرير التصنيÙات الرئيسيه',67,0,'productsellsreportController.php?do=showmain'),
(291,'تقرير صلاحية صنÙ',67,0,'productserailreportController.php'),
(292,'صاÙى تحويلات المخزن',67,0,'netStoreTransfer.php'),
(293,'المطاعم',0,0,''),
(294,'الصالات',293,0,'restauranthall.php'),
(295,'الطاولات',293,0,'restauranttable.php'),
(296,'Ùاتورة',293,0,'sellbillController.php?do=addresBill'),
(297,'تالÙ مواد تشغيل',63,0,'restaurantRawDestruction.php'),
(298,'تقرير شامل للÙواتير',67,1,'allReportsOnOne.php'),
(299,'طباعة المطبخ',293,0,'restaurantKitchenPrinter.php'),
(300,'السداد على Ùاتورة بصريات للعميل',14,1,'clientPayedDeptBillsController.php'),
(301,'تقرير القيمة المضاÙة',67,0,'salesreportbillsvat.php'),
(302,'تقرير التصنيÙات الشامل',67,0,'fullCategoryReport.php'),
(303,'تقرير الأوردرات',293,0,'ordersreport.php'),
(304,'معالجة خصومات قاعدة البيانات',293,0,'resetdiscount.php'),
(305,'حركة حساب',54,0,'bankAccountOpController.php'),
(307,'تصنيع',0,0,''),
(308,'معادلة الإنتاج',307,0,'productionEquationController.php'),
(309,'أمر شغل',307,0,'taskOrderController.php'),
(310,'أمر إنتاج',307,0,'productionExecutionController.php'),
(311,'إعدادات التصنيع المبسط',307,0,'simpleManufactureSettingsController.php'),
(312,'أوردرات الدليÙرى',293,0,'orderstatusreport.php'),
(313,'تقرير أوردرات سائق',293,0,'orderdeliveryreport.php'),
(314,'تقرير التكلÙة',307,1,'productionExecutionReportController.php'),
(315,'تقرير التكلÙة مجمع',307,1,'productionExecutionCombinedReportController.php'),
(316,'تقرير صلاحية منتج',67,0,'productserailreportController.php?do=showvalidity'),
(317,'تقارير*',0,0,''),
(318,'تقرير ارباح عمومية *',317,0,'quickprofitreports.php'),
(319,'تقرير ارباح يوم *',317,0,'quickprofitreports.php?do=day'),
(320,'تقرير ارباح محزن باليوم *',317,0,'quickprofitreports.php?do=storeday'),
(321,'تقرير ارباح منتج باليوم *',317,0,'quickprofitreports.php?do=productday'),
(322,'تقرير ارباح تصنيÙ باليوم *',317,0,'quickprofitreports.php?do=catday'),
(323,'تقرير ارباح التصنيÙات باليوم *',317,0,'quickprofitreports.php?do=allcatday'),
(324,'تقرير ارباح عميل باليوم *',317,0,'quickprofitreports.php?do=clientday'),
(325,'الطابعات',293,0,'restaurantprinters.php'),
(326,'تقرير مبيعات عملاء بالمنتج',67,0,'salesreportofclientsbyproduct.php'),
(327,'اعادة جرد بالباركود',41,0,'inventorybybarcodeController.php'),
(328,'عرض الÙواتير مجمع',67,0,'salesreportbills.php?do=showbills'),
(329,'عرض الÙواتير مجمع',37,0,'salesreportbills.php?do=showbills'),
(330,'الوان و مقاسات',41,0,'sizecolorController.php'),
(331,'تقارير',166,0,''),
(332,'تقرير عملاء ومنتجات',331,0,'clientsAndProductsReportController.php'),
(333,'تقرير عميل مÙصل',331,0,'clientReportsController.php?do=all'),
(334,'كشÙ حساب عميل',331,0,'clientReportsnewController.php?do=clientShowbure'),
(335,'تقارير العملاء بالمناطق / الشركات',331,0,'clientReportsbyareaController.php'),
(336,'تقرير عملاء بالمنتجات',331,0,'clientsWithProductsReport.php'),
(337,'تقرير ترتيب العملاء بصاÙى المبيعات',331,0,'orderClientsWithSelles.php'),
(338,'تقريرالعملاء بدون Ùواتير',331,0,'clientsWithoutBills.php'),
(339,'تقرير مديونيات عملاء مجمع',331,0,'clientdebt.php'),
(340,'تقرير بمدÙوعات العملاء مجمع',331,0,'clientpayments.php'),
(341,'تقرير سداد ديون عميل بصريات',331,1,'clientPayedDeptReportController.php'),
(342,'تقرير ربحية عميل',331,0,'clientProfitsController.php'),
(343,'تقرير مديونيه العميل',331,0,'clientReportsController.php?do=show'),
(344,'تقرير معالجه حساب عميل',331,0,'clientDeficitController.php?do=show'),
(345,'تقرير مبيعات عميل ',331,0,'clientReportsController.php?do=clientShowforsellonly'),
(346,'تقرير عملاء ومنتجات',360,1,'clientsAndProductsReportController.php'),
(347,'تقرير عميل مÙصل',360,1,'clientReportsController.php?do=all'),
(348,'كشÙ حساب عميل',360,1,'clientReportsnewController.php?do=clientShowbure'),
(349,'تقارير العملاء بالمناطق / الشركات',360,1,'clientReportsbyareaController.php'),
(350,'تقرير عملاء بالمنتجات',360,1,'clientsWithProductsReport.php'),
(351,'تقرير ترتيب العملاء بصاÙى المبيعات',360,1,'orderClientsWithSelles.php'),
(352,'تقريرالعملاء بدون Ùواتير',360,1,'clientsWithoutBills.php'),
(353,'تقرير مديونيات عملاء مجمع',360,1,'clientdebt.php'),
(354,'تقرير بمدÙوعات العملاء مجمع',360,1,'clientpayments.php'),
(355,'تقرير سداد ديون عميل بصاريات',360,1,'clientPayedDeptReportController.php'),
(356,'تقرير ربحية عميل',360,1,'clientProfitsController.php'),
(357,'تقرير مديونيه العميل',360,1,'clientReportsController.php?do=show'),
(358,'تقرير معالجه حساب عميل',360,1,'clientDeficitController.php?do=show'),
(359,'تقرير مبيعات عميل',360,1,'clientReportsController.php?do=clientShowforsellonly'),
(360,'تقارير',14,0,''),
(361,'تقارير',19,0,'supplierReportsController.php?do=all'),
(362,'كشÙ حساب مورد',361,1,'supplierReportsnewController.php'),
(363,'تقرير مشتريات مورد',361,0,'buyreport.php'),
(364,'تقرير موردين ومنتجات',361,0,'suppliersAndProductsReportController.php?do=all'),
(365,'تقارير',41,0,''),
(366,'تقرير المنتجات بالمخزن اقل من الحد الأدنى',365,0,'productlimitreportController.php'),
(367,'تقرير الأصناÙ بكل الأسعار',365,0,'productReportsController.php?do=reportWithAllPrices'),
(368,'تقرير الأصناÙ شراء',365,0,'productReportsController.php?do=reportWithBuyPrice'),
(369,'تقرير أرباح صنÙ',365,0,'profitproductcatController.php'),
(370,'تقرير أرباح منتج',365,0,'profitproductController.php'),
(371,'تقرير منتج بالباركود',365,0,'productserailreportController.php?do=show'),
(372,'تقرير حركه منتج',365,0,'productmovmentController.php'),
(373,'تقرير قائمة اسعار البضاعة',365,0,'storedetailpriceController.php'),
(374,'تقرير التصنيÙات الرئيسية',365,0,'productsellsreportController.php?do=showmain'),
(375,'تقرير كارت الصنÙ',365,0,'productcardController.php'),
(376,'تقرير مشتريات منتج',365,0,'productBuyreportController.php'),
(377,'تقرير المنتجات الراكدة Ùى التصنيÙات',365,0,'catsellrateReportController.php'),
(378,'تقرير عملاء ومنتجات',365,0,'clientsAndProductsReportController.php'),
(379,'تقرير عملاء بالمنتجات',365,0,'clientsWithProductsReport.php'),
(380,'تقرير موردين ومنتجات',365,0,'suppliersAndProductsReportController.php?do=all'),
(381,'تقارير',63,0,''),
(382,'رصيد المخازن',381,0,'storedetailController.php'),
(383,'تقرير حركة المخازن',381,0,'storereportController.php'),
(384,'تقرير ربحيه مخزن',381,0,'storeProfiteController.php?do=all'),
(385,'صاÙى تحويلات المخزن',381,0,'netStoreTransfer.php'),
(386,'تقرير حركة المخازن مÙصل',381,0,'salesNumbersReport.php'),
(387,'تقرير المنتجات بالمخزن اقل من الحد الأدنى',381,0,'productlimitreportController.php'),
(388,'تقارير',50,0,''),
(389,'تقرير يومية الخزنة',388,0,'savedailyController.php'),
(390,'تقرير يومية الخزنة',388,0,'savedailyController.php?do=show2'),
(391,'تقرير يوميه يوم',388,0,'cashflowsController.php'),
(392,'تقرير حسابات مجمعة',388,0,'balancereportController.php'),
(393,'تقارير',31,0,''),
(394,'تقرير Ùواتير المشتريات',393,0,'buyBillreportController.php?do=show'),
(395,'تقرير Ùواتير مردودات المشتريات',393,0,'returnBillreportController.php?do=show'),
(396,'تقرير Ùواتير المبيعات',393,0,'sellBillReportsController.php?do=show'),
(397,'تقرير Ùواتير مردودات المبيعات',393,0,'ReturnSellBillReportsController.php?do=show'),
(398,'تقرير المبيعات و المردود',393,0,'sellBillReportsController.php?do=sellandreturnreport'),
(399,'تقرير نسب بائع ',393,0,'userratereportController.php?do=show'),
(400,'تقرير شامل للÙواتير',393,0,'allReportsOnOne.php'),
(401,'اعدادات المتجر اون لاين',1,0,'onlinestoresetting.php'),
(402,'تقارير عامة',0,0,''),
(403,'تقرير حركه المستخدمين',402,0,'movementmanageController.php'),
(404,'تقرير المصروÙات',49,0,'expensesReportController.php'),
(405,'تقرير بدون مقابل',402,0,'freesales.php'),
(406,'تقرير نسب الخصومات',402,0,'disountreport.php'),
(407,'تقرير ميزانيه مده',402,0,'balancereportController.php'),
(408,'تقرير القيمه المضاÙه',402,0,'salesreportbillsvat.php'),
(409,'تقرير التصنيÙات الشامله',402,0,'fullCategoryReport.php'),
(410,'تقرير ارباح مدة',402,0,'profitreportController.php'),
(411,'تقرير ارباح الÙواتير Ùى مده',402,0,'invoicesearningsreportController.php'),
(412,'تقرير مديونيات عملاء مجمع بالترتيب الأبجدي',14,0,'orderedClientController.php'),
(413,'تقييم المخازن بكل الاسعار',63,0,'storeEvaluationAtAllPrices.php'),
(414,'نوع العميل',1,1,'typeClientController.php'),
(417,'تقرير نسب بائعين',67,0,'usersratesreportsController.php'),
(418,'عرض العملاء بالنوع',14,0,'clientController.php?do=showByType'),
(419,'قائمة الدخل عن مدة',67,0,'incomeStatmentForPeriod.php'),
(420,'تقرير مدÙوعات عملاء بالمناطق',67,0,'clientReportsbyareaNewController.php'),
(421,'طباعه باركود مÙصل',41,0,'productController.php?do=showbarcodedetailed'),
(422,'اعدادات GT4',1,1,'gt4setting.php'),
(423,'تقرير النقدى والاجل',67,0,'report.php'),
(424,'اضاÙة اقساط للعميل',14,1,'premiumController.php'),
(425,'تقرير اقساط عملاء',14,0,'premiumReportController.php'),
(426,'تقرير الاقساط المؤجله للعملاء',14,0,'premiumReportDelayController.php'),
(427,'تقرير جميع اقساط العملاء',14,0,'allpremiumReportController.php'),
(428,'اقساط',14,0,'premiumautomaticController.php'),
(429,'متابعة العملاء',14,0,'comentclientController.php'),
(430,'مراجعة الÙواتير',393,0,'salesreportbills.php?do=reviewbills'),
(431,'تقرير العملاء بنوع العميل / المناطق',67,1,'clientReportsbyareabytypeClientController.php'),
(432,'ديون العملاء بعد المراجعة',14,0,'clientdebtmessdiscoverer.php'),
(433,'رصيد المخازن مقاسات والوان',381,0,'storedetailController.php?do=showsizeandcolor'),
(434,'استعلام المخازن',67,1,'storeinquiriesreportController.php'),
(436,'تست للحسابات',1,1,'automationtest.php'),
(437,'تقرير مديونيات العملاء',67,0,'debtclientController.php'),
(438,'Ùواتير معلقه',31,0,'sellbillController.php?do=showoffers'),
(439,'الÙايده',1,1,'FaidaController.php'),
(440,'تقرير تنزيلات اون لاين',67,1,'onlineDownloadsController.php'),
(441,'حضور موظÙ',201,1,'employeeAttendance.php?do=attendanceReport'),
(442,'نوع المورد',1,1,'typeSupplierController.php'),
(443,'انظمة الحضور',96,0,'employeeAttendanceSystems.php'),
(444,'مجموعات الموظÙين',96,0,'employeegroups.php'),
(445,'مجموعات الموظÙين الÙرعية',96,0,'employeesubgroups.php'),
(446,'تقÙيل يوم',96,0,'employeeendday.php'),
(447,'احصائيات تصنيÙات المنتجات',365,0,'catandproductstatistics.php?do=cat'),
(448,'احصائيات المنتجات',365,0,'catandproductstatistics.php?do=pro'),
(449,'تقرير المدير للÙايده',1,0,'FaidaDireController.php'),
(450,'Ùرن عيش',0,0,''),
(451,'Ùاتورة الصرÙ',450,0,'tamweenbill.php'),
(452,'صرÙ التموين',450,0,'tamweenda3mstatus.php?do=showtamween'),
(453,'يومية بالعدد Ùى Ùترة معينة',450,0,'tamweenreports.php'),
(454,'كشÙ حساب عميل باعداد العيش Ùى Ùترة',450,0,'tamweenreports.php?do=clientda3minperiod'),
(455,'تقرير بواقى',450,0,'tamweenreports.php?do=clientremain'),
(456,'تقرير Ùواتير الحجز',393,0,'salesreportbills.php?do=billReservation'),
(457,'Ùرق العيش',450,0,'tamweenda3mstatus.php'),
(458,'نسب الخصومات على الÙواتير',31,0,'sellbillController.php?do=discountcontrol'),
(459,'تقرير سيريلات لم تباع',67,0,'buyBillreportController.php?do=notSoldSerials'),
(460,'تقرير تصنيÙات المصروÙات',49,0,'expensesReportController.php?do=showByType'),
(461,'البلاي ستيشن',293,0,'restaurantplaystation.php'),
(462,'حجز البلاي ستيشن',293,0,'restaurantplaystationpaly.php'),
(463,'تقرير نسبة المناديب على التحصيلات',67,0,'clientPayedDeptController.php?do=mandobreport'),
(464,'باقات البلاي ستيشن',293,0,'playStationCardController.php'),
(465,'معالجة حساب بنكى',54,0,'bankAccountDeficitController.php'),
(466,'تقرير مشروعات مÙصل',173,0,'projectreportControllerdetail.php'),
(467,'تقرير صرÙ مواد ومرتجع مواد',173,0,'projectreportControllerdetail2.php'),
(468,'احصائيات',0,0,''),
(469,'احصائيات *',468,0,'chartserp.php'),
(470,'احصائيات عميل',468,0,'chartserp.php?do=chartsclients'),
(471,'احصائيات المنتجات',468,0,'chartserp.php?do=chartsproducts'),
(472,'احصائيات المبيعات',468,0,'chartserp.php?do=chartssellbill'),
(473,'احصائيات التصنيÙات',468,0,'chartserp.php?do=chartscategories'),
(474,'ادارة الاستلام',47,0,'billreceiptController.php'),
(475,'ادارة الÙحص',47,0,'checkReportController.php?do=all'),
(476,'ادارة الصيانة الخارجية',47,0,'externalMaintenanceGoReport.php?do=all'),
(477,'خواص المراحل',47,0,'stagepropertyController.php'),
(478,'ايصال استلام',47,0,'receiptController.php'),
(479,'ادارة التسليم',47,0,'deleveryReportController.php?do=all'),
(480,'الارشيÙ',47,0,'maintennanceArchiveController.php?do=all'),
(481,'انواع معالجة حساب بنكى',54,0,'bankAccountDeficitKindController.php'),
(482,'تقرير مخزون',67,0,'stockReportsController.php'),
(483,'تقرير عميل و مورد',67,0,'reportClientAndSupplier.php'),
(484,'التحويل بين الشركاء',9,0,'partnerTransferBetweenController.php'),
(485,'انواع معالجه عجز',50,0,'settlementKindSaveController.php'),
(486,'تقرير الاقساط مجمع',14,0,'premiumReportNewController.php'),
(487,'يومية البلاى ستيشن',293,0,'restaurantplaystation.php?do=dayReport'),
(488,'انواع المشروعات',173,0,'projectKindController.php'),
(489,'تصنيÙات المطاعم',293,0,'cateResturantController.php'),
(490,'السداد على Ùاتورة بيع للعميل',14,1,'clientPayedDeptSellBillsController.php'),
(491,'نظام المتدربين',0,0,'نظام المتدربين'),
(492,'المتدربين',491,0,'studentController.php'),
(493,'تخصصات المتدربين',491,0,'studentSubjectsController.php'),
(494,'اضاÙة المتدربين للتخصصات',491,0,'studentsAddSubject.php'),
(495,'حضور المتدربين',491,0,'studentAbsence.php'),
(496,'الاختبارات',491,0,'studentsExamsController.php'),
(497,'انظمة الدÙع',491,0,'studentsPaymentSystems.php'),
(498,'الدÙع',491,0,'studentsPay.php'),
(499,'اعدادات النظام',491,0,'studentSettings.php'),
(500,'تقارير النظام',491,0,'studentsReports.php'),
(501,'تقرير المتدربين',491,0,'studentsReportdetails.php?do=students'),
(502,'تقرير تخصصات المتدربين',491,0,'studentsReportdetails.php?do=studentsubjects'),
(503,'تقرير الاختبارات',491,0,'studentsReportdetails.php?do=studentsexams'),
(504,'تقرير الدÙع',491,0,'studentsReportdetails.php?do=studentspays'),
(505,'تقرير الحضور',491,0,'studentsReportdetails.php?do=studentabsences'),
(506,'تقرير مبيعات السيارات',67,0,'autoSalesReport.php'),
(507,'العملات',1,0,'currencyController.php'),
(508,'قائمة الدخل',67,0,'incomelist.php'),
(509,'التحويل بين البنوك',54,0,'transferBtweenBankAccounts.php'),
(510,'اوامر الشراء',31,0,'buyBillController.php?do=showoffers'),
(511,'نظام الصيانه',0,1,'نظام الصيانه'),
(512,'العملاء',511,0,'maintenanceclients.php'),
(513,'الموردين',511,0,'maintenancesuppliers.php'),
(514,'المنتجات.',511,0,'maintenanceproducts.php'),
(515,'الضمانات',511,0,'maintenances.php'),
(516,'ارسال الضمانات',511,0,'maintenancesends.php'),
(517,'استلام الضمانات',511,0,'maintenancereceipts.php'),
(518,'التسليم للعميل',511,0,'maintenancedeliverys.php'),
(519,'تقرير اجمالى العمليات عن مده',67,0,'operationstotalreport.php'),
(520,'تقرير مديونية Ùواتير العملاء بالمناطق',67,0,'reportprovinces.php'),
(521,'تقرير عرض استهلاك معين لطلب النواقص',67,0,'salesreport.php?do=consumption'),
(522,'شرح البسيط',1,1,'youtubeController.php'),
(523,'تقرير الموردين بالنوع',361,0,'typesupplierReportController.php'),
(524,'تقرير الموظÙين اليومي',201,0,'employeedailyreport.php'),
(525,'تقرير الغائبين',201,0,'absentReportController.php'),
(526,'اظهار المنتج بالاسم',41,0,'productbycodename.php'),
(527,'قائمة الدخل',150,1,'profitandlossreport.php?do=incomeList'),
(528,'الÙواتير المحÙوظة',31,1,'billTemplateController.php'),
(529,'الÙواتير الالكترونيه',37,1,'electronicinvoice.php'),
(530,'الحد الادنى للمنتجات Ùى المخازن',63,0,'productstore.php'),
(531,'اعادة جرد تاريخ الصلاحية',381,0,'inventoryexpirationController.php'),
(532,'العطلات',96,0,'employeeHolidays.php'),
(533,'علامة مرتبطه',14,0,'associatedtag.php'),
(534,'نظام المهام',1,1,''),
(535,'إعدادات المهام',534,1,'tasksSettings.php'),
(536,'انواع المهام',534,1,'taskstypes.php'),
(537,'المهمات',534,1,'tasksController.php'),
(538,'عمليات الÙواتير',31,1,'billoperationsControl.php'),
(539,'مشاريع خارجيه',0,1,'مشاريع خارجيه'),
(540,'اضاÙة منÙذين للمشروع',539,0,'executors.php'),
(541,'تقرير ارباح Ùواتير',539,0,'executorsreport.php'),
(542,'تقرير المنÙذين',539,0,'executorsuserreport.php'),
(543,'مركز تدريب',0,1,'مركز تدريب'),
(544,'دورة تدريبية',543,0,'trainingcourse.php'),
(545,'اضاÙة متدرب للدوره',543,0,'addtraineecourse.php'),
(546,'تقرير الدورة التدريبية',543,0,'coursereport.php'),
(547,'تقرير اعادة مدة الطلب',67,0,'orderperiodreport.php'),
(548,'تصنيع مبسط',307,0,'productionOutController.php'),
(549,'نظام العقارات والوحدات',0,1,'نظام العقارات والوحدات'),
(550,'العقارات والوحدات',549,0,'realestateunits.php'),
(551,'الصيانة ',549,0,'expensesController.php'),
(552,'الايجارات من الملاك',549,0,'realestateunitsowners.php'),
(553,'تأجير الوحدات للمستأجرين',549,0,'realestateunitsrenters.php'),
(554,'تنبيهات العقارات والوحدات',549,0,'realestateunitsalertsrents.php'),
(555,'تنبيهات القطع الÙارغه',549,0,'realestateunitsalertsemptys.php'),
(556,'تقرير العقارات والوحدات',549,0,'realestateunitsreports.php'),
(557,'الدÙعات والتحصيلات المتاخره',549,0,'realestatepayments.php'),
(558,'تقرير متوسط ​​الايرادات',549,0,'realestateaveragerevenue.php'),
(559,'نوع السياره',41,0,'vehicletype.php'),
(560,'الشركه المنتجه للصنÙ',41,0,'companyproduces.php'),
(561,'القيد الاÙتتاحى',150,0,'dailyentry.php?do=openingentry'),
(562,'تقرير عملاء و مصروÙات',67,0,'clientsexpensereport.php'),
(563,'تصنيع خارجى',307,0,'productionOutManyController.php'),
(564,'تقرير تصنيÙات مبيعات ومردود',293,0,'salesreturnsratingsreport.php'),
(565,'ميزان المراجعة الشهرى',150,0,'monthlytrialbalance.php'),
(566,'تقرير مشتريات بدون مقابل',67,0,'freebuys.php'),
(567,'تسكين المخازن',63,0,'storeHousingController.php'),
(568,'طلب مرتجع بضاعه',63,0,'mechandiseReturnRequest.php'),
(569,'مطابقة حساب العميل',166,0,'customerAccountMatching.php'),
(570,'مدينون الشجرة (حسابات مÙتوحة)',150,1,'supplierControllerOpen.php'),
(571,'موظÙ او طبيب',150,1,'employeedoctorController.php'),
(572,'التحويل من حساب عميل إلى عميل آخر',14,1,'transferclientccountsController.php'),
(573,'الارصدة الاÙتتاحية',150,1,'dailyentry.php?do=openingbalance'),
(574,'طرق المعرÙة',1,1,'knownWaysController.php'),
(575,'تقرير طرق المعرÙة',393,1,'knownwaysreportController.php'),
(576,'سداد ديون مورد مجمع من اكسل',19,1,'supplierPayedDeptController.php?do=addexcel'),
(577,'تحصيلات مجمعة بالاكسل',16,1,'clientPayedDeptController.php?do=addexcel'),
(578,'تقرير Ùواتير مÙصلة لمورد',19,1,'supplierReportsController.php?do=supplierShowforbuyonly'),
(579,'عملاء المشروعات',173,0,'projectclientsController.php'),
(580,'مراحل المشروع',173,0,'projectstagesController.php'),
(581,'بيانات مراحل المشروع',173,0,'projectstagesdataController.php'),
(582,'التقرير اليومى للمشروع',173,0,'projectdailyreportController.php'),
(583,'طلبات الخامات للمشروع',173,0,'projectmaterialController.php'),
(584,'تقرير حساب المشروعات',173,0,'projectsaccountreport.php'),
(585,'تقرير مبيعات من بضاعة مورد',67,1,'supplierSalesReportController.php'),
(586,'تقرير تدÙق النقدية بالخزنة',67,1,'cashSaveFlowController.php'),
(587,'تقرير مبيعات مجمع مخازن او تصنيÙات',67,0,'salesreportcatstore.php'),
(588,'تقÙيل الخزنة',50,1,'saveCloseController.php'),
(589,'تقرير الرحلات',67,1,'tripsReport.php'),
(590,'تقرير الوسطاء',67,1,'tripsReport.php?do=referrers'),
(591,'تقرير إجمالي مبيعات الموردين',67,1,'supplierSalesReportController.php?do=total'),
(592,'حضور موظÙين من ملÙ اكسل',96,1,'EmployeeAttendanceExcelController.php'),
(593,'حضور الموظÙين',96,1,'EmployeeAttendanceController.php'),
(594,'نظام عدد التمرينات',0,1,'trainersSystem.pgp'),
(595,'المدربين',594,0,'trainersController.php'),
(596,'اشتراك المدربين',594,0,'trainersSubscription.php'),
(597,'تقرير المتدربين',594,0,'trainersReports.php'),
(598,' انظمة الدÙع ',594,0,'trainersPaymentSystems.php'),
(599,'اعدادات نظام المدربين',594,0,'trainersSettings.php'),
(600,'تقرير ترتيب الموردين بصاÙي المشتريات',361,0,'orderSuppliersWithBuy.php'),
(601,'تقرير مشتريات عميل',67,0,'clientbuysController.php'),
(602,'اغلاق حساب',166,0,'closingAccountController.php'),
(603,'الجمعيات',0,1,'#'),
(604,'الجمعية',603,1,'charityController.php'),
(605,'المستÙيدين',603,1,'beneficiariesController.php'),
(606,'الإعانات',603,1,'subventionController.php'),
(607,'صرÙ إعانة',603,1,'subventionPayController.php'),
(608,'تقرير مراية النقديه و البنوك',67,1,'mirrorReportOnCashAndBanks.php'),
(609,'تصنيÙات اونلاين',41,1,'onlineCatController.php'),
(610,'Ùلاتر البحث',41,1,'searchFiltersController.php'),
(611,'مرتجعات دÙعات على Ùاتورة مردود بيع للعميل',14,0,'clientPayedDeptSellBillsController.php?do=ret'),
(612,'زيارات المندوبين',0,1,'visitsDelegates'),
(613,'الزيارات',612,1,'visitsController.php'),
(614,'تسجيل حضور',612,1,'visitsController.php?do=recordattendance'),
(615,'حالات الزياره',612,1,'visitcases.php'),
(616,'أنواع الخزن',50,0,'saveTypeController.php'),
(617,'تقرير أنواع الخزن',388,0,'saveTypeReportController.php'),
(618,'Ùواتير النقدى الآجل',393,0,'salesreportbills.php?do=laterNakdiPayment'),
(619,'اضاÙة مستÙيدين من ملÙ اكسل',605,1,'beneficiariesController.php?do=addexcel'),
(620,'بحث المستÙيدين',605,1,'beneficiariesController.php?do=search'),
(621,'تقرير تصÙية الخزن',67,1,'saveReportController.php'),
(622,'أنواع المساعدات',603,1,'aidTypeController.php'),
(623,'Ùاتورة شركات الشحن',31,1,'shippingcompanyinvoices.php'),
(624,'تحديث البرنامج',1,1,'versionController.php'),
(625,'Ùواتير النقدى الآجل بيع',393,0,'salesreportbills.php?do=laterNakdiPaymentSell'),
(626,'Ùواتير النقدى الآجل مردود',393,0,'salesreportbills.php?do=laterNakdiPaymentRet'),
(627,'تقرير أعمار الديون',67,1,'debtHistoryReportController.php'),
(628,'تقرير إجماليات الموظÙين',201,1,'employeereport.php?do=totals'),
(629,'التقرير اليومي',67,1,'dailyReportController.php'),
(630,'تقرير ربحية Ùرع',67,0,'branchProfitabilityReport.php'),
(631,'تقرير أعمار ديون الموردين',67,1,'debtHistoryReportController.php?do=supplier'),
(632,'نظام المطالبة',0,0,'نظام المطالبة'),
(633,'المطالبة',632,0,'claimController.php'),
(634,'تحصيل المطالبه',632,0,'claimdebtController.php'),
(635,'تقرير حركة للخزنه مجمع',388,0,'savedailyController.php?do=joined'),
(636,'تحصيل من مورد',19,1,'supplierPayedDeptController.php?do=getmoney'),
(637,'المراكز',603,1,'charityCenterController.php'),
(638,'تقرير المراكز',603,1,'charityCenterController.php?do=report'),
(639,'تقرير نسب البائعين بنوع السعر',31,1,'userratereportController.php?do=showWithPriceTypes'),
(640,'المنجر اون لاين',0,0,''),
(641,'سلايدر',640,1,'slider.php'),
(642,'الصÙحات',640,1,'pages.php'),
(643,'تصنيÙات الاونلاين',640,1,'productCatOnlineController.php'),
(644,'العملاء',640,1,''),
(645,'المنتجات المÙضلة',640,1,'wishList.php'),
(646,'السلة',640,1,'sellbillController.php?do=showoffers'),
(647,'الطلبات',640,1,'sellbillController.php?do=show'),
(648,'استيراد السيارات',0,1,''),
(649,'عقود الاستيراد',648,1,'importContractController.php'),
(650,'تقارير',648,1,''),
(651,'تقرير تحصيلات السيارات',650,1,'carPaymentsReportController.php'),
(652,'البوردينج',640,1,'boarding.php'),
(653,'اعدادات المتجر',640,1,'onlinestoremainsetting.php'),
(654,'الإعلانات',640,1,'ads.php'),
(655,'عرض مرتجعات دÙعات على Ùاتورة مردود بيع للعميل',14,1,'clientPayedDeptSellBillsController.php?do=showret'),
(656,'الملÙات',648,1,'fileController.php'),
(657,'الطابعات',31,1,'billprinters.php');

--
-- Table structure for table `quickprofitclient`
--

CREATE TABLE `quickprofitclient` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `clientId` int(11) NOT NULL,
  `theDate` date NOT NULL,
  `sellVal` decimal(15,2) NOT NULL,
  `sellCostBuyPrice` decimal(15,2) NOT NULL,
  `sellCostLastBuyPrice` decimal(15,2) NOT NULL,
  `sellCostMeanBuyPrice` decimal(15,2) NOT NULL,
  `sellCostLastBuyPricewithDiscount` decimal(15,2) NOT NULL,
  `sellCostMeanBuyPricewithDiscount` decimal(15,2) NOT NULL,
  `sellCostOverAllAveragePrice` decimal(15,2) NOT NULL,
  `returnSellVal` decimal(15,2) NOT NULL,
  `returnSellCostBuyPrice` decimal(15,2) NOT NULL,
  `returnSellCostLastBuyPrice` decimal(15,2) NOT NULL,
  `returnSellCostMeanBuyPrice` decimal(15,2) NOT NULL,
  `returnSellCostLastBuyPricewithDiscount` decimal(15,2) NOT NULL,
  `returnSellCostMeanBuyPricewithDiscount` decimal(15,2) NOT NULL,
  `returnSellCostOverAllAveragePrice` decimal(15,2) NOT NULL,
  `debtLimit` decimal(10,2) NOT NULL DEFAULT 0.00,
  `sellCostLastBuyPricewithTax` decimal(15,2) NOT NULL,
  `sellCostMeanBuyPricewithTax` decimal(15,2) NOT NULL,
  `returnSellCostLastBuyPricewithTax` decimal(15,2) NOT NULL,
  `returnSellCostMeanBuyPricewithTax` decimal(15,2) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `uq_quickprofitclient` (`clientId`,`theDate`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `quickprofitclient`
--


--
-- Table structure for table `quickprofitday`
--

CREATE TABLE `quickprofitday` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `theDate` date NOT NULL,
  `sellVal` decimal(15,2) NOT NULL,
  `sellCostBuyPrice` decimal(15,2) NOT NULL,
  `sellCostLastBuyPrice` decimal(15,2) NOT NULL,
  `sellCostMeanBuyPrice` decimal(15,2) NOT NULL,
  `sellCostLastBuyPricewithDiscount` decimal(15,2) NOT NULL,
  `sellCostMeanBuyPricewithDiscount` decimal(15,2) NOT NULL,
  `sellCostOverAllAveragePrice` decimal(15,2) NOT NULL,
  `returnSellVal` decimal(15,2) NOT NULL,
  `returnSellCostBuyPrice` decimal(15,2) NOT NULL,
  `returnSellCostLastBuyPrice` decimal(15,2) NOT NULL,
  `returnSellCostMeanBuyPrice` decimal(15,2) NOT NULL,
  `returnSellCostLastBuyPricewithDiscount` decimal(15,2) NOT NULL,
  `returnSellCostMeanBuyPricewithDiscount` decimal(15,2) NOT NULL,
  `returnSellCostOverAllAveragePrice` decimal(15,2) NOT NULL,
  `sellCostLastBuyPricewithTax` decimal(15,2) NOT NULL,
  `sellCostMeanBuyPricewithTax` decimal(15,2) NOT NULL,
  `returnSellCostLastBuyPricewithTax` decimal(15,2) NOT NULL,
  `returnSellCostMeanBuyPricewithTax` decimal(15,2) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `theDate` (`theDate`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `quickprofitday`
--


--
-- Table structure for table `quickprofitgeneral`
--

CREATE TABLE `quickprofitgeneral` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `netSellVal` decimal(15,2) NOT NULL,
  `netSellCostBuyPrice` decimal(15,2) NOT NULL,
  `netSellCostLastBuyPrice` decimal(15,2) NOT NULL,
  `netSellCostMeanBuyPrice` decimal(15,2) NOT NULL,
  `netSellCostLastBuyPricewithDiscount` decimal(15,2) NOT NULL,
  `netSellCostMeanBuyPricewithDiscount` decimal(15,2) NOT NULL,
  `netSellCostOverAllAveragePrice` decimal(15,2) NOT NULL,
  `netSellCostLastBuyPricewithTax` decimal(15,2) NOT NULL,
  `netSellCostMeanBuyPricewithTax` decimal(15,2) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `quickprofitgeneral`
--


--
-- Table structure for table `quickprofitproduct`
--

CREATE TABLE `quickprofitproduct` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `productId` int(11) NOT NULL,
  `theDate` date NOT NULL,
  `sellVal` decimal(15,2) NOT NULL,
  `sellCostBuyPrice` decimal(15,2) NOT NULL,
  `sellCostLastBuyPrice` decimal(15,2) NOT NULL,
  `sellCostMeanBuyPrice` decimal(15,2) NOT NULL,
  `sellCostLastBuyPricewithDiscount` decimal(15,2) NOT NULL,
  `sellCostMeanBuyPricewithDiscount` decimal(15,2) NOT NULL,
  `sellCostOverAllAveragePrice` decimal(15,2) NOT NULL,
  `returnSellVal` decimal(15,2) NOT NULL,
  `returnSellCostBuyPrice` decimal(15,2) NOT NULL,
  `returnSellCostLastBuyPrice` decimal(15,2) NOT NULL,
  `returnSellCostMeanBuyPrice` decimal(15,2) NOT NULL,
  `returnSellCostLastBuyPricewithDiscount` decimal(15,2) NOT NULL,
  `returnSellCostMeanBuyPricewithDiscount` decimal(15,2) NOT NULL,
  `returnSellCostOverAllAveragePrice` decimal(15,2) NOT NULL,
  `netQuantity` decimal(10,2) NOT NULL,
  `netQuantityRet` decimal(10,2) NOT NULL,
  `sellCostLastBuyPricewithTax` decimal(15,2) NOT NULL,
  `sellCostMeanBuyPricewithTax` decimal(15,2) NOT NULL,
  `returnSellCostLastBuyPricewithTax` decimal(15,2) NOT NULL,
  `returnSellCostMeanBuyPricewithTax` decimal(15,2) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `uq_quickprofitproduct` (`productId`,`theDate`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `quickprofitproduct`
--


--
-- Table structure for table `quickprofitstore`
--

CREATE TABLE `quickprofitstore` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `storeId` int(11) NOT NULL,
  `theDate` date NOT NULL,
  `sellVal` decimal(15,2) NOT NULL,
  `sellCostBuyPrice` decimal(15,2) NOT NULL,
  `sellCostLastBuyPrice` decimal(15,2) NOT NULL,
  `sellCostMeanBuyPrice` decimal(15,2) NOT NULL,
  `sellCostLastBuyPricewithDiscount` decimal(15,2) NOT NULL,
  `sellCostMeanBuyPricewithDiscount` decimal(15,2) NOT NULL,
  `sellCostOverAllAveragePrice` decimal(15,2) NOT NULL,
  `returnSellVal` decimal(15,2) NOT NULL,
  `returnSellCostBuyPrice` decimal(15,2) NOT NULL,
  `returnSellCostLastBuyPrice` decimal(15,2) NOT NULL,
  `returnSellCostMeanBuyPrice` decimal(15,2) NOT NULL,
  `returnSellCostLastBuyPricewithDiscount` decimal(15,2) NOT NULL,
  `returnSellCostMeanBuyPricewithDiscount` decimal(15,2) NOT NULL,
  `returnSellCostOverAllAveragePrice` decimal(15,2) NOT NULL,
  `sellCostLastBuyPricewithTax` decimal(15,2) NOT NULL,
  `sellCostMeanBuyPricewithTax` decimal(15,2) NOT NULL,
  `returnSellCostLastBuyPricewithTax` decimal(15,2) NOT NULL,
  `returnSellCostMeanBuyPricewithTax` decimal(15,2) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `uq_quickprofitstore` (`storeId`,`theDate`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `quickprofitstore`
--


--
-- Table structure for table `religions`
--

CREATE TABLE `religions` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `religions`
--


--
-- Table structure for table `relusergroupproperties`
--

CREATE TABLE `relusergroupproperties` (
  `relusergrouppropertiesid` int(11) NOT NULL AUTO_INCREMENT,
  `usergroupid` int(11) NOT NULL,
  `propertyid` int(11) NOT NULL,
  `propertyvalue` int(11) NOT NULL DEFAULT 0,
  `theorder` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`relusergrouppropertiesid`),
  UNIQUE KEY `usergroupid_2` (`usergroupid`,`propertyid`),
  KEY `usergroupid` (`usergroupid`,`propertyid`),
  KEY `propertyid` (`propertyid`)
) ENGINE=InnoDB AUTO_INCREMENT=3104 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `relusergroupproperties`
--

INSERT INTO `relusergroupproperties` VALUES
(1,1,1,0,0),
(2,1,2,0,0),
(3,1,3,1,0),
(4,1,4,0,0),
(5,1,5,0,0),
(6,1,6,0,0),
(7,1,7,0,0),
(8,1,8,0,0),
(9,1,9,0,0),
(10,1,10,0,0),
(11,1,11,0,0),
(12,1,12,0,0),
(13,1,13,0,0),
(14,1,14,0,0),
(15,1,15,0,0),
(16,1,16,0,0),
(17,1,17,0,0),
(18,1,18,0,0),
(19,1,19,0,0),
(20,1,23,0,0),
(21,1,24,0,0),
(22,1,25,0,0),
(23,1,26,0,0),
(24,1,27,0,0),
(25,1,28,1,0),
(26,1,29,1,0),
(27,1,30,1,0),
(28,1,31,0,0),
(29,1,32,0,0),
(30,1,33,0,0),
(31,1,34,0,0),
(32,1,35,0,0),
(33,1,36,0,0),
(34,1,37,0,0),
(35,1,38,0,0),
(36,1,39,0,0),
(37,1,40,0,0),
(38,1,41,0,0),
(39,1,42,0,0),
(40,1,43,0,0),
(41,1,44,0,0),
(42,1,45,0,0),
(43,1,46,0,0),
(44,1,47,1,0),
(45,1,48,1,0),
(46,1,49,0,0),
(47,1,50,0,0),
(48,1,51,0,0),
(49,1,52,0,0),
(50,1,53,0,0),
(51,1,54,0,0),
(52,1,55,0,0),
(53,1,56,0,0),
(54,1,57,0,0),
(55,1,58,0,0),
(56,1,59,0,0),
(57,1,60,0,0),
(58,1,61,0,0),
(59,1,62,0,0),
(60,1,63,0,0),
(61,1,64,0,0),
(62,1,65,0,0),
(63,1,66,0,0),
(64,1,67,0,0),
(65,1,68,0,0),
(66,1,69,0,0),
(67,1,70,0,0),
(68,1,71,0,0),
(69,1,72,0,0),
(70,1,73,0,0),
(71,1,75,0,0),
(72,1,76,0,0),
(73,1,77,0,0),
(74,1,78,0,0),
(75,1,79,0,0),
(76,1,80,0,0),
(77,1,81,0,0),
(78,1,82,0,0),
(79,1,83,0,0),
(80,1,84,0,0),
(81,1,85,0,0),
(82,1,87,0,0),
(83,1,89,0,0),
(84,1,90,0,0),
(85,1,91,0,0),
(86,1,92,0,0),
(87,2,1,1,0),
(88,2,2,1,0),
(89,2,3,1,0),
(90,2,4,1,0),
(91,2,5,1,0),
(92,2,6,1,0),
(93,2,7,1,0),
(94,2,8,1,0),
(95,2,9,1,0),
(96,2,10,1,0),
(97,2,11,1,0),
(98,2,12,1,0),
(99,2,13,1,0),
(100,2,14,1,0),
(101,2,15,1,0),
(102,2,16,1,0),
(103,2,17,1,0),
(104,2,18,1,0),
(105,2,19,1,0),
(106,2,23,1,0),
(107,2,24,1,0),
(108,2,25,1,0),
(109,2,26,1,0),
(110,2,27,1,0),
(111,2,28,1,0),
(112,2,29,1,0),
(113,2,30,1,0),
(114,2,31,1,0),
(115,2,32,1,0),
(116,2,33,1,0),
(117,2,34,1,0),
(118,2,35,1,0),
(119,2,36,1,0),
(120,2,37,1,0),
(121,2,38,1,0),
(122,2,39,1,0),
(123,2,40,1,0),
(124,2,41,1,0),
(125,2,42,1,0),
(126,2,43,1,0),
(127,2,44,1,0),
(128,2,45,1,0),
(129,2,46,1,0),
(130,2,47,1,0),
(131,2,48,1,0),
(132,2,49,1,0),
(133,2,50,1,0),
(134,2,51,1,0),
(135,2,52,1,0),
(136,2,53,1,0),
(137,2,54,1,0),
(138,2,55,1,0),
(139,2,56,1,0),
(140,2,57,1,0),
(141,2,58,1,0),
(142,2,59,1,0),
(143,2,60,1,0),
(144,2,61,1,0),
(145,2,62,1,0),
(146,2,63,1,0),
(147,2,64,1,0),
(148,2,65,1,0),
(149,2,66,1,0),
(150,2,67,1,0),
(151,2,68,1,0),
(152,2,69,1,0),
(153,2,70,1,0),
(154,2,71,1,0),
(155,2,72,1,0),
(156,2,73,1,0),
(157,2,75,1,0),
(158,2,76,1,0),
(159,2,77,1,0),
(160,2,78,1,0),
(161,2,79,1,0),
(162,2,80,1,0),
(163,2,81,1,0),
(164,2,82,1,0),
(165,2,83,1,0),
(166,2,84,1,0),
(167,2,85,1,0),
(168,2,87,1,0),
(169,2,89,1,0),
(170,2,90,1,0),
(171,2,91,1,0),
(172,2,92,1,0),
(173,3,1,0,0),
(174,3,2,0,0),
(175,3,3,1,0),
(176,3,4,0,0),
(177,3,5,0,0),
(178,3,6,0,0),
(179,3,7,0,0),
(180,3,8,0,0),
(181,3,9,0,0),
(182,3,10,0,0),
(183,3,11,0,0),
(184,3,12,0,0),
(185,3,13,0,0),
(186,3,14,0,0),
(187,3,15,0,0),
(188,3,16,0,0),
(189,3,17,0,0),
(190,3,18,0,0),
(191,3,19,0,0),
(192,3,23,0,0),
(193,3,24,0,0),
(194,3,25,0,0),
(195,3,26,0,0),
(196,3,27,0,0),
(197,3,28,1,0),
(198,3,29,1,0),
(199,3,30,1,0),
(200,3,31,0,0),
(201,3,32,0,0),
(202,3,33,0,0),
(203,3,34,0,0),
(204,3,35,0,0),
(205,3,36,0,0),
(206,3,37,0,0),
(207,3,38,0,0),
(208,3,39,0,0),
(209,3,40,0,0),
(210,3,41,0,0),
(211,3,42,0,0),
(212,3,43,0,0),
(213,3,44,0,0),
(214,3,45,0,0),
(215,3,46,0,0),
(216,3,47,1,0),
(217,3,48,1,0),
(218,3,49,0,0),
(219,3,50,0,0),
(220,3,51,0,0),
(221,3,52,0,0),
(222,3,53,0,0),
(223,3,54,0,0),
(224,3,55,0,0),
(225,3,56,0,0),
(226,3,57,0,0),
(227,3,58,0,0),
(228,3,59,0,0),
(229,3,60,0,0),
(230,3,61,0,0),
(231,3,62,0,0),
(232,3,63,0,0),
(233,3,64,0,0),
(234,3,65,0,0),
(235,3,66,0,0),
(236,3,67,0,0),
(237,3,68,0,0),
(238,3,69,0,0),
(239,3,70,0,0),
(240,3,71,0,0),
(241,3,72,0,0),
(242,3,73,0,0),
(243,3,75,0,0),
(244,3,76,0,0),
(245,3,77,0,0),
(246,3,78,0,0),
(247,3,79,0,0),
(248,3,80,0,0),
(249,3,81,0,0),
(250,3,82,0,0),
(251,3,83,0,0),
(252,3,84,0,0),
(253,3,85,0,0),
(254,3,87,0,0),
(255,3,89,0,0),
(256,3,90,0,0),
(257,3,91,0,0),
(258,3,92,0,0),
(259,1,93,0,0),
(260,2,93,1,0),
(261,3,93,0,0),
(262,1,94,1,0),
(263,2,94,1,0),
(264,3,94,1,0),
(265,1,95,1,0),
(266,2,95,1,0),
(267,3,95,1,0),
(268,1,96,0,0),
(269,2,96,1,0),
(270,3,96,1,0),
(271,1,97,0,0),
(272,2,97,1,0),
(273,3,97,0,0),
(274,1,98,0,0),
(275,2,98,1,0),
(276,3,98,0,0),
(277,1,99,0,0),
(278,2,99,1,0),
(279,3,99,0,0),
(280,1,100,0,0),
(281,2,100,1,0),
(282,3,100,0,0),
(283,1,104,0,0),
(284,2,104,1,0),
(285,3,104,1,0),
(286,1,105,0,0),
(287,2,105,1,0),
(288,3,105,0,0),
(289,1,106,0,0),
(290,2,106,0,0),
(291,3,106,0,0),
(292,1,107,0,0),
(293,2,107,0,0),
(294,3,107,0,0),
(295,1,109,0,0),
(296,2,109,1,0),
(297,3,109,0,0),
(298,1,110,0,0),
(299,2,110,1,0),
(300,3,110,0,0),
(301,1,111,0,0),
(302,2,111,0,0),
(303,3,111,0,0),
(304,1,112,0,0),
(305,2,112,1,0),
(306,3,112,0,0),
(307,1,113,0,0),
(308,2,113,0,0),
(309,3,113,0,0),
(310,1,114,1,0),
(311,2,114,1,0),
(312,3,114,1,0),
(313,1,115,0,0),
(314,2,115,0,0),
(315,3,115,0,0),
(316,1,116,0,0),
(317,2,116,0,0),
(318,3,116,0,0),
(319,1,117,0,0),
(320,2,117,0,0),
(321,3,117,0,0),
(322,1,118,0,0),
(323,2,118,0,0),
(324,3,118,0,0),
(325,1,119,0,0),
(326,2,119,1,0),
(327,3,119,1,0),
(328,1,120,1,0),
(329,2,120,1,0),
(330,3,120,1,0),
(331,1,121,0,0),
(332,2,121,0,0),
(333,3,121,0,0),
(334,1,122,0,0),
(335,2,122,0,0),
(336,3,122,0,0),
(337,1,123,0,0),
(338,2,123,1,0),
(339,3,123,1,0),
(340,1,124,0,0),
(341,2,124,0,0),
(342,3,124,0,0),
(343,1,125,0,0),
(344,2,125,1,0),
(345,3,125,1,0),
(346,1,126,1,0),
(347,2,126,1,0),
(348,3,126,1,0),
(349,1,127,1,0),
(350,2,127,1,0),
(351,3,127,1,0),
(352,1,128,1,0),
(353,2,128,1,0),
(354,3,128,1,0),
(355,1,129,1,0),
(356,2,129,1,0),
(357,3,129,1,0),
(358,1,130,1,0),
(359,2,130,1,0),
(360,3,130,1,0),
(361,1,131,1,0),
(362,2,131,1,0),
(363,3,131,1,0),
(364,1,133,0,0),
(365,2,133,1,0),
(366,3,133,1,0),
(367,1,134,0,0),
(368,2,134,1,0),
(369,3,134,1,0),
(370,1,135,0,0),
(371,2,135,1,0),
(372,3,135,1,0),
(373,1,136,0,0),
(374,2,136,1,0),
(375,3,136,1,0),
(376,1,137,0,0),
(377,2,137,1,0),
(378,3,137,1,0),
(379,1,138,0,0),
(380,2,138,1,0),
(381,3,138,1,0),
(382,1,139,0,0),
(383,2,139,1,0),
(384,3,139,1,0),
(385,1,140,0,0),
(386,2,140,1,0),
(387,3,140,1,0),
(388,1,141,0,0),
(389,2,141,1,0),
(390,3,141,1,0),
(391,1,142,0,0),
(392,2,142,1,0),
(393,3,142,1,0),
(394,1,143,0,0),
(395,2,143,1,0),
(396,3,143,1,0),
(397,1,144,0,0),
(398,2,144,1,0),
(399,3,144,1,0),
(400,1,145,0,0),
(401,2,145,1,0),
(402,3,145,1,0),
(403,1,146,0,0),
(404,2,146,1,0),
(405,3,146,1,0),
(406,1,147,0,0),
(407,2,147,1,0),
(408,3,147,1,0),
(409,1,148,0,0),
(410,2,148,1,0),
(411,3,148,1,0),
(412,1,149,0,0),
(413,2,149,1,0),
(414,3,149,1,0),
(415,1,150,0,0),
(416,2,150,1,0),
(417,3,150,1,0),
(418,1,151,0,0),
(419,2,151,1,0),
(420,3,151,1,0),
(421,1,152,0,0),
(422,2,152,1,0),
(423,3,152,1,0),
(424,1,153,0,0),
(425,2,153,1,0),
(426,3,153,1,0),
(427,1,154,0,0),
(428,2,154,1,0),
(429,3,154,1,0),
(430,1,155,0,0),
(431,2,155,1,0),
(432,3,155,1,0),
(433,1,156,0,0),
(434,2,156,1,0),
(435,3,156,1,0),
(436,1,157,0,0),
(437,2,157,1,0),
(438,3,157,1,0),
(439,1,158,0,0),
(440,2,158,1,0),
(441,3,158,1,0),
(442,1,159,0,0),
(443,2,159,1,0),
(444,3,159,1,0),
(445,1,160,1,0),
(446,2,160,1,0),
(447,3,160,1,0),
(448,1,161,1,0),
(449,2,161,1,0),
(450,3,161,1,0),
(451,1,162,1,0),
(452,2,162,1,0),
(453,3,162,1,0),
(454,1,163,1,0),
(455,2,163,1,0),
(456,3,163,1,0),
(457,1,164,1,0),
(458,2,164,1,0),
(459,3,164,1,0),
(460,1,165,1,0),
(461,2,165,1,0),
(462,3,165,1,0),
(463,1,166,1,0),
(464,2,166,1,0),
(465,3,166,1,0),
(466,1,167,0,0),
(467,2,167,0,0),
(468,3,167,0,0),
(469,1,168,0,0),
(470,2,168,0,0),
(471,3,168,0,0),
(472,1,169,0,0),
(473,2,169,0,0),
(474,3,169,0,0),
(475,1,170,0,0),
(476,2,170,0,0),
(477,3,170,0,0),
(478,1,171,0,0),
(479,2,171,0,0),
(480,3,171,0,0),
(481,1,172,0,0),
(482,2,172,0,0),
(483,3,172,0,0),
(484,1,173,1,0),
(485,2,173,1,0),
(486,3,173,1,0),
(487,1,174,1,0),
(488,2,174,1,0),
(489,3,174,1,0),
(490,1,175,1,0),
(491,2,175,1,0),
(492,3,175,1,0),
(493,1,176,1,0),
(494,2,176,1,0),
(495,3,176,1,0),
(496,1,177,1,0),
(497,2,177,1,0),
(498,3,177,1,0),
(499,1,178,1,0),
(500,2,178,1,0),
(501,3,178,1,0),
(502,1,179,1,0),
(503,2,179,1,0),
(504,3,179,1,0),
(505,1,180,1,0),
(506,2,180,1,0),
(507,3,180,1,0),
(508,1,181,1,0),
(509,2,181,1,0),
(510,3,181,1,0),
(511,1,182,1,0),
(512,2,182,1,0),
(513,3,182,1,0),
(514,1,183,1,0),
(515,2,183,1,0),
(516,3,183,1,0),
(517,1,184,0,0),
(518,2,184,0,0),
(519,3,184,0,0),
(520,1,185,0,0),
(521,2,185,0,0),
(522,3,185,0,0),
(523,1,186,0,0),
(524,2,186,0,0),
(525,3,186,0,0),
(526,1,187,1,0),
(527,2,187,1,0),
(528,3,187,1,0),
(529,1,188,1,0),
(530,2,188,1,0),
(531,3,188,1,0),
(532,1,189,1,0),
(533,2,189,1,0),
(534,3,189,1,0),
(535,1,190,1,0),
(536,2,190,1,0),
(537,3,190,1,0),
(538,1,191,1,0),
(539,2,191,1,0),
(540,3,191,1,0),
(541,1,192,1,0),
(542,2,192,1,0),
(543,3,192,1,0),
(544,1,193,1,0),
(545,2,193,1,0),
(546,3,193,1,0),
(547,1,194,0,0),
(548,2,194,0,0),
(549,3,194,0,0),
(550,1,195,1,0),
(551,2,195,1,0),
(552,3,195,1,0),
(553,1,196,0,0),
(554,2,196,1,0),
(555,3,196,1,0),
(556,1,197,1,0),
(557,2,197,1,0),
(558,3,197,1,0),
(559,1,198,1,0),
(560,2,198,1,0),
(561,3,198,1,0),
(562,1,199,1,0),
(563,2,199,1,0),
(564,3,199,1,0),
(565,1,200,1,0),
(566,2,200,1,0),
(567,3,200,1,0),
(568,1,201,0,0),
(569,2,201,0,0),
(570,3,201,0,0),
(571,1,202,0,0),
(572,2,202,0,0),
(573,3,202,0,0),
(574,1,203,0,0),
(575,2,203,0,0),
(576,3,203,0,0),
(577,1,204,0,0),
(578,2,204,1,0),
(579,3,204,1,0),
(580,1,205,1,0),
(581,2,205,1,0),
(582,3,205,1,0),
(583,1,206,0,0),
(584,2,206,0,0),
(585,3,206,0,0),
(586,1,207,0,0),
(587,2,207,0,0),
(588,3,207,0,0),
(589,1,208,0,0),
(590,2,208,0,0),
(591,3,208,0,0),
(592,1,209,1,0),
(593,2,209,1,0),
(594,3,209,1,0),
(595,1,210,1,0),
(596,2,210,1,0),
(597,3,210,1,0),
(598,1,211,1,0),
(599,2,211,1,0),
(600,3,211,1,0),
(601,1,212,1,0),
(602,2,212,1,0),
(603,3,212,1,0),
(604,1,213,1,0),
(605,2,213,1,0),
(606,3,213,1,0),
(607,1,214,1,0),
(608,2,214,1,0),
(609,3,214,1,0),
(610,1,215,1,0),
(611,2,215,1,0),
(612,3,215,1,0),
(613,1,216,1,0),
(614,2,216,1,0),
(615,3,216,1,0),
(616,1,217,1,0),
(617,2,217,1,0),
(618,3,217,1,0),
(619,1,218,1,0),
(620,2,218,1,0),
(621,3,218,1,0),
(622,1,219,1,0),
(623,2,219,1,0),
(624,3,219,1,0),
(625,1,220,1,0),
(626,2,220,1,0),
(627,3,220,1,0),
(628,1,221,1,0),
(629,2,221,1,0),
(630,3,221,1,0),
(631,1,223,1,0),
(632,2,223,1,0),
(633,3,223,1,0),
(634,1,224,0,0),
(635,2,224,1,0),
(636,3,224,1,0),
(637,1,227,1,0),
(638,2,227,1,0),
(639,3,227,1,0),
(640,1,228,1,0),
(641,2,228,1,0),
(642,3,228,1,0),
(643,1,231,1,0),
(644,2,231,1,0),
(645,3,231,1,0),
(646,1,232,0,0),
(647,2,232,1,0),
(648,3,232,1,0),
(649,1,233,0,0),
(650,2,233,1,0),
(651,3,233,1,0),
(652,1,234,1,0),
(653,2,234,1,0),
(654,3,234,1,0),
(655,1,235,0,0),
(656,2,235,1,0),
(657,3,235,1,0),
(658,1,243,0,0),
(659,2,243,0,0),
(660,3,243,0,0),
(661,1,244,1,0),
(662,2,244,1,0),
(663,3,244,1,0),
(664,1,249,0,0),
(665,2,249,1,0),
(666,3,249,1,0),
(667,1,250,0,0),
(668,2,250,1,0),
(669,3,250,1,0),
(670,1,74,0,0),
(671,2,74,1,0),
(672,3,74,1,0),
(673,1,252,0,0),
(674,2,252,1,0),
(675,3,252,1,0),
(676,1,253,0,0),
(677,2,253,1,0),
(678,3,253,1,0),
(679,1,254,0,0),
(680,2,254,1,0),
(681,3,254,1,0),
(682,1,255,0,0),
(683,2,255,1,0),
(684,3,255,1,0),
(685,1,256,0,0),
(686,2,256,1,0),
(687,3,256,1,0),
(688,1,257,0,0),
(689,2,257,1,0),
(690,3,257,1,0),
(691,1,258,0,0),
(692,2,258,1,0),
(693,3,258,1,0),
(694,1,259,0,0),
(695,2,259,1,0),
(696,3,259,1,0),
(697,1,260,0,0),
(698,2,260,1,0),
(699,3,260,1,0),
(700,1,261,0,0),
(701,2,261,1,0),
(702,3,261,1,0),
(703,1,262,0,0),
(704,2,262,1,0),
(705,3,262,1,0),
(706,1,263,0,0),
(707,2,263,1,0),
(708,3,263,1,0),
(709,1,264,1,0),
(710,2,264,1,0),
(711,3,264,1,0),
(712,1,265,0,0),
(713,2,265,1,0),
(714,3,265,1,0),
(715,1,266,1,0),
(716,2,266,1,0),
(717,3,266,1,0),
(718,1,267,1,0),
(719,2,267,1,0),
(720,3,267,1,0),
(721,1,268,0,0),
(722,2,268,1,0),
(723,3,268,1,0),
(724,1,269,0,0),
(725,2,269,1,0),
(726,3,269,1,0),
(727,1,270,0,0),
(728,2,270,1,0),
(729,3,270,1,0),
(730,1,274,0,0),
(731,1,275,0,0),
(732,1,278,0,0),
(733,1,279,0,0),
(734,1,280,0,0),
(735,1,281,0,0),
(736,1,282,0,0),
(737,1,283,0,0),
(738,1,284,0,0),
(739,1,285,0,0),
(740,1,286,0,0),
(741,1,287,0,0),
(742,1,288,0,0),
(743,1,289,0,0),
(744,1,290,0,0),
(745,1,291,0,0),
(746,1,292,0,0),
(747,1,293,1,0),
(748,1,294,1,0),
(749,1,295,1,0),
(750,1,296,1,0),
(751,1,297,0,0),
(752,1,298,0,0),
(753,1,299,1,0),
(754,1,300,0,0),
(755,1,301,0,0),
(756,2,274,0,0),
(757,2,275,0,0),
(758,2,278,0,0),
(759,2,279,0,0),
(760,2,280,0,0),
(761,2,281,0,0),
(762,2,282,0,0),
(763,2,283,0,0),
(764,2,284,0,0),
(765,2,285,0,0),
(766,2,286,0,0),
(767,2,287,0,0),
(768,2,288,0,0),
(769,2,289,0,0),
(770,2,290,0,0),
(771,2,291,0,0),
(772,2,292,0,0),
(773,2,293,1,0),
(774,2,294,1,0),
(775,2,295,1,0),
(776,2,296,1,0),
(777,2,297,0,0),
(778,2,298,0,0),
(779,2,299,1,0),
(780,2,300,0,0),
(781,2,301,0,0),
(782,3,274,0,0),
(783,3,275,0,0),
(784,3,278,0,0),
(785,3,279,0,0),
(786,3,280,0,0),
(787,3,281,0,0),
(788,3,282,0,0),
(789,3,283,0,0),
(790,3,284,0,0),
(791,3,285,0,0),
(792,3,286,0,0),
(793,3,287,0,0),
(794,3,288,0,0),
(795,3,289,0,0),
(796,3,290,0,0),
(797,3,291,0,0),
(798,3,292,0,0),
(799,3,293,1,0),
(800,3,294,1,0),
(801,3,295,1,0),
(802,3,296,1,0),
(803,3,297,0,0),
(804,3,298,0,0),
(805,3,299,1,0),
(806,3,300,0,0),
(807,3,301,0,0),
(808,1,302,0,0),
(809,2,302,0,0),
(810,3,302,0,0),
(811,1,303,1,0),
(812,1,304,1,0),
(813,1,305,0,0),
(814,1,307,0,0),
(815,1,308,0,0),
(816,1,309,0,0),
(817,1,310,0,0),
(818,1,311,0,0),
(819,1,312,1,0),
(820,1,313,1,0),
(821,1,314,0,0),
(822,1,315,0,0),
(823,1,316,0,0),
(824,1,317,1,0),
(825,1,318,1,0),
(826,1,319,1,0),
(827,1,320,1,0),
(828,1,321,1,0),
(829,1,322,1,0),
(830,1,323,1,0),
(831,1,324,1,0),
(832,1,325,1,0),
(833,1,326,0,0),
(834,1,327,0,0),
(835,1,328,0,0),
(836,1,329,0,0),
(837,1,330,0,0),
(838,1,331,0,0),
(839,1,332,0,0),
(840,1,333,0,0),
(841,1,334,0,0),
(842,1,335,0,0),
(843,1,336,0,0),
(844,1,337,0,0),
(845,1,338,0,0),
(846,1,339,0,0),
(847,1,340,0,0),
(848,1,341,0,0),
(849,1,342,0,0),
(850,1,343,0,0),
(851,1,344,0,0),
(852,1,345,0,0),
(853,1,346,0,0),
(854,1,347,0,0),
(855,1,348,0,0),
(856,1,349,0,0),
(857,1,350,0,0),
(858,1,351,0,0),
(859,1,352,0,0),
(860,1,353,0,0),
(861,1,354,0,0),
(862,1,355,0,0),
(863,1,356,0,0),
(864,1,357,0,0),
(865,1,358,0,0),
(866,1,359,0,0),
(867,1,360,0,0),
(868,1,361,0,0),
(869,1,362,0,0),
(870,1,363,0,0),
(871,1,364,0,0),
(872,1,365,0,0),
(873,1,366,0,0),
(874,1,367,0,0),
(875,1,368,0,0),
(876,1,369,0,0),
(877,1,370,0,0),
(878,1,371,0,0),
(879,1,372,0,0),
(880,1,373,0,0),
(881,1,374,0,0),
(882,1,375,0,0),
(883,1,376,0,0),
(884,1,377,0,0),
(885,1,378,0,0),
(886,1,379,0,0),
(887,1,380,0,0),
(888,1,381,0,0),
(889,1,382,0,0),
(890,1,383,0,0),
(891,1,384,0,0),
(892,1,385,0,0),
(893,1,386,0,0),
(894,1,387,0,0),
(895,1,388,0,0),
(896,1,389,0,0),
(897,1,390,0,0),
(898,1,391,0,0),
(899,1,392,0,0),
(900,1,393,0,0),
(901,1,394,0,0),
(902,1,395,0,0),
(903,1,396,0,0),
(904,1,397,0,0),
(905,1,398,0,0),
(906,1,399,0,0),
(907,1,400,0,0),
(908,1,401,1,0),
(909,1,402,1,0),
(910,1,403,1,0),
(911,1,404,0,0),
(912,1,405,1,0),
(913,1,406,1,0),
(914,1,407,1,0),
(915,1,408,1,0),
(916,1,409,1,0),
(917,1,410,1,0),
(918,1,411,1,0),
(919,1,412,0,0),
(920,1,413,0,0),
(921,1,414,0,0),
(922,1,417,0,0),
(923,1,418,0,0),
(924,1,419,0,0),
(925,1,420,0,0),
(926,2,303,1,0),
(927,2,304,1,0),
(928,2,305,0,0),
(929,2,307,1,0),
(930,2,308,1,0),
(931,2,309,1,0),
(932,2,310,1,0),
(933,2,311,1,0),
(934,2,312,1,0),
(935,2,313,1,0),
(936,2,314,1,0),
(937,2,315,1,0),
(938,2,316,0,0),
(939,2,317,1,0),
(940,2,318,1,0),
(941,2,319,1,0),
(942,2,320,1,0),
(943,2,321,1,0),
(944,2,322,1,0),
(945,2,323,1,0),
(946,2,324,1,0),
(947,2,325,1,0),
(948,2,326,0,0),
(949,2,327,0,0),
(950,2,328,0,0),
(951,2,329,0,0),
(952,2,330,0,0),
(953,2,331,0,0),
(954,2,332,0,0),
(955,2,333,0,0),
(956,2,334,0,0),
(957,2,335,0,0),
(958,2,336,0,0),
(959,2,337,0,0),
(960,2,338,0,0),
(961,2,339,0,0),
(962,2,340,0,0),
(963,2,341,0,0),
(964,2,342,0,0),
(965,2,343,0,0),
(966,2,344,0,0),
(967,2,345,0,0),
(968,2,346,0,0),
(969,2,347,0,0),
(970,2,348,0,0),
(971,2,349,0,0),
(972,2,350,0,0),
(973,2,351,0,0),
(974,2,352,0,0),
(975,2,353,0,0),
(976,2,354,0,0),
(977,2,355,0,0),
(978,2,356,0,0),
(979,2,357,0,0),
(980,2,358,0,0),
(981,2,359,0,0),
(982,2,360,0,0),
(983,2,361,0,0),
(984,2,362,0,0),
(985,2,363,0,0),
(986,2,364,0,0),
(987,2,365,0,0),
(988,2,366,0,0),
(989,2,367,0,0),
(990,2,368,0,0),
(991,2,369,0,0),
(992,2,370,0,0),
(993,2,371,0,0),
(994,2,372,0,0),
(995,2,373,0,0),
(996,2,374,0,0),
(997,2,375,0,0),
(998,2,376,0,0),
(999,2,377,0,0),
(1000,2,378,0,0),
(1001,2,379,0,0),
(1002,2,380,0,0),
(1003,2,381,0,0),
(1004,2,382,0,0),
(1005,2,383,0,0),
(1006,2,384,0,0),
(1007,2,385,0,0),
(1008,2,386,0,0),
(1009,2,387,0,0),
(1010,2,388,0,0),
(1011,2,389,0,0),
(1012,2,390,0,0),
(1013,2,391,0,0),
(1014,2,392,0,0),
(1015,2,393,0,0),
(1016,2,394,0,0),
(1017,2,395,0,0),
(1018,2,396,0,0),
(1019,2,397,0,0),
(1020,2,398,0,0),
(1021,2,399,0,0),
(1022,2,400,0,0),
(1023,2,401,0,0),
(1024,2,402,1,0),
(1025,2,403,1,0),
(1026,2,404,0,0),
(1027,2,405,1,0),
(1028,2,406,1,0),
(1029,2,407,1,0),
(1030,2,408,1,0),
(1031,2,409,1,0),
(1032,2,410,1,0),
(1033,2,411,1,0),
(1034,2,412,0,0),
(1035,2,413,0,0),
(1036,2,414,0,0),
(1037,2,417,0,0),
(1038,2,418,0,0),
(1039,2,419,0,0),
(1040,2,420,0,0),
(1041,3,303,1,0),
(1042,3,304,1,0),
(1043,3,305,0,0),
(1044,3,307,1,0),
(1045,3,308,1,0),
(1046,3,309,1,0),
(1047,3,310,1,0),
(1048,3,311,1,0),
(1049,3,312,1,0),
(1050,3,313,1,0),
(1051,3,314,1,0),
(1052,3,315,1,0),
(1053,3,316,0,0),
(1054,3,317,1,0),
(1055,3,318,1,0),
(1056,3,319,1,0),
(1057,3,320,1,0),
(1058,3,321,1,0),
(1059,3,322,1,0),
(1060,3,323,1,0),
(1061,3,324,1,0),
(1062,3,325,1,0),
(1063,3,326,0,0),
(1064,3,327,0,0),
(1065,3,328,0,0),
(1066,3,329,0,0),
(1067,3,330,0,0),
(1068,3,331,0,0),
(1069,3,332,0,0),
(1070,3,333,0,0),
(1071,3,334,0,0),
(1072,3,335,0,0),
(1073,3,336,0,0),
(1074,3,337,0,0),
(1075,3,338,0,0),
(1076,3,339,0,0),
(1077,3,340,0,0),
(1078,3,341,0,0),
(1079,3,342,0,0),
(1080,3,343,0,0),
(1081,3,344,0,0),
(1082,3,345,0,0),
(1083,3,346,0,0),
(1084,3,347,0,0),
(1085,3,348,0,0),
(1086,3,349,0,0),
(1087,3,350,0,0),
(1088,3,351,0,0),
(1089,3,352,0,0),
(1090,3,353,0,0),
(1091,3,354,0,0),
(1092,3,355,0,0),
(1093,3,356,0,0),
(1094,3,357,0,0),
(1095,3,358,0,0),
(1096,3,359,0,0),
(1097,3,360,0,0),
(1098,3,361,0,0),
(1099,3,362,0,0),
(1100,3,363,0,0),
(1101,3,364,0,0),
(1102,3,365,0,0),
(1103,3,366,0,0),
(1104,3,367,0,0),
(1105,3,368,0,0),
(1106,3,369,0,0),
(1107,3,370,0,0),
(1108,3,371,0,0),
(1109,3,372,0,0),
(1110,3,373,0,0),
(1111,3,374,0,0),
(1112,3,375,0,0),
(1113,3,376,0,0),
(1114,3,377,0,0),
(1115,3,378,0,0),
(1116,3,379,0,0),
(1117,3,380,0,0),
(1118,3,381,0,0),
(1119,3,382,0,0),
(1120,3,383,0,0),
(1121,3,384,0,0),
(1122,3,385,0,0),
(1123,3,386,0,0),
(1124,3,387,0,0),
(1125,3,388,0,0),
(1126,3,389,0,0),
(1127,3,390,0,0),
(1128,3,391,0,0),
(1129,3,392,0,0),
(1130,3,393,0,0),
(1131,3,394,0,0),
(1132,3,395,0,0),
(1133,3,396,0,0),
(1134,3,397,0,0),
(1135,3,398,0,0),
(1136,3,399,0,0),
(1137,3,400,0,0),
(1138,3,401,0,0),
(1139,3,402,1,0),
(1140,3,403,1,0),
(1141,3,404,0,0),
(1142,3,405,1,0),
(1143,3,406,1,0),
(1144,3,407,1,0),
(1145,3,408,1,0),
(1146,3,409,1,0),
(1147,3,410,1,0),
(1148,3,411,1,0),
(1149,3,412,0,0),
(1150,3,413,0,0),
(1151,3,414,0,0),
(1152,3,417,0,0),
(1153,3,418,0,0),
(1154,3,419,0,0),
(1155,3,420,0,0),
(1156,4,1,1,0),
(1157,4,2,1,0),
(1158,4,3,1,0),
(1159,4,4,1,0),
(1160,4,5,1,0),
(1161,4,6,1,0),
(1162,4,7,1,0),
(1163,4,8,1,0),
(1164,4,9,1,0),
(1165,4,10,1,0),
(1166,4,11,1,0),
(1167,4,12,1,0),
(1168,4,13,1,0),
(1169,4,14,1,0),
(1170,4,15,1,0),
(1171,4,16,1,0),
(1172,4,17,1,0),
(1173,4,18,1,0),
(1174,4,19,1,0),
(1175,4,23,1,0),
(1176,4,24,1,0),
(1177,4,25,1,0),
(1178,4,26,1,0),
(1179,4,27,1,0),
(1180,4,28,1,0),
(1181,4,29,1,0),
(1182,4,30,1,0),
(1183,4,31,1,0),
(1184,4,32,1,0),
(1185,4,33,1,0),
(1186,4,34,1,0),
(1187,4,35,1,0),
(1188,4,36,1,0),
(1189,4,37,1,0),
(1190,4,38,1,0),
(1191,4,39,1,0),
(1192,4,40,1,0),
(1193,4,41,1,0),
(1194,4,42,1,0),
(1195,4,43,1,0),
(1196,4,44,1,0),
(1197,4,45,1,0),
(1198,4,46,1,0),
(1199,4,47,1,0),
(1200,4,48,1,0),
(1201,4,49,1,0),
(1202,4,50,1,0),
(1203,4,51,1,0),
(1204,4,52,1,0),
(1205,4,53,1,0),
(1206,4,54,1,0),
(1207,4,55,1,0),
(1208,4,56,1,0),
(1209,4,57,1,0),
(1210,4,58,1,0),
(1211,4,59,1,0),
(1212,4,60,1,0),
(1213,4,61,1,0),
(1214,4,62,1,0),
(1215,4,63,1,0),
(1216,4,64,1,0),
(1217,4,65,1,0),
(1218,4,66,1,0),
(1219,4,67,1,0),
(1220,4,68,1,0),
(1221,4,69,1,0),
(1222,4,70,1,0),
(1223,4,71,1,0),
(1224,4,72,1,0),
(1225,4,73,1,0),
(1226,4,74,1,0),
(1227,4,75,1,0),
(1228,4,76,1,0),
(1229,4,77,1,0),
(1230,4,78,1,0),
(1231,4,79,1,0),
(1232,4,80,1,0),
(1233,4,82,1,0),
(1234,4,83,1,0),
(1235,4,84,1,0),
(1236,4,85,1,0),
(1237,4,87,1,0),
(1238,4,89,1,0),
(1239,4,90,1,0),
(1240,4,91,1,0),
(1241,4,92,1,0),
(1242,4,93,1,0),
(1243,4,96,1,0),
(1244,4,97,1,0),
(1245,4,98,1,0),
(1246,4,99,1,0),
(1247,4,100,1,0),
(1248,4,105,1,0),
(1249,4,123,1,0),
(1250,4,124,1,0),
(1251,4,125,1,0),
(1252,4,126,1,0),
(1253,4,127,1,0),
(1254,4,128,1,0),
(1255,4,129,1,0),
(1256,4,130,1,0),
(1257,4,131,1,0),
(1258,4,133,1,0),
(1259,4,134,1,0),
(1260,4,135,1,0),
(1261,4,136,1,0),
(1262,4,137,1,0),
(1263,4,138,1,0),
(1264,4,139,1,0),
(1265,4,140,1,0),
(1266,4,141,1,0),
(1267,4,142,1,0),
(1268,4,143,1,0),
(1269,4,144,1,0),
(1270,4,145,1,0),
(1271,4,146,1,0),
(1272,4,147,1,0),
(1273,4,148,1,0),
(1274,4,149,1,0),
(1275,4,150,1,0),
(1276,4,151,1,0),
(1277,4,152,1,0),
(1278,4,153,1,0),
(1279,4,154,1,0),
(1280,4,155,1,0),
(1281,4,156,1,0),
(1282,4,157,1,0),
(1283,4,158,1,0),
(1284,4,159,1,0),
(1285,4,160,1,0),
(1286,4,161,1,0),
(1287,4,162,1,0),
(1288,4,163,1,0),
(1289,4,164,1,0),
(1290,4,165,1,0),
(1291,4,166,1,0),
(1292,4,167,1,0),
(1293,4,168,1,0),
(1294,4,169,1,0),
(1295,4,170,1,0),
(1296,4,171,1,0),
(1297,4,172,1,0),
(1298,4,173,1,0),
(1299,4,174,1,0),
(1300,4,175,1,0),
(1301,4,176,1,0),
(1302,4,177,1,0),
(1303,4,178,1,0),
(1304,4,179,1,0),
(1305,4,180,1,0),
(1306,4,181,1,0),
(1307,4,182,1,0),
(1308,4,183,1,0),
(1309,4,187,1,0),
(1310,4,188,1,0),
(1311,4,189,1,0),
(1312,4,190,1,0),
(1313,4,191,1,0),
(1314,4,192,1,0),
(1315,4,193,1,0),
(1316,4,194,1,0),
(1317,4,195,1,0),
(1318,4,196,1,0),
(1319,4,197,1,0),
(1320,4,198,1,0),
(1321,4,199,1,0),
(1322,4,200,1,0),
(1323,4,201,1,0),
(1324,4,202,1,0),
(1325,4,203,1,0),
(1326,4,205,1,0),
(1327,4,206,1,0),
(1328,4,207,1,0),
(1329,4,208,1,0),
(1330,4,209,1,0),
(1331,4,210,1,0),
(1332,4,211,1,0),
(1333,4,212,1,0),
(1334,4,213,1,0),
(1335,4,214,1,0),
(1336,4,215,1,0),
(1337,4,216,1,0),
(1338,4,217,1,0),
(1339,4,218,1,0),
(1340,4,219,1,0),
(1341,4,220,1,0),
(1342,4,221,1,0),
(1343,4,227,1,0),
(1344,4,228,1,0),
(1345,4,231,1,0),
(1346,4,232,1,0),
(1347,4,233,1,0),
(1348,4,234,1,0),
(1349,4,235,1,0),
(1350,4,243,1,0),
(1351,4,244,1,0),
(1352,4,250,1,0),
(1353,4,252,1,0),
(1354,4,253,1,0),
(1355,4,256,1,0),
(1356,4,257,1,0),
(1357,4,258,1,0),
(1358,4,259,1,0),
(1359,4,260,1,0),
(1360,4,261,1,0),
(1361,4,262,1,0),
(1362,4,263,1,0),
(1363,4,264,1,0),
(1364,4,265,1,0),
(1365,4,266,1,0),
(1366,4,267,1,0),
(1367,4,268,1,0),
(1368,4,269,1,0),
(1369,4,274,1,0),
(1370,4,275,1,0),
(1371,4,278,1,0),
(1372,4,279,1,0),
(1373,4,280,1,0),
(1374,4,281,1,0),
(1375,4,282,1,0),
(1376,4,283,1,0),
(1377,4,284,1,0),
(1378,4,285,1,0),
(1379,4,286,1,0),
(1380,4,287,1,0),
(1381,4,288,1,0),
(1382,4,289,1,0),
(1383,4,290,1,0),
(1384,4,291,1,0),
(1385,4,292,1,0),
(1386,4,293,1,0),
(1387,4,294,1,0),
(1388,4,295,1,0),
(1389,4,296,1,0),
(1390,4,297,1,0),
(1391,4,298,1,0),
(1392,4,299,1,0),
(1393,4,300,1,0),
(1394,4,301,1,0),
(1395,4,302,1,0),
(1396,4,303,1,0),
(1397,4,304,1,0),
(1398,4,305,1,0),
(1399,4,307,1,0),
(1400,4,308,1,0),
(1401,4,309,1,0),
(1402,4,310,1,0),
(1403,4,311,1,0),
(1404,4,312,1,0),
(1405,4,313,1,0),
(1406,4,314,1,0),
(1407,4,315,1,0),
(1408,4,316,1,0),
(1409,4,317,1,0),
(1410,4,318,1,0),
(1411,4,319,1,0),
(1412,4,320,1,0),
(1413,4,321,1,0),
(1414,4,322,1,0),
(1415,4,323,1,0),
(1416,4,324,1,0),
(1417,4,325,1,0),
(1418,4,326,1,0),
(1419,4,327,1,0),
(1420,4,328,1,0),
(1421,4,329,1,0),
(1422,4,330,1,0),
(1423,4,331,1,0),
(1424,4,332,1,0),
(1425,4,333,1,0),
(1426,4,334,1,0),
(1427,4,335,1,0),
(1428,4,336,1,0),
(1429,4,337,1,0),
(1430,4,338,1,0),
(1431,4,339,1,0),
(1432,4,340,1,0),
(1433,4,341,1,0),
(1434,4,342,1,0),
(1435,4,343,1,0),
(1436,4,344,1,0),
(1437,4,345,1,0),
(1438,4,346,1,0),
(1439,4,347,1,0),
(1440,4,348,1,0),
(1441,4,349,1,0),
(1442,4,350,1,0),
(1443,4,351,1,0),
(1444,4,352,1,0),
(1445,4,353,1,0),
(1446,4,354,1,0),
(1447,4,355,1,0),
(1448,4,356,1,0),
(1449,4,357,1,0),
(1450,4,358,1,0),
(1451,4,359,1,0),
(1452,4,360,1,0),
(1453,4,361,1,0),
(1454,4,362,1,0),
(1455,4,363,1,0),
(1456,4,364,1,0),
(1457,4,365,1,0),
(1458,4,366,1,0),
(1459,4,367,1,0),
(1460,4,368,1,0),
(1461,4,369,1,0),
(1462,4,370,1,0),
(1463,4,371,1,0),
(1464,4,372,1,0),
(1465,4,373,1,0),
(1466,4,374,1,0),
(1467,4,375,1,0),
(1468,4,376,1,0),
(1469,4,377,1,0),
(1470,4,378,1,0),
(1471,4,379,1,0),
(1472,4,380,1,0),
(1473,4,381,1,0),
(1474,4,382,1,0),
(1475,4,383,1,0),
(1476,4,384,1,0),
(1477,4,385,1,0),
(1478,4,386,1,0),
(1479,4,387,1,0),
(1480,4,388,1,0),
(1481,4,389,1,0),
(1482,4,390,1,0),
(1483,4,391,1,0),
(1484,4,392,1,0),
(1485,4,393,1,0),
(1486,4,394,1,0),
(1487,4,395,1,0),
(1488,4,396,1,0),
(1489,4,397,1,0),
(1490,4,398,1,0),
(1491,4,399,1,0),
(1492,4,400,1,0),
(1493,4,401,1,0),
(1494,4,402,1,0),
(1495,4,403,1,0),
(1496,4,404,1,0),
(1497,4,405,1,0),
(1498,4,406,1,0),
(1499,4,407,1,0),
(1500,4,408,1,0),
(1501,4,409,1,0),
(1502,4,410,1,0),
(1503,4,411,1,0),
(1504,4,412,1,0),
(1505,4,413,1,0),
(1506,4,414,1,0),
(1507,4,417,1,0),
(1508,4,418,1,0),
(1509,4,419,1,0),
(1510,4,420,1,0),
(1511,1,450,1,0),
(1512,2,450,1,0),
(1513,3,450,1,0),
(1514,4,450,1,0),
(1515,1,421,0,0),
(1516,1,422,0,0),
(1517,1,423,0,0),
(1518,1,424,0,0),
(1519,1,425,0,0),
(1520,1,426,0,0),
(1521,1,427,0,0),
(1522,1,428,0,0),
(1523,1,429,0,0),
(1524,1,430,0,0),
(1525,1,431,0,0),
(1526,1,432,0,0),
(1527,1,433,0,0),
(1528,1,434,0,0),
(1529,1,436,1,0),
(1530,1,437,0,0),
(1531,1,438,0,0),
(1532,1,439,1,0),
(1533,1,440,0,0),
(1534,1,441,0,0),
(1535,1,442,1,0),
(1536,1,443,0,0),
(1537,1,444,0,0),
(1538,1,445,0,0),
(1539,1,446,0,0),
(1540,1,447,0,0),
(1541,1,448,0,0),
(1542,1,449,1,0),
(1543,1,451,0,0),
(1544,1,452,0,0),
(1545,1,453,0,0),
(1546,1,454,0,0),
(1547,1,455,0,0),
(1548,1,456,0,0),
(1549,1,457,0,0),
(1550,1,458,0,0),
(1551,1,459,0,0),
(1552,1,460,0,0),
(1553,1,461,1,0),
(1554,1,462,1,0),
(1555,1,463,0,0),
(1556,2,421,0,0),
(1557,2,422,0,0),
(1558,2,423,0,0),
(1559,2,424,0,0),
(1560,2,425,0,0),
(1561,2,426,0,0),
(1562,2,427,0,0),
(1563,2,428,0,0),
(1564,2,429,0,0),
(1565,2,430,0,0),
(1566,2,431,0,0),
(1567,2,432,0,0),
(1568,2,433,0,0),
(1569,2,434,0,0),
(1570,2,436,0,0),
(1571,2,437,0,0),
(1572,2,438,0,0),
(1573,2,439,0,0),
(1574,2,440,0,0),
(1575,2,441,0,0),
(1576,2,442,0,0),
(1577,2,443,0,0),
(1578,2,444,0,0),
(1579,2,445,0,0),
(1580,2,446,0,0),
(1581,2,447,0,0),
(1582,2,448,0,0),
(1583,2,449,0,0),
(1584,2,451,0,0),
(1585,2,452,0,0),
(1586,2,453,0,0),
(1587,2,454,0,0),
(1588,2,455,0,0),
(1589,2,456,0,0),
(1590,2,457,0,0),
(1591,2,458,0,0),
(1592,2,459,0,0),
(1593,2,460,0,0),
(1594,2,461,1,0),
(1595,2,462,1,0),
(1596,2,463,0,0),
(1597,3,421,0,0),
(1598,3,422,0,0),
(1599,3,423,0,0),
(1600,3,424,0,0),
(1601,3,425,0,0),
(1602,3,426,0,0),
(1603,3,427,0,0),
(1604,3,428,0,0),
(1605,3,429,0,0),
(1606,3,430,0,0),
(1607,3,431,0,0),
(1608,3,432,0,0),
(1609,3,433,0,0),
(1610,3,434,0,0),
(1611,3,436,0,0),
(1612,3,437,0,0),
(1613,3,438,0,0),
(1614,3,439,0,0),
(1615,3,440,0,0),
(1616,3,441,0,0),
(1617,3,442,0,0),
(1618,3,443,0,0),
(1619,3,444,0,0),
(1620,3,445,0,0),
(1621,3,446,0,0),
(1622,3,447,0,0),
(1623,3,448,0,0),
(1624,3,449,0,0),
(1625,3,451,0,0),
(1626,3,452,0,0),
(1627,3,453,0,0),
(1628,3,454,0,0),
(1629,3,455,0,0),
(1630,3,456,0,0),
(1631,3,457,0,0),
(1632,3,458,0,0),
(1633,3,459,0,0),
(1634,3,460,0,0),
(1635,3,461,1,0),
(1636,3,462,1,0),
(1637,3,463,0,0),
(1638,4,421,0,0),
(1639,4,422,0,0),
(1640,4,423,0,0),
(1641,4,424,0,0),
(1642,4,425,0,0),
(1643,4,426,0,0),
(1644,4,427,0,0),
(1645,4,428,0,0),
(1646,4,429,0,0),
(1647,4,430,0,0),
(1648,4,431,0,0),
(1649,4,432,0,0),
(1650,4,433,0,0),
(1651,4,434,0,0),
(1652,4,436,0,0),
(1653,4,437,0,0),
(1654,4,438,0,0),
(1655,4,439,0,0),
(1656,4,440,0,0),
(1657,4,441,0,0),
(1658,4,442,0,0),
(1659,4,443,0,0),
(1660,4,444,0,0),
(1661,4,445,0,0),
(1662,4,446,0,0),
(1663,4,447,0,0),
(1664,4,448,0,0),
(1665,4,449,0,0),
(1666,4,451,0,0),
(1667,4,452,0,0),
(1668,4,453,0,0),
(1669,4,454,0,0),
(1670,4,455,0,0),
(1671,4,456,0,0),
(1672,4,457,0,0),
(1673,4,458,0,0),
(1674,4,459,0,0),
(1675,4,460,0,0),
(1676,4,461,1,0),
(1677,4,462,1,0),
(1678,4,463,0,0),
(1679,-1,1,0,0),
(1680,-1,2,0,0),
(1681,-1,3,0,0),
(1682,-1,4,0,0),
(1683,-1,5,0,0),
(1684,-1,6,0,0),
(1685,-1,7,0,0),
(1686,-1,8,0,0),
(1687,-1,9,0,0),
(1688,-1,10,0,0),
(1689,-1,11,0,0),
(1690,-1,12,0,0),
(1691,-1,13,0,0),
(1692,-1,14,0,0),
(1693,-1,15,0,0),
(1694,-1,16,0,0),
(1695,-1,17,0,0),
(1696,-1,18,0,0),
(1697,-1,19,0,0),
(1698,-1,23,0,0),
(1699,-1,24,0,0),
(1700,-1,25,0,0),
(1701,-1,26,0,0),
(1702,-1,27,0,0),
(1703,-1,28,0,0),
(1704,-1,29,0,0),
(1705,-1,30,0,0),
(1706,-1,31,0,0),
(1707,-1,32,0,0),
(1708,-1,33,0,0),
(1709,-1,34,0,0),
(1710,-1,35,0,0),
(1711,-1,36,0,0),
(1712,-1,37,0,0),
(1713,-1,38,0,0),
(1714,-1,39,0,0),
(1715,-1,40,0,0),
(1716,-1,41,0,0),
(1717,-1,42,0,0),
(1718,-1,43,0,0),
(1719,-1,44,0,0),
(1720,-1,45,0,0),
(1721,-1,46,0,0),
(1722,-1,47,0,0),
(1723,-1,48,0,0),
(1724,-1,49,0,0),
(1725,-1,50,0,0),
(1726,-1,51,0,0),
(1727,-1,52,0,0),
(1728,-1,53,0,0),
(1729,-1,54,0,0),
(1730,-1,55,0,0),
(1731,-1,56,0,0),
(1732,-1,57,0,0),
(1733,-1,58,0,0),
(1734,-1,59,0,0),
(1735,-1,60,0,0),
(1736,-1,61,0,0),
(1737,-1,62,0,0),
(1738,-1,63,0,0),
(1739,-1,64,0,0),
(1740,-1,65,0,0),
(1741,-1,66,0,0),
(1742,-1,67,0,0),
(1743,-1,68,0,0),
(1744,-1,69,0,0),
(1745,-1,70,0,0),
(1746,-1,71,0,0),
(1747,-1,72,0,0),
(1748,-1,73,0,0),
(1749,-1,74,0,0),
(1750,-1,75,0,0),
(1751,-1,76,0,0),
(1752,-1,77,0,0),
(1753,-1,78,0,0),
(1754,-1,79,0,0),
(1755,-1,80,0,0),
(1756,-1,82,0,0),
(1757,-1,83,0,0),
(1758,-1,84,0,0),
(1759,-1,85,0,0),
(1760,-1,87,0,0),
(1761,-1,89,0,0),
(1762,-1,90,0,0),
(1763,-1,91,0,0),
(1764,-1,92,0,0),
(1765,-1,93,0,0),
(1766,-1,96,0,0),
(1767,-1,97,0,0),
(1768,-1,98,0,0),
(1769,-1,99,0,0),
(1770,-1,100,0,0),
(1771,-1,105,0,0),
(1772,-1,123,0,0),
(1773,-1,124,0,0),
(1774,-1,125,0,0),
(1775,-1,126,0,0),
(1776,-1,127,0,0),
(1777,-1,128,0,0),
(1778,-1,129,0,0),
(1779,-1,130,0,0),
(1780,-1,131,0,0),
(1781,-1,133,0,0),
(1782,-1,134,0,0),
(1783,-1,135,0,0),
(1784,-1,136,0,0),
(1785,-1,137,0,0),
(1786,-1,138,0,0),
(1787,-1,139,0,0),
(1788,-1,140,0,0),
(1789,-1,141,0,0),
(1790,-1,142,0,0),
(1791,-1,143,0,0),
(1792,-1,144,0,0),
(1793,-1,145,0,0),
(1794,-1,146,0,0),
(1795,-1,147,0,0),
(1796,-1,148,0,0),
(1797,-1,149,0,0),
(1798,-1,150,0,0),
(1799,-1,151,0,0),
(1800,-1,152,0,0),
(1801,-1,153,0,0),
(1802,-1,154,0,0),
(1803,-1,155,0,0),
(1804,-1,156,0,0),
(1805,-1,157,0,0),
(1806,-1,158,0,0),
(1807,-1,159,0,0),
(1808,-1,160,0,0),
(1809,-1,161,0,0),
(1810,-1,162,0,0),
(1811,-1,163,0,0),
(1812,-1,164,0,0),
(1813,-1,165,0,0),
(1814,-1,166,0,0),
(1815,-1,167,0,0),
(1816,-1,168,0,0),
(1817,-1,169,0,0),
(1818,-1,170,0,0),
(1819,-1,171,0,0),
(1820,-1,172,0,0),
(1821,-1,173,0,0),
(1822,-1,174,0,0),
(1823,-1,175,0,0),
(1824,-1,176,0,0),
(1825,-1,177,0,0),
(1826,-1,178,0,0),
(1827,-1,179,0,0),
(1828,-1,180,0,0),
(1829,-1,181,0,0),
(1830,-1,182,0,0),
(1831,-1,183,0,0),
(1832,-1,187,0,0),
(1833,-1,188,0,0),
(1834,-1,189,0,0),
(1835,-1,190,0,0),
(1836,-1,191,0,0),
(1837,-1,192,0,0),
(1838,-1,193,0,0),
(1839,-1,194,0,0),
(1840,-1,195,0,0),
(1841,-1,196,0,0),
(1842,-1,197,0,0),
(1843,-1,198,0,0),
(1844,-1,199,0,0),
(1845,-1,200,0,0),
(1846,-1,201,0,0),
(1847,-1,202,0,0),
(1848,-1,203,0,0),
(1849,-1,205,0,0),
(1850,-1,206,0,0),
(1851,-1,207,0,0),
(1852,-1,208,0,0),
(1853,-1,209,0,0),
(1854,-1,210,0,0),
(1855,-1,211,0,0),
(1856,-1,212,0,0),
(1857,-1,213,0,0),
(1858,-1,214,0,0),
(1859,-1,215,0,0),
(1860,-1,216,0,0),
(1861,-1,217,0,0),
(1862,-1,218,0,0),
(1863,-1,219,0,0),
(1864,-1,220,0,0),
(1865,-1,221,0,0),
(1866,-1,227,0,0),
(1867,-1,228,0,0),
(1868,-1,231,0,0),
(1869,-1,232,0,0),
(1870,-1,233,0,0),
(1871,-1,234,0,0),
(1872,-1,235,0,0),
(1873,-1,243,0,0),
(1874,-1,244,0,0),
(1875,-1,250,0,0),
(1876,-1,252,0,0),
(1877,-1,253,0,0),
(1878,-1,256,0,0),
(1879,-1,257,0,0),
(1880,-1,258,0,0),
(1881,-1,259,0,0),
(1882,-1,260,0,0),
(1883,-1,261,0,0),
(1884,-1,262,0,0),
(1885,-1,263,0,0),
(1886,-1,264,0,0),
(1887,-1,265,0,0),
(1888,-1,266,0,0),
(1889,-1,267,0,0),
(1890,-1,268,0,0),
(1891,-1,269,0,0),
(1892,-1,274,0,0),
(1893,-1,275,0,0),
(1894,-1,278,0,0),
(1895,-1,279,0,0),
(1896,-1,280,0,0),
(1897,-1,281,0,0),
(1898,-1,282,0,0),
(1899,-1,283,0,0),
(1900,-1,284,0,0),
(1901,-1,285,0,0),
(1902,-1,286,0,0),
(1903,-1,287,0,0),
(1904,-1,288,0,0),
(1905,-1,289,0,0),
(1906,-1,290,0,0),
(1907,-1,291,0,0),
(1908,-1,292,0,0),
(1909,-1,293,0,0),
(1910,-1,294,0,0),
(1911,-1,295,0,0),
(1912,-1,296,0,0),
(1913,-1,297,0,0),
(1914,-1,298,0,0),
(1915,-1,299,0,0),
(1916,-1,300,0,0),
(1917,-1,301,0,0),
(1918,-1,302,0,0),
(1919,-1,303,0,0),
(1920,-1,304,0,0),
(1921,-1,305,0,0),
(1922,-1,307,0,0),
(1923,-1,308,0,0),
(1924,-1,309,0,0),
(1925,-1,310,0,0),
(1926,-1,311,0,0),
(1927,-1,312,0,0),
(1928,-1,313,0,0),
(1929,-1,314,0,0),
(1930,-1,315,0,0),
(1931,-1,316,0,0),
(1932,-1,317,0,0),
(1933,-1,318,0,0),
(1934,-1,319,0,0),
(1935,-1,320,0,0),
(1936,-1,321,0,0),
(1937,-1,322,0,0),
(1938,-1,323,0,0),
(1939,-1,324,0,0),
(1940,-1,325,0,0),
(1941,-1,326,0,0),
(1942,-1,327,0,0),
(1943,-1,328,0,0),
(1944,-1,329,0,0),
(1945,-1,330,0,0),
(1946,-1,331,0,0),
(1947,-1,332,0,0),
(1948,-1,333,0,0),
(1949,-1,334,0,0),
(1950,-1,335,0,0),
(1951,-1,336,0,0),
(1952,-1,337,0,0),
(1953,-1,338,0,0),
(1954,-1,339,0,0),
(1955,-1,340,0,0),
(1956,-1,341,0,0),
(1957,-1,342,0,0),
(1958,-1,343,0,0),
(1959,-1,344,0,0),
(1960,-1,345,0,0),
(1961,-1,346,0,0),
(1962,-1,347,0,0),
(1963,-1,348,0,0),
(1964,-1,349,0,0),
(1965,-1,350,0,0),
(1966,-1,351,0,0),
(1967,-1,352,0,0),
(1968,-1,353,0,0),
(1969,-1,354,0,0),
(1970,-1,355,0,0),
(1971,-1,356,0,0),
(1972,-1,357,0,0),
(1973,-1,358,0,0),
(1974,-1,359,0,0),
(1975,-1,360,0,0),
(1976,-1,361,0,0),
(1977,-1,362,0,0),
(1978,-1,363,0,0),
(1979,-1,364,0,0),
(1980,-1,365,0,0),
(1981,-1,366,0,0),
(1982,-1,367,0,0),
(1983,-1,368,0,0),
(1984,-1,369,0,0),
(1985,-1,370,0,0),
(1986,-1,371,0,0),
(1987,-1,372,0,0),
(1988,-1,373,0,0),
(1989,-1,374,0,0),
(1990,-1,375,0,0),
(1991,-1,376,0,0),
(1992,-1,377,0,0),
(1993,-1,378,0,0),
(1994,-1,379,0,0),
(1995,-1,380,0,0),
(1996,-1,381,0,0),
(1997,-1,382,0,0),
(1998,-1,383,0,0),
(1999,-1,384,0,0),
(2000,-1,385,0,0),
(2001,-1,386,0,0),
(2002,-1,387,0,0),
(2003,-1,388,0,0),
(2004,-1,389,0,0),
(2005,-1,390,0,0),
(2006,-1,391,0,0),
(2007,-1,392,0,0),
(2008,-1,393,0,0),
(2009,-1,394,0,0),
(2010,-1,395,0,0),
(2011,-1,396,0,0),
(2012,-1,397,0,0),
(2013,-1,398,0,0),
(2014,-1,399,0,0),
(2015,-1,400,0,0),
(2016,-1,401,0,0),
(2017,-1,402,0,0),
(2018,-1,403,0,0),
(2019,-1,404,0,0),
(2020,-1,405,0,0),
(2021,-1,406,0,0),
(2022,-1,407,0,0),
(2023,-1,408,0,0),
(2024,-1,409,0,0),
(2025,-1,410,0,0),
(2026,-1,411,0,0),
(2027,-1,412,0,0),
(2028,-1,413,0,0),
(2029,-1,414,0,0),
(2030,-1,417,0,0),
(2031,-1,418,0,0),
(2032,-1,419,0,0),
(2033,-1,420,0,0),
(2034,-1,421,0,0),
(2035,-1,422,0,0),
(2036,-1,423,0,0),
(2037,-1,424,0,0),
(2038,-1,425,0,0),
(2039,-1,426,0,0),
(2040,-1,427,0,0),
(2041,-1,428,0,0),
(2042,-1,429,0,0),
(2043,-1,430,0,0),
(2044,-1,431,0,0),
(2045,-1,432,0,0),
(2046,-1,433,0,0),
(2047,-1,434,0,0),
(2048,-1,436,0,0),
(2049,-1,437,0,0),
(2050,-1,438,0,0),
(2051,-1,439,0,0),
(2052,-1,440,0,0),
(2053,-1,441,0,0),
(2054,-1,442,0,0),
(2055,-1,443,0,0),
(2056,-1,444,0,0),
(2057,-1,445,0,0),
(2058,-1,446,0,0),
(2059,-1,447,0,0),
(2060,-1,448,0,0),
(2061,-1,449,0,0),
(2062,-1,450,0,0),
(2063,-1,451,0,0),
(2064,-1,452,0,0),
(2065,-1,453,0,0),
(2066,-1,454,0,0),
(2067,-1,455,0,0),
(2068,-1,456,0,0),
(2069,-1,457,0,0),
(2070,-1,458,0,0),
(2071,-1,459,0,0),
(2072,-1,460,0,0),
(2073,-1,461,0,0),
(2074,-1,462,0,0),
(2075,-1,463,0,0),
(2078,-1,464,0,0),
(2083,-1,465,0,0),
(2095,-1,466,0,0),
(2096,-1,467,0,0),
(2097,-1,468,0,0),
(2098,-1,469,0,0),
(2099,-1,470,0,0),
(2100,-1,471,0,0),
(2101,-1,472,0,0),
(2102,-1,473,0,0),
(2103,-1,474,0,0),
(2104,-1,475,0,0),
(2105,-1,476,0,0),
(2106,-1,477,0,0),
(2107,-1,478,0,0),
(2108,-1,479,0,0),
(2109,-1,480,0,0),
(2110,-1,481,0,0),
(2111,-1,482,0,0),
(2112,-1,483,0,0),
(2113,-1,484,0,0),
(2114,-1,485,0,0),
(2115,-1,486,0,0),
(2116,-1,487,0,0),
(2117,-1,488,0,0),
(2118,-1,489,0,0),
(2119,-1,490,0,0),
(2120,-1,491,0,0),
(2121,-1,492,0,0),
(2122,-1,493,0,0),
(2123,-1,494,0,0),
(2124,-1,495,0,0),
(2125,-1,496,0,0),
(2126,-1,497,0,0),
(2127,-1,498,0,0),
(2128,-1,499,0,0),
(2129,-1,500,0,0),
(2130,-1,501,0,0),
(2131,-1,502,0,0),
(2132,-1,503,0,0),
(2133,-1,504,0,0),
(2134,-1,505,0,0),
(2135,-1,506,0,0),
(2136,-1,507,0,0),
(2137,-1,508,0,0),
(2138,-1,509,0,0),
(2139,-1,510,0,0),
(2162,1,464,1,0),
(2163,1,508,1,0),
(2164,1,484,0,0),
(2165,1,486,0,0),
(2166,1,474,0,0),
(2167,1,475,0,0),
(2168,1,476,0,0),
(2169,1,477,0,0),
(2170,1,478,0,0),
(2171,1,479,0,0),
(2172,1,480,0,0),
(2173,1,485,0,0),
(2174,1,465,0,0),
(2175,1,481,0,0),
(2176,1,510,0,0),
(2177,1,482,0,0),
(2178,1,483,0,0),
(2179,1,507,0,0),
(2180,1,509,0,0),
(2181,1,466,0,0),
(2182,1,467,0,0),
(2183,1,488,0,0),
(2184,1,487,0,0),
(2185,1,489,0,0),
(2186,1,468,1,0),
(2187,1,469,0,0),
(2188,1,470,0,0),
(2189,1,471,0,0),
(2190,1,472,0,0),
(2191,1,473,0,0),
(2192,1,491,1,0),
(2193,1,492,0,0),
(2194,1,493,0,0),
(2195,1,494,0,0),
(2196,1,495,0,0),
(2197,1,496,0,0),
(2198,1,497,0,0),
(2199,1,498,0,0),
(2200,1,499,0,0),
(2201,1,500,0,0),
(2202,1,501,0,0),
(2203,1,502,0,0),
(2204,1,503,0,0),
(2205,1,504,0,0),
(2206,1,505,0,0),
(2207,1,506,0,0),
(2210,3,464,0,0),
(2211,3,508,0,0),
(2212,3,484,0,0),
(2213,3,486,0,0),
(2214,3,474,0,0),
(2215,3,475,0,0),
(2216,3,476,0,0),
(2217,3,477,0,0),
(2218,3,478,0,0),
(2219,3,479,0,0),
(2220,3,480,0,0),
(2221,3,485,0,0),
(2222,3,465,0,0),
(2223,3,481,0,0),
(2224,3,510,0,0),
(2225,3,482,0,0),
(2226,3,483,0,0),
(2227,3,507,0,0),
(2228,3,509,0,0),
(2229,3,466,0,0),
(2230,3,467,0,0),
(2231,3,488,0,0),
(2232,3,487,0,0),
(2233,3,489,0,0),
(2234,3,468,0,0),
(2235,3,469,0,0),
(2236,3,470,0,0),
(2237,3,471,0,0),
(2238,3,472,0,0),
(2239,3,473,0,0),
(2240,3,491,1,0),
(2241,3,492,0,0),
(2242,3,493,0,0),
(2243,3,494,0,0),
(2244,3,495,0,0),
(2245,3,496,0,0),
(2246,3,497,0,0),
(2247,3,498,0,0),
(2248,3,499,0,0),
(2249,3,500,0,0),
(2250,3,501,0,0),
(2251,3,502,0,0),
(2252,3,503,0,0),
(2253,3,504,0,0),
(2254,3,505,0,0),
(2255,3,506,0,0),
(2256,1,511,1,0),
(2257,1,512,0,0),
(2258,1,513,0,0),
(2259,1,514,0,0),
(2260,1,515,0,0),
(2261,1,516,0,0),
(2262,1,517,0,0),
(2263,1,518,0,0),
(2264,1,519,0,0),
(2265,1,520,0,0),
(2266,1,521,0,0),
(2267,1,522,1,0),
(2268,1,523,0,0),
(2269,1,524,0,0),
(2270,1,525,0,0),
(2271,1,526,0,0),
(2272,1,527,0,0),
(2273,1,528,1,0),
(2274,1,529,0,0),
(2275,1,530,0,0),
(2276,1,531,0,0),
(2277,1,532,0,0),
(2278,1,533,0,0),
(2279,1,534,0,0),
(2280,1,535,1,0),
(2281,1,536,1,0),
(2282,1,537,1,0),
(2283,1,538,1,0),
(2284,1,539,1,0),
(2285,1,540,0,0),
(2286,1,541,0,0),
(2287,1,542,0,0),
(2288,1,543,1,0),
(2289,1,544,0,0),
(2290,1,545,0,0),
(2291,1,546,0,0),
(2292,1,547,0,0),
(2293,1,548,0,0),
(2294,1,549,1,0),
(2295,1,550,0,0),
(2296,1,551,0,0),
(2297,1,552,0,0),
(2298,1,553,0,0),
(2299,1,554,0,0),
(2300,1,555,0,0),
(2301,1,556,0,0),
(2302,1,557,0,0),
(2303,1,558,0,0),
(2304,1,559,0,0),
(2305,1,560,0,0),
(2306,1,561,0,0),
(2307,1,562,0,0),
(2308,1,563,0,0),
(2309,1,564,0,0),
(2310,1,565,0,0),
(2311,1,566,0,0),
(2312,1,567,0,0),
(2313,1,568,0,0),
(2314,1,569,0,0),
(2315,1,570,1,0),
(2316,1,571,1,0),
(2317,1,572,0,0),
(2318,1,573,1,0),
(2319,1,574,0,0),
(2320,1,575,1,0),
(2321,1,576,0,0),
(2322,1,577,0,0),
(2323,1,578,0,0),
(2324,1,579,0,0),
(2325,1,580,0,0),
(2326,1,581,0,0),
(2327,1,582,0,0),
(2328,1,583,0,0),
(2329,1,584,0,0),
(2330,1,585,1,0),
(2331,1,586,1,0),
(2332,1,587,0,0),
(2333,1,588,1,0),
(2334,1,589,1,0),
(2335,1,590,1,0),
(2336,1,591,1,0),
(2337,1,592,0,0),
(2338,1,593,0,0),
(2339,1,594,1,0),
(2340,1,595,0,0),
(2341,1,596,0,0),
(2342,1,597,0,0),
(2343,1,598,0,0),
(2344,1,599,0,0),
(2345,1,600,0,0),
(2346,1,601,0,0),
(2347,1,602,0,0),
(2348,1,603,1,0),
(2349,1,604,1,0),
(2350,1,605,1,0),
(2351,1,606,1,0),
(2352,1,607,1,0),
(2353,1,608,1,0),
(2354,1,609,0,0),
(2355,1,610,1,0),
(2356,1,611,0,0),
(2357,1,612,1,0),
(2358,1,613,1,0),
(2359,1,614,1,0),
(2360,1,615,1,0),
(2361,1,616,0,0),
(2362,1,617,0,0),
(2363,1,618,0,0),
(2364,1,619,1,0),
(2365,1,620,1,0),
(2366,1,621,1,0),
(2367,1,622,1,0),
(2368,1,623,1,0),
(2369,1,624,1,0),
(2370,1,625,0,0),
(2371,1,626,0,0),
(2372,1,627,1,0),
(2373,1,628,1,0),
(2374,1,629,1,0),
(2375,1,630,0,0),
(2376,1,631,1,0),
(2377,1,632,1,0),
(2378,1,633,0,0),
(2379,1,634,0,0),
(2380,1,635,0,0),
(2381,1,636,0,0),
(2382,1,637,1,0),
(2383,1,638,1,0),
(2384,1,639,1,0),
(2385,1,640,1,0),
(2386,1,641,1,0),
(2387,1,642,1,0),
(2388,1,643,1,0),
(2389,1,644,1,0),
(2390,1,645,1,0),
(2391,1,646,1,0),
(2392,1,647,1,0),
(2393,1,648,1,0),
(2394,1,649,1,0),
(2395,1,650,1,0),
(2396,1,651,1,0),
(2397,1,652,1,0),
(2398,1,653,1,0),
(2399,1,654,1,0),
(2400,1,655,1,0),
(2401,1,656,1,0),
(2402,1,657,1,0),
(2403,2,511,1,0),
(2404,2,512,0,0),
(2405,2,513,0,0),
(2406,2,514,0,0),
(2407,2,515,0,0),
(2408,2,516,0,0),
(2409,2,517,0,0),
(2410,2,518,0,0),
(2411,2,519,0,0),
(2412,2,520,0,0),
(2413,2,521,0,0),
(2414,2,522,1,0),
(2415,2,523,0,0),
(2416,2,524,0,0),
(2417,2,525,0,0),
(2418,2,526,0,0),
(2419,2,527,1,0),
(2420,2,528,1,0),
(2421,2,529,1,0),
(2422,2,530,0,0),
(2423,2,531,0,0),
(2424,2,532,0,0),
(2425,2,533,0,0),
(2426,2,534,1,0),
(2427,2,535,1,0),
(2428,2,536,1,0),
(2429,2,537,1,0),
(2430,2,538,1,0),
(2431,2,539,1,0),
(2432,2,540,0,0),
(2433,2,541,0,0),
(2434,2,542,0,0),
(2435,2,543,1,0),
(2436,2,544,0,0),
(2437,2,545,0,0),
(2438,2,546,0,0),
(2439,2,547,0,0),
(2440,2,548,0,0),
(2441,2,549,1,0),
(2442,2,550,0,0),
(2443,2,551,0,0),
(2444,2,552,0,0),
(2445,2,553,0,0),
(2446,2,554,0,0),
(2447,2,555,0,0),
(2448,2,556,0,0),
(2449,2,557,0,0),
(2450,2,558,0,0),
(2451,2,559,0,0),
(2452,2,560,0,0),
(2453,2,561,0,0),
(2454,2,562,0,0),
(2455,2,563,0,0),
(2456,2,564,0,0),
(2457,2,565,0,0),
(2458,2,566,0,0),
(2459,2,567,0,0),
(2460,2,568,0,0),
(2461,2,569,0,0),
(2462,2,570,1,0),
(2463,2,571,1,0),
(2464,2,572,1,0),
(2465,2,573,1,0),
(2466,2,574,1,0),
(2467,2,575,1,0),
(2468,2,576,1,0),
(2469,2,577,1,0),
(2470,2,578,1,0),
(2471,2,579,0,0),
(2472,2,580,0,0),
(2473,2,581,0,0),
(2474,2,582,0,0),
(2475,2,583,0,0),
(2476,2,584,0,0),
(2477,2,585,1,0),
(2478,2,586,1,0),
(2479,2,587,0,0),
(2480,2,588,1,0),
(2481,2,589,1,0),
(2482,2,590,1,0),
(2483,2,591,1,0),
(2484,2,592,1,0),
(2485,2,593,1,0),
(2486,2,594,1,0),
(2487,2,595,0,0),
(2488,2,596,0,0),
(2489,2,597,0,0),
(2490,2,598,0,0),
(2491,2,599,0,0),
(2492,2,600,0,0),
(2493,2,601,0,0),
(2494,2,602,0,0),
(2495,2,603,1,0),
(2496,2,604,1,0),
(2497,2,605,1,0),
(2498,2,606,1,0),
(2499,2,607,1,0),
(2500,2,608,1,0),
(2501,2,609,1,0),
(2502,2,610,1,0),
(2503,2,611,0,0),
(2504,2,612,1,0),
(2505,2,613,1,0),
(2506,2,614,1,0),
(2507,2,615,1,0),
(2508,2,616,0,0),
(2509,2,617,0,0),
(2510,2,618,0,0),
(2511,2,619,1,0),
(2512,2,620,1,0),
(2513,2,621,1,0),
(2514,2,622,1,0),
(2515,2,623,1,0),
(2516,2,624,1,0),
(2517,2,625,0,0),
(2518,2,626,0,0),
(2519,2,627,1,0),
(2520,2,628,1,0),
(2521,2,629,1,0),
(2522,2,630,0,0),
(2523,2,631,1,0),
(2524,2,632,0,0),
(2525,2,633,0,0),
(2526,2,634,0,0),
(2527,2,635,0,0),
(2528,2,636,1,0),
(2529,2,637,1,0),
(2530,2,638,1,0),
(2531,2,639,1,0),
(2532,2,640,0,0),
(2533,2,641,1,0),
(2534,2,642,1,0),
(2535,2,643,1,0),
(2536,2,644,1,0),
(2537,2,645,1,0),
(2538,2,646,1,0),
(2539,2,647,1,0),
(2540,2,648,1,0),
(2541,2,649,1,0),
(2542,2,650,1,0),
(2543,2,651,1,0),
(2544,2,652,1,0),
(2545,2,653,1,0),
(2546,2,654,1,0),
(2547,2,655,1,0),
(2548,2,656,1,0),
(2549,2,657,1,0),
(2550,3,511,1,0),
(2551,3,512,0,0),
(2552,3,513,0,0),
(2553,3,514,0,0),
(2554,3,515,0,0),
(2555,3,516,0,0),
(2556,3,517,0,0),
(2557,3,518,0,0),
(2558,3,519,0,0),
(2559,3,520,0,0),
(2560,3,521,0,0),
(2561,3,522,1,0),
(2562,3,523,0,0),
(2563,3,524,0,0),
(2564,3,525,0,0),
(2565,3,526,0,0),
(2566,3,527,1,0),
(2567,3,528,1,0),
(2568,3,529,1,0),
(2569,3,530,0,0),
(2570,3,531,0,0),
(2571,3,532,0,0),
(2572,3,533,0,0),
(2573,3,534,1,0),
(2574,3,535,1,0),
(2575,3,536,1,0),
(2576,3,537,1,0),
(2577,3,538,1,0),
(2578,3,539,1,0),
(2579,3,540,0,0),
(2580,3,541,0,0),
(2581,3,542,0,0),
(2582,3,543,1,0),
(2583,3,544,0,0),
(2584,3,545,0,0),
(2585,3,546,0,0),
(2586,3,547,0,0),
(2587,3,548,0,0),
(2588,3,549,1,0),
(2589,3,550,0,0),
(2590,3,551,0,0),
(2591,3,552,0,0),
(2592,3,553,0,0),
(2593,3,554,0,0),
(2594,3,555,0,0),
(2595,3,556,0,0),
(2596,3,557,0,0),
(2597,3,558,0,0),
(2598,3,559,0,0),
(2599,3,560,0,0),
(2600,3,561,0,0),
(2601,3,562,0,0),
(2602,3,563,0,0),
(2603,3,564,0,0),
(2604,3,565,0,0),
(2605,3,566,0,0),
(2606,3,567,0,0),
(2607,3,568,0,0),
(2608,3,569,0,0),
(2609,3,570,1,0),
(2610,3,571,1,0),
(2611,3,572,1,0),
(2612,3,573,1,0),
(2613,3,574,1,0),
(2614,3,575,1,0),
(2615,3,576,1,0),
(2616,3,577,1,0),
(2617,3,578,1,0),
(2618,3,579,0,0),
(2619,3,580,0,0),
(2620,3,581,0,0),
(2621,3,582,0,0),
(2622,3,583,0,0),
(2623,3,584,0,0),
(2624,3,585,1,0),
(2625,3,586,1,0),
(2626,3,587,0,0),
(2627,3,588,1,0),
(2628,3,589,1,0),
(2629,3,590,1,0),
(2630,3,591,1,0),
(2631,3,592,1,0),
(2632,3,593,1,0),
(2633,3,594,1,0),
(2634,3,595,0,0),
(2635,3,596,0,0),
(2636,3,597,0,0),
(2637,3,598,0,0),
(2638,3,599,0,0),
(2639,3,600,0,0),
(2640,3,601,0,0),
(2641,3,602,0,0),
(2642,3,603,1,0),
(2643,3,604,1,0),
(2644,3,605,1,0),
(2645,3,606,1,0),
(2646,3,607,1,0),
(2647,3,608,1,0),
(2648,3,609,1,0),
(2649,3,610,1,0),
(2650,3,611,0,0),
(2651,3,612,1,0),
(2652,3,613,1,0),
(2653,3,614,1,0),
(2654,3,615,1,0),
(2655,3,616,0,0),
(2656,3,617,0,0),
(2657,3,618,0,0),
(2658,3,619,1,0),
(2659,3,620,1,0),
(2660,3,621,1,0),
(2661,3,622,1,0),
(2662,3,623,1,0),
(2663,3,624,1,0),
(2664,3,625,0,0),
(2665,3,626,0,0),
(2666,3,627,1,0),
(2667,3,628,1,0),
(2668,3,629,1,0),
(2669,3,630,0,0),
(2670,3,631,1,0),
(2671,3,632,0,0),
(2672,3,633,0,0),
(2673,3,634,0,0),
(2674,3,635,0,0),
(2675,3,636,1,0),
(2676,3,637,1,0),
(2677,3,638,1,0),
(2678,3,639,1,0),
(2679,3,640,0,0),
(2680,3,641,1,0),
(2681,3,642,1,0),
(2682,3,643,1,0),
(2683,3,644,1,0),
(2684,3,645,1,0),
(2685,3,646,1,0),
(2686,3,647,1,0),
(2687,3,648,1,0),
(2688,3,649,1,0),
(2689,3,650,1,0),
(2690,3,651,1,0),
(2691,3,652,1,0),
(2692,3,653,1,0),
(2693,3,654,1,0),
(2694,3,655,1,0),
(2695,3,656,1,0),
(2696,3,657,1,0),
(2697,4,511,1,0),
(2698,4,512,0,0),
(2699,4,513,0,0),
(2700,4,514,0,0),
(2701,4,515,0,0),
(2702,4,516,0,0),
(2703,4,517,0,0),
(2704,4,518,0,0),
(2705,4,519,0,0),
(2706,4,520,0,0),
(2707,4,521,0,0),
(2708,4,522,1,0),
(2709,4,523,0,0),
(2710,4,524,0,0),
(2711,4,525,0,0),
(2712,4,526,0,0),
(2713,4,527,1,0),
(2714,4,528,1,0),
(2715,4,529,1,0),
(2716,4,530,0,0),
(2717,4,531,0,0),
(2718,4,532,0,0),
(2719,4,533,0,0),
(2720,4,534,1,0),
(2721,4,535,1,0),
(2722,4,536,1,0),
(2723,4,537,1,0),
(2724,4,538,1,0),
(2725,4,539,1,0),
(2726,4,540,0,0),
(2727,4,541,0,0),
(2728,4,542,0,0),
(2729,4,543,1,0),
(2730,4,544,0,0),
(2731,4,545,0,0),
(2732,4,546,0,0),
(2733,4,547,0,0),
(2734,4,548,0,0),
(2735,4,549,1,0),
(2736,4,550,0,0),
(2737,4,551,0,0),
(2738,4,552,0,0),
(2739,4,553,0,0),
(2740,4,554,0,0),
(2741,4,555,0,0),
(2742,4,556,0,0),
(2743,4,557,0,0),
(2744,4,558,0,0),
(2745,4,559,0,0),
(2746,4,560,0,0),
(2747,4,561,0,0),
(2748,4,562,0,0),
(2749,4,563,0,0),
(2750,4,564,0,0),
(2751,4,565,0,0),
(2752,4,566,0,0),
(2753,4,567,0,0),
(2754,4,568,0,0),
(2755,4,569,0,0),
(2756,4,570,1,0),
(2757,4,571,1,0),
(2758,4,572,1,0),
(2759,4,573,1,0),
(2760,4,574,1,0),
(2761,4,575,1,0),
(2762,4,576,1,0),
(2763,4,577,1,0),
(2764,4,578,1,0),
(2765,4,579,0,0),
(2766,4,580,0,0),
(2767,4,581,0,0),
(2768,4,582,0,0),
(2769,4,583,0,0),
(2770,4,584,0,0),
(2771,4,585,1,0),
(2772,4,586,1,0),
(2773,4,587,0,0),
(2774,4,588,1,0),
(2775,4,589,1,0),
(2776,4,590,1,0),
(2777,4,591,1,0),
(2778,4,592,1,0),
(2779,4,593,1,0),
(2780,4,594,1,0),
(2781,4,595,0,0),
(2782,4,596,0,0),
(2783,4,597,0,0),
(2784,4,598,0,0),
(2785,4,599,0,0),
(2786,4,600,0,0),
(2787,4,601,0,0),
(2788,4,602,0,0),
(2789,4,603,1,0),
(2790,4,604,1,0),
(2791,4,605,1,0),
(2792,4,606,1,0),
(2793,4,607,1,0),
(2794,4,608,1,0),
(2795,4,609,1,0),
(2796,4,610,1,0),
(2797,4,611,0,0),
(2798,4,612,1,0),
(2799,4,613,1,0),
(2800,4,614,1,0),
(2801,4,615,1,0),
(2802,4,616,0,0),
(2803,4,617,0,0),
(2804,4,618,0,0),
(2805,4,619,1,0),
(2806,4,620,1,0),
(2807,4,621,1,0),
(2808,4,622,1,0),
(2809,4,623,1,0),
(2810,4,624,1,0),
(2811,4,625,0,0),
(2812,4,626,0,0),
(2813,4,627,1,0),
(2814,4,628,1,0),
(2815,4,629,1,0),
(2816,4,630,0,0),
(2817,4,631,1,0),
(2818,4,632,0,0),
(2819,4,633,0,0),
(2820,4,634,0,0),
(2821,4,635,0,0),
(2822,4,636,1,0),
(2823,4,637,1,0),
(2824,4,638,1,0),
(2825,4,639,1,0),
(2826,4,640,0,0),
(2827,4,641,1,0),
(2828,4,642,1,0),
(2829,4,643,1,0),
(2830,4,644,1,0),
(2831,4,645,1,0),
(2832,4,646,1,0),
(2833,4,647,1,0),
(2834,4,648,1,0),
(2835,4,649,1,0),
(2836,4,650,1,0),
(2837,4,651,1,0),
(2838,4,652,1,0),
(2839,4,653,1,0),
(2840,4,654,1,0),
(2841,4,655,1,0),
(2842,4,656,1,0),
(2843,4,657,1,0),
(2844,-1,511,0,0),
(2845,-1,512,0,0),
(2846,-1,513,0,0),
(2847,-1,514,0,0),
(2848,-1,515,0,0),
(2849,-1,516,0,0),
(2850,-1,517,0,0),
(2851,-1,518,0,0),
(2852,-1,519,0,0),
(2853,-1,520,0,0),
(2854,-1,521,0,0),
(2855,-1,522,0,0),
(2856,-1,523,0,0),
(2857,-1,524,0,0),
(2858,-1,525,0,0),
(2859,-1,526,0,0),
(2860,-1,527,0,0),
(2861,-1,528,0,0),
(2862,-1,529,0,0),
(2863,-1,530,0,0),
(2864,-1,531,0,0),
(2865,-1,532,0,0),
(2866,-1,533,0,0),
(2867,-1,534,0,0),
(2868,-1,535,0,0),
(2869,-1,536,0,0),
(2870,-1,537,0,0),
(2871,-1,538,0,0),
(2872,-1,539,0,0),
(2873,-1,540,0,0),
(2874,-1,541,0,0),
(2875,-1,542,0,0),
(2876,-1,543,0,0),
(2877,-1,544,0,0),
(2878,-1,545,0,0),
(2879,-1,546,0,0),
(2880,-1,547,0,0),
(2881,-1,548,0,0),
(2882,-1,549,0,0),
(2883,-1,550,0,0),
(2884,-1,551,0,0),
(2885,-1,552,0,0),
(2886,-1,553,0,0),
(2887,-1,554,0,0),
(2888,-1,555,0,0),
(2889,-1,556,0,0),
(2890,-1,557,0,0),
(2891,-1,558,0,0),
(2892,-1,559,0,0),
(2893,-1,560,0,0),
(2894,-1,561,0,0),
(2895,-1,562,0,0),
(2896,-1,563,0,0),
(2897,-1,564,0,0),
(2898,-1,565,0,0),
(2899,-1,566,0,0),
(2900,-1,567,0,0),
(2901,-1,568,0,0),
(2902,-1,569,0,0),
(2903,-1,570,0,0),
(2904,-1,571,0,0),
(2905,-1,572,0,0),
(2906,-1,573,0,0),
(2907,-1,574,0,0),
(2908,-1,575,0,0),
(2909,-1,576,0,0),
(2910,-1,577,0,0),
(2911,-1,578,0,0),
(2912,-1,579,0,0),
(2913,-1,580,0,0),
(2914,-1,581,0,0),
(2915,-1,582,0,0),
(2916,-1,583,0,0),
(2917,-1,584,0,0),
(2918,-1,585,0,0),
(2919,-1,586,0,0),
(2920,-1,587,0,0),
(2921,-1,588,0,0),
(2922,-1,589,0,0),
(2923,-1,590,0,0),
(2924,-1,591,0,0),
(2925,-1,592,0,0),
(2926,-1,593,0,0),
(2927,-1,594,0,0),
(2928,-1,595,0,0),
(2929,-1,596,0,0),
(2930,-1,597,0,0),
(2931,-1,598,0,0),
(2932,-1,599,0,0),
(2933,-1,600,0,0),
(2934,-1,601,0,0),
(2935,-1,602,0,0),
(2936,-1,603,0,0),
(2937,-1,604,0,0),
(2938,-1,605,0,0),
(2939,-1,606,0,0),
(2940,-1,607,0,0),
(2941,-1,608,0,0),
(2942,-1,609,0,0),
(2943,-1,610,0,0),
(2944,-1,611,0,0),
(2945,-1,612,0,0),
(2946,-1,613,0,0),
(2947,-1,614,0,0),
(2948,-1,615,0,0),
(2949,-1,616,0,0),
(2950,-1,617,0,0),
(2951,-1,618,0,0),
(2952,-1,619,0,0),
(2953,-1,620,0,0),
(2954,-1,621,0,0),
(2955,-1,622,0,0),
(2956,-1,623,0,0),
(2957,-1,624,0,0),
(2958,-1,625,0,0),
(2959,-1,626,0,0),
(2960,-1,627,0,0),
(2961,-1,628,0,0),
(2962,-1,629,0,0),
(2963,-1,630,0,0),
(2964,-1,631,0,0),
(2965,-1,632,0,0),
(2966,-1,633,0,0),
(2967,-1,634,0,0),
(2968,-1,635,0,0),
(2969,-1,636,0,0),
(2970,-1,637,0,0),
(2971,-1,638,0,0),
(2972,-1,639,0,0),
(2973,-1,640,0,0),
(2974,-1,641,0,0),
(2975,-1,642,0,0),
(2976,-1,643,0,0),
(2977,-1,644,0,0),
(2978,-1,645,0,0),
(2979,-1,646,0,0),
(2980,-1,647,0,0),
(2981,-1,648,0,0),
(2982,-1,649,0,0),
(2983,-1,650,0,0),
(2984,-1,651,0,0),
(2985,-1,652,0,0),
(2986,-1,653,0,0),
(2987,-1,654,0,0),
(2988,-1,655,0,0),
(2989,-1,656,0,0),
(2990,-1,657,0,0);

--
-- Table structure for table `rentbill`
--

CREATE TABLE `rentbill` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `clientid` int(11) DEFAULT NULL,
  `createdatetime` date DEFAULT NULL,
  `billtotal` decimal(10,2) DEFAULT NULL,
  `firmbilltotal` decimal(10,2) DEFAULT NULL,
  `billpayed` decimal(10,2) DEFAULT NULL,
  `billreset` decimal(10,2) DEFAULT NULL,
  `dailyentryid` int(11) NOT NULL DEFAULT 0,
  `payistype` char(1) NOT NULL DEFAULT '0',
  `bankid` int(11) DEFAULT NULL,
  `accountid` int(11) DEFAULT NULL,
  `paperno` int(11) DEFAULT NULL,
  `paperval` decimal(10,2) DEFAULT NULL,
  `paperdate` date DEFAULT NULL,
  `discount` decimal(10,2) DEFAULT NULL,
  `distotal` decimal(10,2) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `rentbill`
--


--
-- Table structure for table `rentbillprop`
--

CREATE TABLE `rentbillprop` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `billid` int(11) DEFAULT NULL,
  `productid` int(11) DEFAULT NULL,
  `type` char(1) DEFAULT NULL,
  `supplierid` int(11) DEFAULT NULL,
  `amount` int(11) DEFAULT NULL,
  `rentprice` decimal(10,2) DEFAULT NULL,
  `supplierprice` decimal(10,2) DEFAULT NULL,
  `totalprice` decimal(10,2) DEFAULT NULL,
  `suppliertotalpice` decimal(10,2) DEFAULT NULL,
  `startdate` date DEFAULT NULL,
  `enddate` date DEFAULT NULL,
  `rentdays` int(11) DEFAULT NULL,
  `status` char(1) DEFAULT NULL,
  `delayvalue` decimal(10,2) DEFAULT NULL,
  `delaytype` char(1) DEFAULT NULL,
  `delypay` decimal(10,2) DEFAULT NULL,
  `delayreset` decimal(10,2) DEFAULT NULL,
  `dailyentryid` int(11) NOT NULL DEFAULT 0,
  `diffdate` varchar(2000) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `rentbillprop`
--


--
-- Table structure for table `rentproduct`
--

CREATE TABLE `rentproduct` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(2000) DEFAULT NULL,
  `quantity` int(11) DEFAULT NULL,
  `buyprice` decimal(10,2) DEFAULT NULL,
  `totalprice` decimal(10,2) DEFAULT NULL,
  `rentprice` decimal(10,2) DEFAULT NULL,
  `paytype` char(1) DEFAULT NULL,
  `supplierid` int(11) DEFAULT 0,
  `createdate` date DEFAULT NULL,
  `info` text DEFAULT NULL,
  `isdel` char(1) DEFAULT '0',
  `dailyentryid` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `rentproduct`
--


--
-- Table structure for table `rentstore`
--

CREATE TABLE `rentstore` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `rentproductid` int(11) DEFAULT NULL,
  `amount` int(11) DEFAULT NULL,
  `rented` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `rentstore`
--


--
-- Table structure for table `representativecompany`
--

CREATE TABLE `representativecompany` (
  `representativecompanyId` int(11) NOT NULL AUTO_INCREMENT,
  `representativeName` varchar(255) NOT NULL,
  `representativePhone` varchar(255) NOT NULL,
  `companyId` int(11) NOT NULL,
  `otherInfo` longtext NOT NULL,
  PRIMARY KEY (`representativecompanyId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `representativecompany`
--


--
-- Table structure for table `restauranthall`
--

CREATE TABLE `restauranthall` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `hallPrice` tinyint(4) NOT NULL,
  `hallUsers` varchar(300) NOT NULL,
  `userId` int(11) NOT NULL,
  `sysdate` date NOT NULL,
  `del` tinyint(4) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `restauranthall`
--


--
-- Table structure for table `restaurantkitchenprint`
--

CREATE TABLE `restaurantkitchenprint` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `orderId` int(11) NOT NULL,
  `productId` int(11) NOT NULL,
  `quantity` int(11) NOT NULL,
  `notesPrinted` text NOT NULL,
  `togetherNo` int(11) NOT NULL,
  `isPrinted` tinyint(4) NOT NULL COMMENT '0 not printed - 1 printed',
  `sysDateTime` datetime NOT NULL,
  `fromBillDirectWithId` int(11) NOT NULL DEFAULT -1,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `restaurantkitchenprint`
--


--
-- Table structure for table `restaurantorder`
--

CREATE TABLE `restaurantorder` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `hallUserId` int(11) NOT NULL,
  `tableId` int(11) NOT NULL,
  `totalBill` decimal(10,2) NOT NULL,
  `discount` decimal(10,2) NOT NULL,
  `tax` decimal(10,2) NOT NULL DEFAULT 0.00,
  `netBill` decimal(10,2) NOT NULL,
  `finished` tinyint(4) NOT NULL COMMENT '0 not finished - 1 finished',
  `sellBillId` int(11) NOT NULL,
  `userId` int(11) NOT NULL,
  `sysdate` datetime NOT NULL,
  `del` tinyint(4) NOT NULL,
  `daySreial` int(11) NOT NULL,
  `billComment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
  `payed` decimal(10,2) NOT NULL DEFAULT 0.00,
  `restaurantplaystationplayid` int(11) NOT NULL DEFAULT 0,
  `rest` decimal(8,2) NOT NULL DEFAULT 0.00,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `restaurantorder`
--


--
-- Table structure for table `restaurantorderdeliverydetails`
--

CREATE TABLE `restaurantorderdeliverydetails` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `orderId` int(11) NOT NULL,
  `clientId` int(11) NOT NULL,
  `clientmobile` tinyint(4) NOT NULL COMMENT '0 hide- 1 show',
  `clientphone` tinyint(4) NOT NULL COMMENT '0 hide- 1 show',
  `clientaddress` tinyint(4) NOT NULL COMMENT '0 hide- 1 show',
  `clientdetails` tinyint(4) NOT NULL COMMENT '0 hide- 1 show',
  `driverId` int(11) NOT NULL,
  `driverReciveDate` datetime NOT NULL,
  `deliveryStatus` tinyint(4) NOT NULL COMMENT '0 new -1 assigned to driver - 2 finish',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `restaurantorderdeliverydetails`
--


--
-- Table structure for table `restaurantorderdetails`
--

CREATE TABLE `restaurantorderdetails` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `orderId` int(11) NOT NULL,
  `productId` int(11) NOT NULL,
  `quantity` decimal(10,2) NOT NULL,
  `price` decimal(10,2) NOT NULL,
  `total` decimal(10,2) NOT NULL,
  `notes` text NOT NULL,
  `notesPrinted` text NOT NULL,
  `isPrinted` tinyint(4) NOT NULL,
  `printedQuantity` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `restaurantorderdetails`
--


--
-- Table structure for table `restaurantplaystation`
--

CREATE TABLE `restaurantplaystation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `hourPrice` float NOT NULL,
  `beingUsed` tinyint(4) NOT NULL COMMENT '0 empty-1 is used now',
  `tableId` int(11) NOT NULL,
  `serviceId` int(11) NOT NULL,
  `userId` int(11) NOT NULL,
  `sysdate` datetime NOT NULL,
  `del` tinyint(4) NOT NULL,
  `theType` tinyint(4) NOT NULL COMMENT 'it is to be deleted below it doesnot exist',
  `deviceIdentification` varchar(255) NOT NULL,
  `subDeviceIdentification` varchar(255) NOT NULL,
  `useSubIdentification` tinyint(4) NOT NULL,
  `hourPriceMulti` float NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `restaurantplaystation`
--


--
-- Table structure for table `restaurantplaystationplay`
--

CREATE TABLE `restaurantplaystationplay` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `playstationid` int(11) NOT NULL,
  `hourPrice` float NOT NULL,
  `startsysDate` datetime NOT NULL,
  `endsysDate` datetime NOT NULL,
  `duration` time NOT NULL,
  `note` text NOT NULL,
  `totalPrice` float NOT NULL,
  `discount` float NOT NULL,
  `tax` float NOT NULL,
  `netPrice` float NOT NULL,
  `payed` float NOT NULL,
  `finished` tinyint(4) NOT NULL,
  `sellBillId` int(11) NOT NULL,
  `userId` int(11) NOT NULL,
  `sysdate` datetime NOT NULL,
  `del` tinyint(4) NOT NULL,
  `reservationType` tinyint(4) NOT NULL COMMENT '0 open - 1 with timer',
  `reservationHours` int(11) NOT NULL,
  `reservationMinutes` int(11) NOT NULL,
  `reservationEndDateTime` datetime NOT NULL,
  `moveStartSysDate` datetime NOT NULL COMMENT 'used in move psplay',
  `moveDuration` time NOT NULL COMMENT 'used in move psplay',
  `oldPsPlayid` int(11) NOT NULL DEFAULT 0 COMMENT 'used in move psplay',
  `startPrice` float NOT NULL DEFAULT 0 COMMENT 'used in move psplay  it is sum of price of all previous plastation play',
  `cardPayed` float NOT NULL,
  `cashPayed` float NOT NULL,
  `psClientCardId` int(11) NOT NULL,
  `priceIs` tinyint(4) NOT NULL COMMENT '0 hourPrice - 1 hourPriceMulti',
  `hourPriceMulti` float NOT NULL,
  `allMovesUnitedSellBillId` int(11) NOT NULL DEFAULT 0 COMMENT 'it is sellbill id made to all movenent from playstation to another and from single to multi as we need it to identify them and use it in print',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `restaurantplaystationplay`
--


--
-- Table structure for table `restaurantprinter`
--

CREATE TABLE `restaurantprinter` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `cats` varchar(400) NOT NULL,
  `userid` int(11) NOT NULL,
  `sysdate` date NOT NULL,
  `del` tinyint(4) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `restaurantprinter`
--


--
-- Table structure for table `restaurantrawdestruction`
--

CREATE TABLE `restaurantrawdestruction` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `storeid` int(11) NOT NULL,
  `productid` int(11) NOT NULL,
  `quantity` int(11) NOT NULL,
  `productBuyPrice` decimal(10,2) NOT NULL,
  `lastbuyprice` decimal(10,2) NOT NULL,
  `meanbuyprice` decimal(10,2) NOT NULL,
  `lastbuyprice_withDiscount` decimal(10,2) DEFAULT NULL,
  `meanbuyprice_withDiscount` decimal(10,2) DEFAULT NULL,
  `conditions` tinyint(4) NOT NULL,
  `sysdate` date NOT NULL,
  `userid` int(11) NOT NULL,
  `operationNum` int(11) NOT NULL,
  `sizeid` int(11) NOT NULL DEFAULT 0,
  `colorid` int(11) NOT NULL DEFAULT 0,
  `realestateid` int(11) NOT NULL DEFAULT 0,
  `realestateunitid` int(11) NOT NULL DEFAULT 0,
  `lastbuyprice_withTax` decimal(10,2) DEFAULT NULL,
  `meanbuyprice_withTax` decimal(10,2) DEFAULT NULL,
  `note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `restaurantrawdestruction`
--


--
-- Table structure for table `restauranttable`
--

CREATE TABLE `restauranttable` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `hallid` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `beingUsed` tinyint(4) NOT NULL COMMENT '0 empty-1 is used now',
  `userId` int(11) NOT NULL,
  `sysdate` date NOT NULL,
  `del` tinyint(4) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `restauranttable`
--


--
-- Table structure for table `resturantcategory`
--

CREATE TABLE `resturantcategory` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `category_id` varchar(160) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `product_id` int(11) DEFAULT NULL,
  `date` date NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `resturantcategory`
--

INSERT INTO `resturantcategory` VALUES
(1,'',0,'0000-00-00'),
(2,'',0,'0000-00-00'),
(3,'',0,'0000-00-00');

--
-- Table structure for table `returnbuybill`
--

CREATE TABLE `returnbuybill` (
  `returnbuybillid` int(11) NOT NULL AUTO_INCREMENT,
  `returnbuybillSerial` varchar(255) DEFAULT NULL,
  `returnbuybilldate` datetime DEFAULT NULL,
  `returnbuybillsupplierid` int(11) NOT NULL,
  `returnbuybilltotaldeptbefor` decimal(10,2) NOT NULL,
  `returnbuybilltotaldeptafter` decimal(10,2) NOT NULL,
  `returnbuybilldiscount` varchar(255) NOT NULL DEFAULT '',
  `returnbuybilldiscountrype` int(11) NOT NULL DEFAULT 0,
  `returnbuybilltotalbill` decimal(10,2) NOT NULL,
  `returnbuybillaftertotalbill` decimal(10,2) NOT NULL,
  `returnbuybilltotalpayed` decimal(10,2) NOT NULL,
  `returnbuybillfinalbill` decimal(10,2) NOT NULL,
  `returnbuybillstoreid` int(11) NOT NULL,
  `returnbuybillsysdate` datetime NOT NULL,
  `comment` text NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `returnbuybillclientname` varchar(255) NOT NULL DEFAULT '',
  `returnbuybillsaveid` int(11) NOT NULL,
  `billnameid` int(11) NOT NULL,
  `returnbuybilldirectpayment` int(11) NOT NULL DEFAULT 0,
  `deletedbuyid` int(11) DEFAULT NULL,
  `controlname` varchar(255) NOT NULL,
  `payedtax` decimal(10,2) NOT NULL DEFAULT 0.00,
  `costcenterid` int(11) DEFAULT 0,
  `dailyentryid` varchar(100) NOT NULL DEFAULT '',
  `delbyuserid` int(11) NOT NULL DEFAULT 0,
  `currencyId` int(11) NOT NULL DEFAULT 1,
  `taxOfDiscountPer` float NOT NULL DEFAULT 0,
  `taxOfDiscountVal` float NOT NULL DEFAULT 0,
  `client` int(11) NOT NULL DEFAULT 0,
  `returnbuybilladdition` varchar(255) NOT NULL DEFAULT '',
  `returnbuybilladditiontrype` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`returnbuybillid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `returnbuybill`
--


--
-- Table structure for table `returnbuybillcurr`
--

CREATE TABLE `returnbuybillcurr` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `buybillid` int(11) NOT NULL,
  `conversionFactor` float NOT NULL DEFAULT 1,
  `returnbuybilldiscountC` varchar(255) NOT NULL DEFAULT '',
  `returnbuybilltotalbillC` decimal(10,2) NOT NULL,
  `returnbuybillaftertotalbillC` decimal(10,2) NOT NULL,
  `returnbuybilltotalpayedC` decimal(10,2) NOT NULL,
  `returnbuybillfinalbillC` decimal(10,2) NOT NULL,
  `returnbuybilldirectpaymentC` int(11) NOT NULL DEFAULT 0,
  `payedtaxC` decimal(10,2) NOT NULL DEFAULT 0.00,
  `saveConversionFactor` float NOT NULL DEFAULT 1,
  `returnbuybilladditionC` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `returnbuybillcurr`
--


--
-- Table structure for table `returnbuybilldetail`
--

CREATE TABLE `returnbuybilldetail` (
  `returnbuybilldetailid` int(11) NOT NULL AUTO_INCREMENT,
  `Parcode` varchar(255) NOT NULL DEFAULT '',
  `returnbuybillid` int(11) NOT NULL,
  `returnbuybilldetailcatid` int(11) NOT NULL,
  `returnbuybilldetailproductid` int(11) NOT NULL,
  `returnbuybilldetailquantity` decimal(10,2) NOT NULL,
  `returnbuybilldetailprice` decimal(10,2) NOT NULL,
  `returnbuybilldetailtotalprice` decimal(10,2) NOT NULL,
  `discountvalue` decimal(10,2) NOT NULL,
  `note` varchar(256) DEFAULT NULL,
  `productunitid` int(11) NOT NULL,
  `lastbuyprice` decimal(10,2) DEFAULT NULL,
  `meanbuyprice` decimal(10,2) DEFAULT NULL,
  `lastbuyprice_withDiscount` decimal(10,2) DEFAULT NULL,
  `meanbuyprice_withDiscount` decimal(10,2) DEFAULT NULL,
  `otherdetailquantity` int(11) NOT NULL DEFAULT 0,
  `sizeid` int(11) NOT NULL DEFAULT 0,
  `colorid` int(11) NOT NULL DEFAULT 0,
  `returnbuybilldetailpriceC` decimal(10,2) NOT NULL,
  `returnbuybilldetailtotalpriceC` decimal(10,2) NOT NULL,
  `discountvalueC` decimal(10,2) NOT NULL,
  `discounttype` decimal(10,2) NOT NULL DEFAULT 0.00 COMMENT 'discount percentage like 5%',
  `rowtaxval` decimal(10,2) NOT NULL,
  `rowtaxper` decimal(10,2) NOT NULL DEFAULT 0.00 COMMENT 'like 5%',
  `lastbuyprice_withTax` decimal(10,2) DEFAULT NULL,
  `meanbuyprice_withTax` decimal(10,2) DEFAULT NULL,
  `lastbuyprice_withDiscountAndTax` decimal(10,2) DEFAULT NULL,
  `storeid` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`returnbuybilldetailid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `returnbuybilldetail`
--


--
-- Table structure for table `returnsellbill`
--

CREATE TABLE `returnsellbill` (
  `returnsellbillid` int(11) NOT NULL AUTO_INCREMENT,
  `returnsellbilldate` datetime DEFAULT NULL,
  `returnsellbillserial` varchar(5000) DEFAULT NULL,
  `returnsellbillclientid` int(11) NOT NULL,
  `returnsellbilltotaldeptbefor` decimal(10,2) NOT NULL,
  `returnsellbilltotaldeptafter` decimal(10,2) NOT NULL,
  `returnsellbilldiscount` varchar(255) NOT NULL DEFAULT '',
  `returnsellbilldiscounttype` int(11) NOT NULL DEFAULT 1 COMMENT '1 for direct- 2 for percent',
  `returnsellbilltotalbill` decimal(10,2) NOT NULL,
  `returnsellbillaftertotalbill` decimal(10,2) NOT NULL,
  `returnsellbilltotalpayed` decimal(10,2) NOT NULL,
  `returnsellbillfinalbill` decimal(10,2) NOT NULL,
  `returnsellbillstoreid` int(11) NOT NULL,
  `returnsellbillsysdate` datetime NOT NULL,
  `comment` text NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `returnsellbillclientname` text NOT NULL,
  `returnsellbillsaveid` int(11) NOT NULL,
  `returnsellbildirectpayment` int(11) NOT NULL DEFAULT 0,
  `billnameid` int(11) NOT NULL,
  `sellerid` int(11) NOT NULL,
  `tempclientName` varchar(255) NOT NULL,
  `returnsellQuantity` decimal(10,2) NOT NULL,
  `deletedsellid` int(11) NOT NULL DEFAULT 0,
  `controlname` varchar(255) NOT NULL DEFAULT '0',
  `tax` decimal(10,2) NOT NULL DEFAULT 0.00,
  `carnumber` varchar(255) NOT NULL,
  `cartype` varchar(255) NOT NULL,
  `carchase` varchar(255) NOT NULL,
  `carmotor` varchar(255) NOT NULL,
  `costcenterid` int(11) DEFAULT NULL,
  `dailyentryid` varchar(100) NOT NULL DEFAULT '',
  `delbyuserid` int(11) NOT NULL DEFAULT 0,
  `lastReviewType` tinyint(4) NOT NULL DEFAULT 0,
  `lastReviewUser` int(11) DEFAULT NULL,
  `lastReviewDateTime` datetime DEFAULT NULL,
  `billReservation` tinyint(4) NOT NULL DEFAULT 0,
  `billReservationDate` date NOT NULL,
  `visaAccountId` int(11) NOT NULL DEFAULT 0,
  `cashPayed` decimal(10,2) NOT NULL,
  `visaPayed` decimal(10,2) NOT NULL,
  `isBankAccountTransfer` tinyint(4) NOT NULL DEFAULT 0,
  `extraDiscountPer` float NOT NULL DEFAULT 0,
  `extraDiscountVal` float NOT NULL DEFAULT 0,
  `taxOfDiscountPer` float NOT NULL DEFAULT 0,
  `taxOfDiscountVal` float NOT NULL DEFAULT 0,
  `autoSaveFlag` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0 completed in sellbillcontrol, 1 not completed still temp saved in ajax',
  `obgyBillType` tinyint(4) NOT NULL DEFAULT 0,
  `billoperationid` int(11) NOT NULL DEFAULT 0,
  `obygyVisitId` int(11) DEFAULT 0 COMMENT 'has id of refund visitid not main visit id we making refund on it',
  `pricetype` tinyint(4) NOT NULL DEFAULT 0,
  `currencyId` int(11) NOT NULL DEFAULT 1,
  `sellbillno` varchar(255) DEFAULT NULL,
  `returnsellbilltypeclientid` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`returnsellbillid`),
  KEY `returnsellbilldate` (`returnsellbilldate`),
  KEY `returnsellbillclientid` (`returnsellbillclientid`),
  KEY `obgyBillType` (`obgyBillType`),
  KEY `pricetype` (`pricetype`),
  KEY `returnsellbillstoreid` (`returnsellbillstoreid`),
  KEY `sellerid` (`sellerid`),
  KEY `userid` (`userid`),
  KEY `conditions` (`conditions`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `returnsellbill`
--


--
-- Table structure for table `returnsellbillcurr`
--

CREATE TABLE `returnsellbillcurr` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `returnsellbillid` int(11) NOT NULL,
  `conversionFactor` float NOT NULL,
  `returnsellbilldiscountC` varchar(255) NOT NULL,
  `returnsellbilltotalbillC` decimal(10,2) NOT NULL,
  `returnsellbillaftertotalbillC` decimal(10,2) NOT NULL,
  `returnsellbilltotalpayedC` decimal(10,2) NOT NULL,
  `returnsellbillfinalbillC` decimal(10,2) NOT NULL,
  `returnsellbildirectpaymentC` int(11) NOT NULL,
  `taxC` decimal(10,2) NOT NULL,
  `cashPayedC` decimal(10,2) NOT NULL,
  `visaPayedC` decimal(10,2) NOT NULL,
  `extraDiscountValC` float NOT NULL,
  `taxOfDiscountValC` float NOT NULL,
  `saveConversionFactor` float NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `returnsellbillcurr`
--


--
-- Table structure for table `returnsellbilldetail`
--

CREATE TABLE `returnsellbilldetail` (
  `returnsellbilldetailid` int(11) NOT NULL AUTO_INCREMENT,
  `buyprice` decimal(10,2) NOT NULL,
  `parcode` varchar(256) NOT NULL DEFAULT '',
  `returnsellbillid` int(11) NOT NULL,
  `returnsellbilldetailcatid` int(11) NOT NULL,
  `returnsellbilldetailproductid` int(11) NOT NULL,
  `returnsellbilldetailquantity` decimal(10,2) NOT NULL,
  `returnsellbilldetailprice` decimal(10,2) NOT NULL,
  `returnsellbilldetailtotalprice` decimal(10,2) NOT NULL,
  `conditions` decimal(10,2) NOT NULL,
  `note` varchar(256) DEFAULT NULL,
  `pricetype` tinyint(4) NOT NULL DEFAULT 0,
  `discountvalue` decimal(10,2) NOT NULL,
  `productunitid` int(11) NOT NULL,
  `buydiscount` decimal(10,2) NOT NULL,
  `buydiscounttype` int(11) NOT NULL,
  `storeid` int(11) NOT NULL DEFAULT 0,
  `discounttype` decimal(10,2) NOT NULL DEFAULT 0.00 COMMENT 'discount percentage like 5%',
  `lastbuyprice` decimal(10,2) DEFAULT NULL,
  `meanbuyprice` decimal(10,2) DEFAULT NULL,
  `lastbuyprice_withDiscount` decimal(10,2) DEFAULT NULL,
  `meanbuyprice_withDiscount` decimal(10,2) DEFAULT NULL,
  `scunitqty` int(11) NOT NULL DEFAULT 0,
  `otherdetailquantity` int(11) NOT NULL DEFAULT 0,
  `sizeid` int(11) NOT NULL DEFAULT 0,
  `colorid` int(11) NOT NULL DEFAULT 0,
  `pricetypepro` tinyint(4) NOT NULL DEFAULT 0,
  `proHeight` float NOT NULL DEFAULT 0,
  `proWidth` float NOT NULL DEFAULT 0,
  `soldSerialsInDetails` text NOT NULL DEFAULT '',
  `lastbuyprice_withTax` decimal(10,2) DEFAULT NULL,
  `meanbuyprice_withTax` decimal(10,2) DEFAULT NULL,
  `returnsellbilldetailpriceC` decimal(10,2) NOT NULL,
  `returnsellbilldetailtotalpriceC` decimal(10,2) NOT NULL,
  `discountvalueC` decimal(10,2) NOT NULL,
  `proSellTrackingSerial` varchar(50) NOT NULL DEFAULT '',
  `lastbuyprice_withDiscountAndTax` decimal(10,2) DEFAULT NULL,
  PRIMARY KEY (`returnsellbilldetailid`),
  KEY `returnsellbillid` (`returnsellbillid`),
  KEY `returnsellbilldetailproductid` (`returnsellbilldetailproductid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `returnsellbilldetail`
--


--
-- Table structure for table `returnsellbillreview`
--

CREATE TABLE `returnsellbillreview` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `billid` int(11) NOT NULL,
  `reviewType` tinyint(4) NOT NULL COMMENT '0 cancel review , 1 reviewed',
  `reviewComment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `reviewuserid` int(11) NOT NULL,
  `sysdate` datetime NOT NULL,
  `del` tinyint(4) NOT NULL COMMENT '0 not del , 1 del',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `returnsellbillreview`
--


--
-- Table structure for table `richproperity`
--

CREATE TABLE `richproperity` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `parentid` int(11) NOT NULL,
  `url` varchar(255) NOT NULL,
  `defaultval` int(11) NOT NULL,
  `showit` int(11) NOT NULL,
  `displayorder` int(11) NOT NULL,
  `groupid` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `richproperity`
--


--
-- Table structure for table `salaryreport`
--

CREATE TABLE `salaryreport` (
  `salaryreportid` int(11) NOT NULL AUTO_INCREMENT,
  `employeeid` int(11) NOT NULL,
  `salaryreportdate` datetime NOT NULL,
  `userid` int(11) NOT NULL,
  `salaryreportsalary` decimal(10,2) NOT NULL,
  `salaryreportdiscount` decimal(10,2) DEFAULT NULL,
  `salaryreportbouns` decimal(10,2) DEFAULT NULL,
  `salaryreportwithdrawal` decimal(10,2) DEFAULT NULL,
  `salaryreportnet` decimal(10,2) NOT NULL,
  `salarymonthdate` varchar(255) NOT NULL,
  `salarymonth` varchar(255) NOT NULL,
  `Repayment` decimal(10,2) NOT NULL,
  `Absence` decimal(10,2) NOT NULL,
  `Reward` decimal(10,2) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0 COMMENT '1 for del 0 for notdel',
  `costcenterid` int(11) DEFAULT 0,
  `dailyentryid` int(11) NOT NULL DEFAULT 0,
  `saveid` int(11) NOT NULL DEFAULT 0,
  `permission` decimal(10,2) NOT NULL,
  `allLeave` decimal(10,2) NOT NULL,
  PRIMARY KEY (`salaryreportid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `salaryreport`
--


--
-- Table structure for table `save`
--

CREATE TABLE `save` (
  `saveid` int(11) NOT NULL AUTO_INCREMENT,
  `savename` varchar(256) NOT NULL,
  `savecurrentvalue` decimal(15,2) NOT NULL DEFAULT 0.00,
  `savedetails` text DEFAULT NULL,
  `savedate` datetime NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0 COMMENT '0 for not deleted- 1 for deleted',
  `userid` int(11) NOT NULL,
  `currencyId` int(11) NOT NULL DEFAULT 1,
  `sortby` int(11) NOT NULL DEFAULT 0,
  `treeId` int(11) NOT NULL DEFAULT 0,
  `saveTreeParentType` tinyint(4) NOT NULL DEFAULT 0,
  `inUse` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0 free - 1 in use means to stop changing debt till it is free again',
  `webApiId` int(11) NOT NULL DEFAULT 0,
  `savetypeid` int(11) DEFAULT NULL,
  PRIMARY KEY (`saveid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `save`
--

INSERT INTO `save` VALUES
(1,'الخزنة الرئيسية',0.00,'','2026-02-03 00:00:00',0,1,1,0,383,0,0,0,NULL);

--
-- Table structure for table `saveclose`
--

CREATE TABLE `saveclose` (
  `savecloseid` int(11) NOT NULL AUTO_INCREMENT,
  `saveidfrom` int(11) NOT NULL,
  `saveidto` int(11) NOT NULL,
  `saveclosevalue` decimal(10,2) NOT NULL,
  `saveclosedate` date NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `dailyentryid` int(11) NOT NULL DEFAULT 0,
  `comment` varchar(255) DEFAULT NULL,
  `currencyId` int(11) NOT NULL,
  `conversionFactor` float NOT NULL,
  `conversionFactorFrom` float NOT NULL,
  `conversionFactorTo` float NOT NULL,
  `saveclosevalueInCurrency` decimal(10,2) NOT NULL,
  PRIMARY KEY (`savecloseid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `saveclose`
--


--
-- Table structure for table `savedaily`
--

CREATE TABLE `savedaily` (
  `savedailyid` int(11) NOT NULL AUTO_INCREMENT,
  `savedailysavebefore` decimal(15,2) NOT NULL,
  `savedailychangeamount` decimal(10,2) NOT NULL,
  `savedailychangetype` int(11) DEFAULT NULL COMMENT '0 for plus- 1 for minus',
  `saveid` int(11) NOT NULL,
  `processname` varchar(256) NOT NULL COMMENT 'name of the process',
  `savedailymodelid` int(11) NOT NULL COMMENT '0 => ',
  `savedailysaveafter` decimal(15,2) NOT NULL,
  `savedailydate` datetime NOT NULL,
  `userid` int(11) NOT NULL,
  `tablename` varchar(256) NOT NULL COMMENT 'table of this process',
  `clientid` int(11) DEFAULT 0,
  `note` text NOT NULL DEFAULT '',
  `clientdebtchangeidfk` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`savedailyid`),
  KEY `saveid` (`saveid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `savedaily`
--


--
-- Table structure for table `savestock`
--

CREATE TABLE `savestock` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `savestockdate` date DEFAULT NULL,
  `savestocktotal` double DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `savestock`
--

INSERT INTO `savestock` VALUES
(1,'2026-02-02',0),
(2,'2026-02-03',0);

--
-- Table structure for table `savetype`
--

CREATE TABLE `savetype` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `del` int(11) unsigned DEFAULT NULL,
  `adddate` datetime DEFAULT NULL,
  `adduserid` tinyint(1) unsigned DEFAULT NULL,
  `deldate` varchar(191) DEFAULT NULL,
  `deluserid` varchar(191) DEFAULT NULL,
  `name` varchar(191) DEFAULT NULL,
  `updatedate` datetime DEFAULT NULL,
  `updateuserid` tinyint(1) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `savetype`
--


--
-- Table structure for table `searchfilters`
--

CREATE TABLE `searchfilters` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(256) NOT NULL,
  `name_en` varchar(255) DEFAULT NULL,
  `sysdate` date NOT NULL,
  `parentid` int(11) NOT NULL DEFAULT 0,
  `user_id` int(11) NOT NULL,
  `conditions` int(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `searchfilters`
--


--
-- Table structure for table `sellandruternbilldetail`
--

CREATE TABLE `sellandruternbilldetail` (
  `buyprice` decimal(10,2) NOT NULL,
  `parcode` varchar(256) NOT NULL DEFAULT '',
  `sellbilldetailid` int(11) NOT NULL AUTO_INCREMENT,
  `sellbillid` int(11) NOT NULL,
  `sellbilldetailcatid` int(11) NOT NULL,
  `sellbilldetailproductid` int(11) NOT NULL,
  `sellbilldetailquantity` decimal(10,2) NOT NULL,
  `sellbilldetailprice` decimal(10,2) NOT NULL,
  `sellbilldetailtotalprice` decimal(10,2) NOT NULL,
  `discountvalue` decimal(10,2) NOT NULL,
  `note` varchar(256) DEFAULT NULL,
  `pricetype` tinyint(4) NOT NULL DEFAULT 0,
  `sellbilldetaildate` date NOT NULL,
  `selltype` int(11) NOT NULL COMMENT '0 for sell 1 for return',
  `productunitid` int(11) NOT NULL,
  `buydiscount` decimal(10,2) NOT NULL,
  `buydiscounttype` int(11) NOT NULL,
  `storeid` int(11) NOT NULL DEFAULT 0,
  `discounttype` decimal(10,2) NOT NULL DEFAULT 0.00 COMMENT 'discount percentage like 5%',
  `lastbuyprice` decimal(10,2) DEFAULT NULL,
  `meanbuyprice` decimal(10,2) DEFAULT NULL,
  `lastbuyprice_withDiscount` decimal(10,2) DEFAULT NULL,
  `meanbuyprice_withDiscount` decimal(10,2) DEFAULT NULL,
  `scunitqty` int(11) NOT NULL DEFAULT 0,
  `otherdetailquantity` int(11) NOT NULL DEFAULT 0,
  `sizeid` int(11) NOT NULL DEFAULT 0,
  `colorid` int(11) NOT NULL DEFAULT 0,
  `pricetypepro` tinyint(4) NOT NULL DEFAULT 0,
  `buyPricesHistoryBookIdQuantity` text NOT NULL DEFAULT '',
  `proHeight` float NOT NULL DEFAULT 0,
  `proWidth` float NOT NULL DEFAULT 0,
  `soldSerialsInDetails` text NOT NULL DEFAULT '',
  `lastbuyprice_withTax` decimal(10,2) DEFAULT NULL,
  `meanbuyprice_withTax` decimal(10,2) DEFAULT NULL,
  `sellbilldetailpriceC` decimal(10,2) NOT NULL,
  `sellbilldetailtotalpriceC` decimal(10,2) NOT NULL,
  `discountvalueC` decimal(10,2) NOT NULL,
  `proSellTrackingSerial` varchar(50) NOT NULL DEFAULT '',
  `categorydiscount` decimal(10,2) NOT NULL DEFAULT 0.00,
  `lastbuyprice_withDiscountAndTax` decimal(10,2) DEFAULT NULL,
  PRIMARY KEY (`sellbilldetailid`),
  KEY `sellbillid` (`sellbillid`),
  KEY `sellbilldetailproductid` (`sellbilldetailproductid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `sellandruternbilldetail`
--


--
-- Table structure for table `sellbill`
--

CREATE TABLE `sellbill` (
  `sellbillid` int(11) NOT NULL AUTO_INCREMENT,
  `sellbilldate` datetime DEFAULT NULL,
  `sellbillserial` varchar(255) DEFAULT NULL,
  `sellbillclientid` int(11) NOT NULL DEFAULT 0,
  `sellbilltotaldeptbefor` decimal(10,2) NOT NULL,
  `sellbilltotaldeptafter` decimal(10,2) NOT NULL,
  `sellbilldiscount` varchar(255) NOT NULL DEFAULT '',
  `sellbilldiscounttype` int(11) NOT NULL DEFAULT 0,
  `sellbilltotalbill` decimal(10,2) NOT NULL,
  `sellbillaftertotalbill` decimal(10,2) NOT NULL,
  `sellbilltotalpayed` decimal(10,2) NOT NULL,
  `sellbillfinalbill` decimal(10,2) NOT NULL,
  `sellbillstoreid` int(11) NOT NULL,
  `sellbillsysdate` datetime NOT NULL,
  `comment` text NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `sellbillclientname` text NOT NULL,
  `sellbillsaveid` int(11) NOT NULL,
  `sellbildirectpayment` int(11) NOT NULL,
  `billnameid` int(11) NOT NULL,
  `sellerid` int(11) NOT NULL,
  `tempclientName` varchar(255) NOT NULL,
  `sellQuantity` decimal(10,2) NOT NULL,
  `deletedsellid` int(11) NOT NULL,
  `controlname` varchar(255) NOT NULL,
  `tax` decimal(10,2) NOT NULL DEFAULT 0.00,
  `carnumber` varchar(255) NOT NULL,
  `cartype` varchar(255) NOT NULL,
  `carchase` varchar(255) NOT NULL,
  `carmotor` varchar(255) NOT NULL,
  `costcenterid` int(11) DEFAULT NULL,
  `localdonw` int(11) DEFAULT 0,
  `dailyentryid` varchar(100) NOT NULL DEFAULT '',
  `obygyVisitId` int(11) DEFAULT 0,
  `onlineOrderId` int(11) DEFAULT 0,
  `delbyuserid` int(11) NOT NULL DEFAULT 0,
  `lastReviewType` tinyint(4) NOT NULL DEFAULT 0,
  `lastReviewUser` int(11) DEFAULT NULL,
  `lastReviewDateTime` datetime DEFAULT NULL,
  `delivery` decimal(10,2) NOT NULL DEFAULT 0.00,
  `totalafterdelivery` decimal(10,2) NOT NULL DEFAULT 0.00,
  `billReservation` tinyint(4) NOT NULL DEFAULT 0,
  `billReservationDate` date NOT NULL,
  `webApiId` int(11) NOT NULL DEFAULT 0,
  `visaAccountId` int(11) NOT NULL DEFAULT 0,
  `cashPayed` decimal(10,2) NOT NULL,
  `visaPayed` decimal(10,2) NOT NULL,
  `isBankAccountTransfer` tinyint(4) NOT NULL DEFAULT 0,
  `extraDiscountPer` float NOT NULL DEFAULT 0,
  `extraDiscountVal` float NOT NULL DEFAULT 0,
  `taxOfDiscountPer` float NOT NULL DEFAULT 0,
  `taxOfDiscountVal` float NOT NULL DEFAULT 0,
  `shippingDate` date NOT NULL,
  `taxBillNumber` int(11) NOT NULL DEFAULT 0,
  `collectionType` tinyint(4) NOT NULL DEFAULT 0,
  `collectionDate` date NOT NULL,
  `qrerpid` varchar(255) NOT NULL,
  `qrerpids` text NOT NULL,
  `autoSaveFlag` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0 completed in sellbillcontrol, 1 not completed still temp saved in ajax',
  `ereason` text NOT NULL,
  `estatus` varchar(255) NOT NULL,
  `epdf` varchar(255) NOT NULL,
  `obgyBillType` tinyint(4) NOT NULL DEFAULT 0,
  `billoperationid` int(11) NOT NULL DEFAULT 0,
  `datestarting` date NOT NULL,
  `pricetype` tinyint(4) NOT NULL DEFAULT 0,
  `currencyId` int(11) NOT NULL DEFAULT 1,
  `knownwayId` int(11) DEFAULT NULL,
  `travelDriverId` int(11) DEFAULT NULL,
  `travelBusId` int(11) DEFAULT NULL,
  `travelPathId` int(11) DEFAULT NULL,
  `travelTripId` int(11) DEFAULT NULL,
  `travelTripTypeId` int(11) DEFAULT NULL,
  `travelTripDateId` int(11) DEFAULT NULL,
  `totalprodiscount` varchar(255) NOT NULL DEFAULT '',
  `manage_ex` varchar(255) NOT NULL DEFAULT '',
  `med_hallmark` varchar(255) NOT NULL DEFAULT '',
  `pay_rec_no` varchar(255) NOT NULL DEFAULT '',
  `pay_rec_val` varchar(255) NOT NULL DEFAULT '',
  `decisionNo` varchar(255) NOT NULL DEFAULT '',
  `decisionValue` varchar(255) NOT NULL DEFAULT '',
  `sellToSupplier` int(11) NOT NULL DEFAULT 0,
  `supplierbuybillid` int(11) NOT NULL DEFAULT 0,
  `sellbilltypeclientid` int(11) NOT NULL DEFAULT 0,
  `shipfrom` int(11) NOT NULL DEFAULT 0,
  `shipto` int(11) NOT NULL DEFAULT 0,
  `paymethodshipping` tinyint(4) NOT NULL DEFAULT 0,
  `incomeId` int(11) NOT NULL DEFAULT 0 COMMENT 'we save service value of laterNakdiPayment as income',
  `whatShippingCost` tinyint(4) NOT NULL DEFAULT 0,
  `clientaddress` text NOT NULL DEFAULT '',
  PRIMARY KEY (`sellbillid`),
  KEY `sellbilldate` (`sellbilldate`),
  KEY `sellbillclientid` (`sellbillclientid`),
  KEY `obgyBillType` (`obgyBillType`),
  KEY `sellbillstoreid` (`sellbillstoreid`),
  KEY `pricetype` (`pricetype`),
  KEY `sellerid` (`sellerid`),
  KEY `userid` (`userid`),
  KEY `conditions` (`conditions`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `sellbill`
--


--
-- Table structure for table `sellbillandreturnreview`
--

CREATE TABLE `sellbillandreturnreview` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `billid` int(11) NOT NULL,
  `reviewType` tinyint(4) NOT NULL COMMENT '0 cancel review , 1 reviewed',
  `reviewuserid` int(11) NOT NULL,
  `sysdate` datetime NOT NULL,
  `del` tinyint(4) NOT NULL COMMENT '0 not del , 1 del',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `sellbillandreturnreview`
--


--
-- Table structure for table `sellbillandrutern`
--

CREATE TABLE `sellbillandrutern` (
  `sellbillid` int(11) NOT NULL AUTO_INCREMENT,
  `sellbilldate` datetime DEFAULT NULL,
  `sellbillserial` varchar(255) DEFAULT NULL,
  `sellbillclientid` int(11) NOT NULL DEFAULT 0,
  `sellbilltotaldeptbefor` decimal(10,2) NOT NULL,
  `sellbilltotaldeptafter` decimal(10,2) NOT NULL,
  `sellbilldiscount` varchar(255) NOT NULL DEFAULT '',
  `sellbilldiscounttype` int(11) NOT NULL DEFAULT 0,
  `sellbilltotalbill` decimal(10,2) NOT NULL,
  `sellbillaftertotalbill` decimal(10,2) NOT NULL,
  `sellbilltotalpayed` decimal(10,2) NOT NULL,
  `sellbillfinalbill` decimal(10,2) NOT NULL,
  `sellbillstoreid` int(11) NOT NULL,
  `sellbillsysdate` datetime NOT NULL,
  `comment` text NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `sellbillclientname` text NOT NULL,
  `sellbillsaveid` int(11) NOT NULL,
  `sellbildirectpayment` int(11) NOT NULL,
  `billnameid` int(11) NOT NULL,
  `sellerid` int(11) NOT NULL,
  `sellbillprice` decimal(10,2) NOT NULL,
  `returnsellbillprice` decimal(10,2) NOT NULL,
  `tempclientName` varchar(255) NOT NULL,
  `sellQuantity` decimal(10,2) NOT NULL,
  `returnsellQuantity` decimal(10,2) NOT NULL,
  `deletedsellid` int(11) NOT NULL,
  `controlname` varchar(255) NOT NULL,
  `tax` decimal(10,2) NOT NULL DEFAULT 0.00,
  `carnumber` varchar(255) NOT NULL,
  `cartype` varchar(255) NOT NULL,
  `carchase` varchar(255) NOT NULL,
  `carmotor` varchar(255) NOT NULL,
  `costcenterid` int(11) DEFAULT NULL,
  `dailyentryid` varchar(100) NOT NULL DEFAULT '',
  `delbyuserid` int(11) NOT NULL DEFAULT 0,
  `billReservation` tinyint(4) NOT NULL DEFAULT 0,
  `billReservationDate` date NOT NULL,
  `visaAccountId` int(11) NOT NULL DEFAULT 0,
  `cashPayed` decimal(10,2) NOT NULL,
  `visaPayed` decimal(10,2) NOT NULL,
  `isBankAccountTransfer` tinyint(4) NOT NULL DEFAULT 0,
  `extraDiscountPer` float NOT NULL DEFAULT 0,
  `extraDiscountVal` float NOT NULL DEFAULT 0,
  `taxOfDiscountPer` float NOT NULL DEFAULT 0,
  `taxOfDiscountVal` float NOT NULL DEFAULT 0,
  `autoSaveFlag` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0 completed in sellbillcontrol, 1 not completed still temp saved in ajax',
  `obgyBillType` tinyint(4) NOT NULL DEFAULT 0,
  `billoperationid` int(11) NOT NULL DEFAULT 0,
  `pricetype` tinyint(4) NOT NULL DEFAULT 0,
  `currencyId` int(11) NOT NULL DEFAULT 1,
  `totalprodiscount` varchar(255) NOT NULL DEFAULT '',
  `sellbillno` varchar(255) DEFAULT NULL,
  `manage_ex` varchar(255) NOT NULL DEFAULT '',
  `med_hallmark` varchar(255) NOT NULL DEFAULT '',
  `pay_rec_no` varchar(255) NOT NULL DEFAULT '',
  `pay_rec_val` varchar(255) NOT NULL DEFAULT '',
  `decisionNo` varchar(255) NOT NULL DEFAULT '',
  `decisionValue` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`sellbillid`),
  KEY `sellbilldate` (`sellbilldate`),
  KEY `sellbillclientid` (`sellbillclientid`),
  KEY `obgyBillType` (`obgyBillType`),
  KEY `pricetype` (`pricetype`),
  KEY `sellbillstoreid` (`sellbillstoreid`),
  KEY `sellerid` (`sellerid`),
  KEY `userid` (`userid`),
  KEY `conditions` (`conditions`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `sellbillandrutern`
--


--
-- Table structure for table `sellbillandruterncurr`
--

CREATE TABLE `sellbillandruterncurr` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sellbillid` int(11) NOT NULL,
  `conversionFactor` float NOT NULL,
  `sellbilldiscountC` varchar(255) NOT NULL,
  `sellbilltotalbillC` decimal(10,2) NOT NULL,
  `sellbillaftertotalbillC` decimal(10,2) NOT NULL,
  `sellbilltotalpayedC` decimal(10,2) NOT NULL,
  `sellbillfinalbillC` decimal(10,2) NOT NULL,
  `sellbildirectpaymentC` int(11) NOT NULL,
  `sellbillpriceC` decimal(10,2) NOT NULL,
  `returnsellbillpriceC` decimal(10,2) NOT NULL,
  `taxC` decimal(10,2) NOT NULL,
  `cashPayedC` decimal(10,2) NOT NULL,
  `visaPayedC` decimal(10,2) NOT NULL,
  `extraDiscountValC` float NOT NULL,
  `taxOfDiscountValC` float NOT NULL,
  `saveConversionFactor` float NOT NULL,
  `totalprodiscountC` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `sellbillandruterncurr`
--


--
-- Table structure for table `sellbillcurr`
--

CREATE TABLE `sellbillcurr` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sellbillid` int(11) NOT NULL,
  `conversionFactor` float NOT NULL,
  `sellbilldiscountC` varchar(255) NOT NULL,
  `sellbilltotalbillC` decimal(10,2) NOT NULL,
  `sellbillaftertotalbillC` decimal(10,2) NOT NULL,
  `sellbilltotalpayedC` decimal(10,2) NOT NULL,
  `sellbillfinalbillC` decimal(10,2) NOT NULL,
  `sellbildirectpaymentC` int(11) NOT NULL,
  `taxC` decimal(10,2) NOT NULL,
  `deliveryC` decimal(10,2) NOT NULL,
  `totalafterdeliveryC` decimal(10,2) NOT NULL,
  `cashPayedC` decimal(10,2) NOT NULL,
  `visaPayedC` decimal(10,2) NOT NULL,
  `extraDiscountValC` float NOT NULL,
  `taxOfDiscountValC` float NOT NULL,
  `saveConversionFactor` float NOT NULL DEFAULT 1,
  `totalprodiscountC` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `sellbillcurr`
--


--
-- Table structure for table `sellbilldetail`
--

CREATE TABLE `sellbilldetail` (
  `buyprice` decimal(10,2) NOT NULL,
  `parcode` varchar(256) NOT NULL DEFAULT '',
  `sellbilldetailid` int(11) NOT NULL AUTO_INCREMENT,
  `sellbillid` int(11) NOT NULL,
  `sellbilldetailcatid` int(11) NOT NULL,
  `sellbilldetailproductid` int(11) NOT NULL,
  `sellbilldetailquantity` decimal(10,2) NOT NULL,
  `sellbilldetailprice` decimal(10,2) NOT NULL,
  `sellbilldetailtotalprice` decimal(10,2) NOT NULL,
  `discountvalue` decimal(10,2) NOT NULL,
  `note` varchar(256) DEFAULT NULL,
  `pricetype` tinyint(4) NOT NULL DEFAULT 0,
  `sellbilldetaildate` date NOT NULL,
  `productunitid` int(11) NOT NULL,
  `buydiscount` decimal(10,2) NOT NULL,
  `buydiscounttype` int(11) NOT NULL,
  `storeid` int(11) NOT NULL DEFAULT 0,
  `discounttype` decimal(10,2) NOT NULL DEFAULT 0.00 COMMENT 'discount percentage like 5%',
  `localdonw` int(11) DEFAULT 0,
  `lastbuyprice` decimal(10,2) DEFAULT NULL,
  `meanbuyprice` decimal(10,2) DEFAULT NULL,
  `lastbuyprice_withDiscount` decimal(10,2) DEFAULT NULL,
  `meanbuyprice_withDiscount` decimal(10,2) DEFAULT NULL,
  `scunitqty` int(11) NOT NULL DEFAULT 0,
  `otherdetailquantity` int(11) NOT NULL DEFAULT 0,
  `sizeid` int(11) NOT NULL DEFAULT 0,
  `colorid` int(11) NOT NULL DEFAULT 0,
  `onlineOrderId` int(11) NOT NULL DEFAULT 0,
  `pricetypepro` tinyint(4) NOT NULL DEFAULT 0,
  `playstationPlayId` int(11) NOT NULL DEFAULT 0 COMMENT 'it is restaurantplaystationplay id',
  `soldSerialsInDetails` text NOT NULL DEFAULT '',
  `buyPricesHistoryBookIdQuantity` text NOT NULL DEFAULT '',
  `proHeight` float NOT NULL DEFAULT 0,
  `proWidth` float NOT NULL DEFAULT 0,
  `lastbuyprice_withTax` decimal(10,2) DEFAULT NULL,
  `meanbuyprice_withTax` decimal(10,2) DEFAULT NULL,
  `sellbilldetailpriceC` decimal(10,2) NOT NULL,
  `sellbilldetailtotalpriceC` decimal(10,2) NOT NULL,
  `discountvalueC` decimal(10,2) NOT NULL,
  `proSellTrackingSerial` varchar(50) NOT NULL DEFAULT '',
  `travelBrokerId` int(11) NOT NULL DEFAULT 0,
  `categorydiscount` decimal(10,2) NOT NULL DEFAULT 0.00,
  `lastbuyprice_withDiscountAndTax` decimal(10,2) DEFAULT NULL,
  `prosellDiscountPer` float NOT NULL DEFAULT 0,
  `prosellDiscountPerType` tinyint(4) NOT NULL DEFAULT 0,
  `prosellDiscountVal` float NOT NULL DEFAULT 0,
  PRIMARY KEY (`sellbilldetailid`),
  KEY `sellbillid` (`sellbillid`),
  KEY `sellbilldetailproductid` (`sellbilldetailproductid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `sellbilldetail`
--


--
-- Table structure for table `sellbilldetailoffer`
--

CREATE TABLE `sellbilldetailoffer` (
  `buyprice` decimal(10,2) NOT NULL,
  `parcode` varchar(256) NOT NULL DEFAULT '',
  `sellbilldetailid` int(11) NOT NULL AUTO_INCREMENT,
  `sellbillid` int(11) NOT NULL,
  `sellbilldetailcatid` int(11) NOT NULL,
  `sellbilldetailproductid` int(11) NOT NULL,
  `sellbilldetailquantity` decimal(10,2) NOT NULL,
  `sellbilldetailprice` decimal(10,2) NOT NULL,
  `sellbilldetailtotalprice` decimal(10,2) NOT NULL,
  `discountvalue` decimal(10,2) NOT NULL,
  `note` varchar(256) DEFAULT NULL,
  `pricetype` tinyint(4) NOT NULL DEFAULT 0,
  `sellbilldetaildate` date NOT NULL,
  `productunitid` int(11) NOT NULL,
  `buydiscount` decimal(10,2) NOT NULL,
  `buydiscounttype` int(11) NOT NULL,
  `storeid` int(11) NOT NULL DEFAULT 0,
  `discounttype` decimal(10,2) NOT NULL DEFAULT 0.00,
  `localdonw` int(11) DEFAULT 0,
  `lastbuyprice` decimal(10,2) DEFAULT NULL,
  `meanbuyprice` decimal(10,2) DEFAULT NULL,
  `lastbuyprice_withDiscount` decimal(10,2) DEFAULT NULL,
  `meanbuyprice_withDiscount` decimal(10,2) DEFAULT NULL,
  `scunitqty` int(11) NOT NULL DEFAULT 0,
  `otherdetailquantity` int(11) NOT NULL DEFAULT 0,
  `sizeid` int(11) NOT NULL DEFAULT 0,
  `colorid` int(11) NOT NULL DEFAULT 0,
  `onlineOrderId` int(11) NOT NULL DEFAULT 0,
  `pricetypepro` tinyint(4) NOT NULL DEFAULT 0,
  PRIMARY KEY (`sellbilldetailid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `sellbilldetailoffer`
--


--
-- Table structure for table `sellbilldetailorder`
--

CREATE TABLE `sellbilldetailorder` (
  `buyprice` decimal(10,2) NOT NULL,
  `parcode` varchar(256) NOT NULL DEFAULT '',
  `sellbilldetailid` int(11) NOT NULL AUTO_INCREMENT,
  `sellbillid` int(11) NOT NULL,
  `sellbilldetailcatid` int(11) NOT NULL,
  `sellbilldetailproductid` int(11) NOT NULL,
  `sellbilldetailquantity` decimal(10,2) NOT NULL,
  `sellbilldetailprice` decimal(10,2) NOT NULL,
  `sellbilldetailtotalprice` decimal(10,2) NOT NULL,
  `discountvalue` decimal(10,2) NOT NULL,
  `note` varchar(256) DEFAULT NULL,
  `pricetype` tinyint(4) NOT NULL DEFAULT 0,
  `sellbilldetaildate` date NOT NULL,
  `productunitid` int(11) NOT NULL,
  `buydiscount` decimal(10,2) NOT NULL,
  `buydiscounttype` int(11) NOT NULL,
  `storeid` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`sellbilldetailid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `sellbilldetailorder`
--


--
-- Table structure for table `sellbilldetailtax`
--

CREATE TABLE `sellbilldetailtax` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `sellbilldetailid` int(11) unsigned NOT NULL,
  `conditions` tinyint(11) unsigned NOT NULL,
  `type` varchar(191) NOT NULL,
  `subtype` varchar(191) NOT NULL,
  `rate` float NOT NULL,
  `amount` float NOT NULL,
  `is_offer` tinyint(4) NOT NULL COMMENT '0 bill, 1 offer',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sellbilldetailtax`
--


--
-- Table structure for table `sellbillimage`
--

CREATE TABLE `sellbillimage` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `sellbillid` int(11) unsigned DEFAULT NULL,
  `images` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `sellbillimage`
--


--
-- Table structure for table `sellbilloffer`
--

CREATE TABLE `sellbilloffer` (
  `sellbillid` int(11) NOT NULL AUTO_INCREMENT,
  `sellbilldate` datetime DEFAULT NULL,
  `sellbillserial` varchar(255) DEFAULT NULL,
  `sellbillclientid` int(11) NOT NULL DEFAULT 0,
  `sellbilltotaldeptbefor` decimal(10,2) NOT NULL,
  `sellbilltotaldeptafter` decimal(10,2) NOT NULL,
  `sellbilldiscount` varchar(255) NOT NULL DEFAULT '',
  `sellbilldiscounttype` int(11) NOT NULL DEFAULT 0,
  `sellbilltotalbill` decimal(10,2) NOT NULL,
  `sellbillaftertotalbill` decimal(10,2) NOT NULL,
  `sellbilltotalpayed` decimal(10,2) NOT NULL,
  `sellbillfinalbill` decimal(10,2) NOT NULL,
  `sellbillstoreid` int(11) NOT NULL,
  `sellbillsysdate` datetime NOT NULL,
  `comment` text NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `sellbillclientname` text NOT NULL,
  `sellbillsaveid` int(11) NOT NULL,
  `sellbildirectpayment` int(11) NOT NULL,
  `billnameid` int(11) NOT NULL,
  `sellerid` int(11) NOT NULL,
  `tempclientName` varchar(255) NOT NULL,
  `sellQuantity` decimal(10,2) NOT NULL,
  `deletedsellid` int(11) NOT NULL,
  `controlname` varchar(255) NOT NULL,
  `tax` decimal(10,2) NOT NULL DEFAULT 0.00,
  `carnumber` varchar(255) NOT NULL,
  `cartype` varchar(255) NOT NULL,
  `carchase` varchar(255) NOT NULL,
  `carmotor` varchar(255) NOT NULL,
  `costcenterid` int(11) DEFAULT NULL,
  `localdonw` int(11) DEFAULT 0,
  `dailyentryid` varchar(100) NOT NULL DEFAULT '',
  `obygyVisitId` int(11) DEFAULT 0,
  `onlineOrderId` int(11) DEFAULT 0,
  `delbyuserid` int(11) NOT NULL DEFAULT 0,
  `lastReviewType` tinyint(4) NOT NULL DEFAULT 0,
  `lastReviewUser` int(11) DEFAULT NULL,
  `lastReviewDateTime` datetime DEFAULT NULL,
  `delivery` decimal(10,2) NOT NULL DEFAULT 0.00,
  `totalafterdelivery` decimal(10,2) NOT NULL DEFAULT 0.00,
  `billReservation` tinyint(4) NOT NULL DEFAULT 0,
  `billReservationDate` date NOT NULL,
  `webApiId` int(11) NOT NULL DEFAULT 0,
  `visaAccountId` int(11) NOT NULL DEFAULT 0,
  `cashPayed` decimal(10,2) NOT NULL,
  `visaPayed` decimal(10,2) NOT NULL,
  `isBankAccountTransfer` tinyint(4) NOT NULL DEFAULT 0,
  `extraDiscountPer` float NOT NULL DEFAULT 0,
  `extraDiscountVal` float NOT NULL DEFAULT 0,
  `taxOfDiscountPer` float NOT NULL DEFAULT 0,
  `taxOfDiscountVal` float NOT NULL DEFAULT 0,
  `shippingDate` date NOT NULL,
  `taxBillNumber` int(11) NOT NULL DEFAULT 0,
  `collectionType` tinyint(4) NOT NULL DEFAULT 0,
  `collectionDate` date NOT NULL,
  `qrerpid` varchar(255) NOT NULL,
  `qrerpids` text NOT NULL,
  `autoSaveFlag` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0 completed in sellbillcontrol, 1 not completed still temp saved in ajax',
  `ereason` text NOT NULL,
  `estatus` varchar(255) NOT NULL,
  `epdf` varchar(255) NOT NULL,
  `obgyBillType` tinyint(4) NOT NULL DEFAULT 0,
  `billoperationid` int(11) NOT NULL DEFAULT 0,
  `datestarting` date NOT NULL,
  `pricetype` tinyint(4) NOT NULL DEFAULT 0,
  `orderSavedBillId` int(11) NOT NULL DEFAULT 0,
  `totalprodiscount` varchar(255) NOT NULL DEFAULT '',
  `manage_ex` varchar(255) NOT NULL DEFAULT '',
  `med_hallmark` varchar(255) NOT NULL DEFAULT '',
  `pay_rec_no` varchar(255) NOT NULL DEFAULT '',
  `pay_rec_val` varchar(255) NOT NULL DEFAULT '',
  `decisionNo` varchar(255) NOT NULL DEFAULT '',
  `decisionValue` varchar(255) NOT NULL DEFAULT '',
  `clientaddress` text NOT NULL DEFAULT '',
  PRIMARY KEY (`sellbillid`),
  KEY `sellbilldate` (`sellbilldate`),
  KEY `sellbillclientid` (`sellbillclientid`),
  KEY `obgyBillType` (`obgyBillType`),
  KEY `sellbillstoreid` (`sellbillstoreid`),
  KEY `pricetype` (`pricetype`),
  KEY `sellerid` (`sellerid`),
  KEY `userid` (`userid`),
  KEY `conditions` (`conditions`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `sellbilloffer`
--


--
-- Table structure for table `sellbillorder`
--

CREATE TABLE `sellbillorder` (
  `sellbillid` int(11) NOT NULL AUTO_INCREMENT,
  `sellbilldate` date DEFAULT NULL,
  `sellbillserial` varchar(255) DEFAULT NULL,
  `sellbillclientid` int(11) NOT NULL DEFAULT 0,
  `sellbilltotaldeptbefor` decimal(10,2) NOT NULL,
  `sellbilltotaldeptafter` decimal(10,2) NOT NULL,
  `sellbilldiscount` varchar(255) NOT NULL DEFAULT '',
  `sellbilldiscounttype` int(11) NOT NULL DEFAULT 0,
  `sellbilltotalbill` decimal(10,2) NOT NULL,
  `sellbillaftertotalbill` decimal(10,2) NOT NULL,
  `sellbilltotalpayed` decimal(10,2) NOT NULL,
  `sellbillfinalbill` decimal(10,2) NOT NULL,
  `sellbillstoreid` int(11) NOT NULL,
  `sellbillsysdate` date NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `sellbillclientname` text NOT NULL,
  `sellbillsaveid` int(11) NOT NULL,
  `sellbildirectpayment` int(11) NOT NULL,
  `billnameid` int(11) NOT NULL,
  `sellerid` int(11) NOT NULL,
  `tempclientName` varchar(255) NOT NULL,
  `sellQuantity` decimal(10,2) NOT NULL,
  `actualsellbill` int(11) NOT NULL DEFAULT 0 COMMENT 'the actual sell bill id   0 not don yet ',
  `saveAffect` int(11) NOT NULL DEFAULT 0 COMMENT ' 0 for Affect in save  1 not affect',
  PRIMARY KEY (`sellbillid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `sellbillorder`
--


--
-- Table structure for table `sellbillreview`
--

CREATE TABLE `sellbillreview` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `billid` int(11) NOT NULL,
  `reviewType` tinyint(4) NOT NULL COMMENT '0 cancel review , 1 reviewed',
  `reviewComment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `reviewuserid` int(11) NOT NULL,
  `sysdate` datetime NOT NULL,
  `del` tinyint(4) NOT NULL COMMENT '0 not del , 1 del',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `sellbillreview`
--


--
-- Table structure for table `sellbillstatus`
--

CREATE TABLE `sellbillstatus` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sellbillid` int(11) NOT NULL,
  `status` varchar(255) NOT NULL COMMENT 'new - prepare - shipped - deliver - refused',
  `userid` int(11) NOT NULL,
  `sysdate` datetime NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `sellbillstatus`
--


--
-- Table structure for table `settingoperation`
--

CREATE TABLE `settingoperation` (
  `settingOperationID` int(11) NOT NULL AUTO_INCREMENT,
  `settingOperationName` varchar(100) NOT NULL,
  `workStationID` int(11) NOT NULL,
  `realTime` int(11) NOT NULL,
  `assetesID` int(11) NOT NULL,
  `workersNo` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0 COMMENT '0 for del - 1 for not del',
  `userID` int(11) NOT NULL,
  `operationDate` date NOT NULL,
  `operationType` varchar(255) NOT NULL DEFAULT '0',
  PRIMARY KEY (`settingOperationID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `settingoperation`
--


--
-- Table structure for table `shippercompanies`
--

CREATE TABLE `shippercompanies` (
  `companyId` int(11) NOT NULL AUTO_INCREMENT,
  `companyName` varchar(255) NOT NULL,
  `otherInfo` longtext NOT NULL,
  `tempdele` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`companyId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `shippercompanies`
--


--
-- Table structure for table `simplemanufacturesetting`
--

CREATE TABLE `simplemanufacturesetting` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `storeid` tinyint(4) NOT NULL,
  `reducestoreamount` tinyint(4) NOT NULL COMMENT '1: yes --- 0: no',
  `productsproductionequation` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0: Manufacturing products -- 1:all products',
  `orderclient` tinyint(4) NOT NULL DEFAULT 0,
  `taskOrderName` tinyint(4) NOT NULL DEFAULT 0,
  `lowOutPriceAlert` tinyint(4) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `simplemanufacturesetting`
--

INSERT INTO `simplemanufacturesetting` VALUES
(1,1,1,0,0,0,0);

--
-- Table structure for table `sizecolor`
--

CREATE TABLE `sizecolor` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
  `type` tinyint(4) NOT NULL COMMENT '0 size , 1 color',
  `userid` int(11) NOT NULL,
  `conditions` tinyint(4) NOT NULL,
  `sysdate` date NOT NULL,
  `scExcelid` int(11) NOT NULL COMMENT 'used to link products to products from another erp like siam see in buybill',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `sizecolor`
--


--
-- Table structure for table `sizecolorstoredetail`
--

CREATE TABLE `sizecolorstoredetail` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `storeid` int(11) NOT NULL,
  `productid` int(11) NOT NULL,
  `sizeid` int(11) NOT NULL,
  `colorid` int(11) NOT NULL,
  `parcode` varchar(300) NOT NULL,
  `buyprice` decimal(10,2) NOT NULL,
  `sellunitprice` decimal(10,2) NOT NULL,
  `quantity` decimal(10,2) NOT NULL,
  `userid` int(11) NOT NULL,
  `sysdate` datetime NOT NULL,
  `scdExcelParcode` varchar(12) NOT NULL COMMENT 'used to link products to products from another erp like siam see in buybill',
  `inUse` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0 free - 1 in use means to stop changing debt till it is free again',
  PRIMARY KEY (`id`),
  UNIQUE KEY `prosizecolor_unique` (`storeid`,`productid`,`sizeid`,`colorid`),
  KEY `productid` (`productid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `sizecolorstoredetail`
--


--
-- Table structure for table `slider`
--

CREATE TABLE `slider` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(255) NOT NULL,
  `titleEn` varchar(255) NOT NULL,
  `titleUrl` varchar(500) NOT NULL,
  `openTarget` tinyint(4) NOT NULL COMMENT '0 newtab, 1 same tab',
  `mediaUrl` varchar(500) NOT NULL,
  `mediaType` tinyint(4) NOT NULL COMMENT '0 image ,1 video',
  `description` text NOT NULL,
  `descriptionEn` text NOT NULL,
  `position` int(11) NOT NULL COMMENT 'order of showing',
  `isActive` tinyint(4) NOT NULL,
  `sysDate` datetime NOT NULL,
  `userid` int(11) NOT NULL,
  `isdel` tinyint(4) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `slider`
--


--
-- Table structure for table `soldserialproduct`
--

CREATE TABLE `soldserialproduct` (
  `soldserialproductid` int(11) NOT NULL AUTO_INCREMENT,
  `productserailid` int(11) NOT NULL,
  `sellbillid` int(11) NOT NULL,
  `sellbilltype` int(11) NOT NULL COMMENT '0 for sellbill 1 for sell and return sellpart 3 returnsellbill 4 for sell and return returnpart',
  `quantity` decimal(10,2) NOT NULL,
  `del` int(11) NOT NULL COMMENT '0 for not del 1 for del',
  `clientid` int(11) NOT NULL,
  PRIMARY KEY (`soldserialproductid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `soldserialproduct`
--


--
-- Table structure for table `sparepart`
--

CREATE TABLE `sparepart` (
  `sparepartid` int(11) NOT NULL AUTO_INCREMENT,
  `sparepartname` varchar(255) NOT NULL,
  `sparepartprice` decimal(10,2) NOT NULL,
  `sparepartnotes` text NOT NULL,
  `userid` int(11) NOT NULL,
  `sparepartdate` date NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`sparepartid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `sparepart`
--


--
-- Table structure for table `sparepartstore`
--

CREATE TABLE `sparepartstore` (
  `sparepartstoreId` int(11) NOT NULL AUTO_INCREMENT,
  `storeName` varchar(255) NOT NULL,
  `storeDate` date NOT NULL,
  `storeDescription` text NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `userId` int(11) NOT NULL,
  PRIMARY KEY (`sparepartstoreId`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `sparepartstore`
--

INSERT INTO `sparepartstore` VALUES
(1,'مخزن قطع الغيار','2026-02-03','مخزن قطع الغيار',0,1);

--
-- Table structure for table `sparepartstoredetails`
--

CREATE TABLE `sparepartstoredetails` (
  `sparepartstoredetailid` int(11) NOT NULL AUTO_INCREMENT,
  `sparepartid` int(11) NOT NULL,
  `sparepartstoreId` int(11) NOT NULL,
  `partquantity` decimal(10,2) NOT NULL,
  `userid` int(11) NOT NULL,
  `sparepartstoredetaildate` date NOT NULL,
  PRIMARY KEY (`sparepartstoredetailid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `sparepartstoredetails`
--


--
-- Table structure for table `sparepartstorereport`
--

CREATE TABLE `sparepartstorereport` (
  `sparepartstorereportid` int(11) NOT NULL AUTO_INCREMENT,
  `sparepartid` int(11) NOT NULL,
  `sparepartstoreId` int(11) NOT NULL,
  `partquantity` decimal(10,2) NOT NULL,
  `storereporttype` int(11) NOT NULL COMMENT '0 => plus- 1 => minus',
  `storereportmodelid` int(11) NOT NULL,
  `processname` varchar(256) NOT NULL,
  `tablename` varchar(256) NOT NULL,
  `partbefore` decimal(10,2) NOT NULL,
  `partafter` decimal(10,2) NOT NULL,
  `userid` int(11) NOT NULL,
  `storereportdate` date NOT NULL,
  PRIMARY KEY (`sparepartstorereportid`),
  KEY `sparepartid` (`sparepartid`,`sparepartstoreId`),
  KEY `sparepartstoreId` (`sparepartstoreId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `sparepartstorereport`
--


--
-- Table structure for table `stage`
--

CREATE TABLE `stage` (
  `stageId` int(11) NOT NULL AUTO_INCREMENT,
  `stagename` varchar(255) NOT NULL,
  `productId` int(11) NOT NULL,
  `totalhour` decimal(10,2) NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `date` varchar(255) NOT NULL,
  PRIMARY KEY (`stageId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `stage`
--


--
-- Table structure for table `stagestep`
--

CREATE TABLE `stagestep` (
  `stagestepId` int(11) NOT NULL AUTO_INCREMENT,
  `stageId` int(11) NOT NULL,
  `stepno` int(11) NOT NULL,
  `operationId` int(11) NOT NULL,
  PRIMARY KEY (`stagestepId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `stagestep`
--


--
-- Table structure for table `store`
--

CREATE TABLE `store` (
  `storeId` int(11) NOT NULL AUTO_INCREMENT,
  `storeName` varchar(256) NOT NULL,
  `storeDate` date NOT NULL,
  `storeDescription` text DEFAULT NULL,
  `conditions` int(1) NOT NULL,
  `userId` int(11) NOT NULL,
  `treeId` int(11) NOT NULL DEFAULT 0,
  `treeIdBetween` int(11) NOT NULL DEFAULT 0,
  `webApiId` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`storeId`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `store`
--

INSERT INTO `store` VALUES
(1,'المخزن الرئيسي','2026-02-03','المخزن الرئيسي',0,1,382,51,0);

--
-- Table structure for table `storedetail`
--

CREATE TABLE `storedetail` (
  `storedetailid` int(11) NOT NULL AUTO_INCREMENT,
  `productid` int(11) NOT NULL,
  `storeid` int(11) NOT NULL,
  `productquantity` decimal(10,2) NOT NULL,
  `userid` int(11) NOT NULL,
  `storedetaildate` date NOT NULL,
  `unittype` int(11) NOT NULL DEFAULT 0,
  `inUse` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0 free - 1 in use means to stop changing debt till it is free again',
  PRIMARY KEY (`storedetailid`),
  KEY `productid` (`productid`,`storeid`),
  KEY `storeid` (`storeid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `storedetail`
--


--
-- Table structure for table `storemovement`
--

CREATE TABLE `storemovement` (
  `transferproductid` int(11) NOT NULL AUTO_INCREMENT,
  `storeidfrom` int(11) NOT NULL,
  `storeidto` int(11) NOT NULL,
  `productid` int(11) NOT NULL,
  `transferproductamount` decimal(10,2) NOT NULL,
  `transferproductdate` date NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `comment` text NOT NULL,
  `operationnum` bigint(20) NOT NULL DEFAULT 0,
  `deloperationnum` int(11) NOT NULL DEFAULT -1,
  `driverid` int(11) DEFAULT NULL,
  `drivertimeout` int(11) DEFAULT NULL,
  `driverdate` datetime DEFAULT NULL,
  `delivererid` int(11) DEFAULT NULL,
  `deliverdate` datetime DEFAULT NULL,
  `storetype` int(11) DEFAULT 0 COMMENT '0=>',
  `priceType` varchar(191) NOT NULL DEFAULT '',
  `sizeid` int(11) NOT NULL DEFAULT 0,
  `colorid` int(11) NOT NULL DEFAULT 0,
  `price` decimal(10,2) NOT NULL DEFAULT 0.00,
  `buyPricesHistoryBookData` text NOT NULL,
  `expireDate` text NOT NULL DEFAULT '',
  `expireDateTo` text NOT NULL DEFAULT '',
  `maincomment` text NOT NULL DEFAULT '',
  `isPrepared` tinyint(4) NOT NULL DEFAULT 0,
  `useridPrepared` int(11) NOT NULL DEFAULT 0,
  `dailyentryid` int(11) NOT NULL DEFAULT 0,
  `recieveType` tinyint(4) NOT NULL,
  `recieveUserid` int(11) NOT NULL,
  `recieveTime` datetime NOT NULL,
  PRIMARY KEY (`transferproductid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `storemovement`
--


--
-- Table structure for table `storemovement_main`
--

CREATE TABLE `storemovement_main` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `userid` int(11) NOT NULL,
  `delbyuserid` int(11) DEFAULT NULL,
  `delbyid` int(11) DEFAULT NULL,
  `sysdate` datetime NOT NULL,
  `conditions` tinyint(4) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `storemovement_main`
--


--
-- Table structure for table `storereport`
--

CREATE TABLE `storereport` (
  `storereportid` int(11) NOT NULL AUTO_INCREMENT,
  `productid` int(11) NOT NULL,
  `storeid` int(11) NOT NULL,
  `productquantity` decimal(10,3) NOT NULL,
  `storereporttype` int(11) NOT NULL COMMENT '0 => plus- 1 => minus',
  `storereportmodelid` int(11) NOT NULL,
  `processname` varchar(256) NOT NULL,
  `tablename` varchar(256) NOT NULL,
  `productbefore` decimal(10,3) NOT NULL,
  `productafter` decimal(10,3) NOT NULL,
  `userid` int(11) NOT NULL,
  `storereportdate` date NOT NULL,
  `sizeid` int(11) NOT NULL DEFAULT 0,
  `colorid` int(11) NOT NULL DEFAULT 0,
  `unittype` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`storereportid`),
  KEY `productid` (`productid`,`storeid`),
  KEY `storeid` (`storeid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `storereport`
--


--
-- Table structure for table `studentabsences`
--

CREATE TABLE `studentabsences` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `onlys` int(11) unsigned DEFAULT NULL,
  `del` int(11) unsigned DEFAULT NULL,
  `arrivedtime` int(11) unsigned DEFAULT NULL,
  `addtoday` datetime DEFAULT NULL,
  `adduserid` double DEFAULT NULL,
  `uniqid` int(11) unsigned DEFAULT NULL,
  `studentid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `todaysend` date DEFAULT NULL,
  `timesend` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deviceid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` int(11) unsigned DEFAULT NULL,
  `studentsubjectid` int(11) unsigned DEFAULT NULL,
  `studentsubjectgroupid` int(11) unsigned DEFAULT NULL,
  `studentaddsubjectid` int(11) unsigned DEFAULT NULL,
  `studentaddsubjectdetailid` int(11) unsigned DEFAULT NULL,
  `deltoday` datetime DEFAULT NULL,
  `deluserid` double DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `studentabsences`
--


--
-- Table structure for table `studentaddsubjectdetails`
--

CREATE TABLE `studentaddsubjectdetails` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `del` int(11) unsigned DEFAULT NULL,
  `addtoday` datetime DEFAULT NULL,
  `adduserid` double DEFAULT NULL,
  `studentid` int(11) unsigned DEFAULT NULL,
  `studentsubjectid` int(11) unsigned DEFAULT NULL,
  `studentsubjectgroupid` int(11) unsigned DEFAULT NULL,
  `studentaddsubjectid` int(11) unsigned DEFAULT NULL,
  `deltoday` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deluserid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `studentname` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `studentphone` int(11) unsigned DEFAULT NULL,
  `deviceid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `subjectname` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `subjectprice` tinyint(1) unsigned DEFAULT NULL,
  `subjectgroupname` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `subjectgroupprice` int(11) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `studentaddsubjectdetails`
--


--
-- Table structure for table `studentaddsubjects`
--

CREATE TABLE `studentaddsubjects` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `del` int(11) unsigned DEFAULT NULL,
  `addtoday` datetime DEFAULT NULL,
  `adduserid` double DEFAULT NULL,
  `deltoday` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deluserid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `studentsubjectid` int(11) unsigned DEFAULT NULL,
  `studentsubjectgroupid` int(11) unsigned DEFAULT NULL,
  `studentid` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deviceid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `studentaddsubjects`
--


--
-- Table structure for table `students`
--

CREATE TABLE `students` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `del` int(11) unsigned DEFAULT NULL,
  `addtoday` datetime DEFAULT NULL,
  `adduserid` double DEFAULT NULL,
  `deltoday` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deluserid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `studentname` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `studentdatebirth` double DEFAULT NULL,
  `studentnumber` double DEFAULT NULL,
  `idnumber` double DEFAULT NULL,
  `studentphone` double DEFAULT NULL,
  `parentsname` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `parentsphone` double DEFAULT NULL,
  `studentaddress` tinyint(1) unsigned DEFAULT NULL,
  `clientid` int(11) unsigned DEFAULT NULL,
  `branchid` double DEFAULT NULL,
  `studentimage` tinyint(1) unsigned DEFAULT NULL,
  `studentnote` tinyint(1) unsigned DEFAULT NULL,
  `studentaddsubjectid` tinyint(1) unsigned DEFAULT NULL,
  `studentsubjectid` tinyint(1) unsigned DEFAULT NULL,
  `studentsubjectgroupid` tinyint(1) unsigned DEFAULT NULL,
  `studentspaymentsystemid` tinyint(1) unsigned DEFAULT NULL,
  `studentaddsubjectdetailid` tinyint(1) unsigned DEFAULT NULL,
  `paymonths` int(11) unsigned DEFAULT NULL,
  `paytype` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `paytypenum` int(11) unsigned DEFAULT NULL,
  `payprice` int(11) unsigned DEFAULT NULL,
  `countmonths` tinyint(1) unsigned DEFAULT NULL,
  `newprice` tinyint(1) unsigned DEFAULT NULL,
  `paystartdate` date DEFAULT NULL,
  `payenddate` date DEFAULT NULL,
  `studentspayid` int(11) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `students`
--


--
-- Table structure for table `studentsetting`
--

CREATE TABLE `studentsetting` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `updateuserid` double DEFAULT NULL,
  `studentorplayer` tinyint(1) unsigned DEFAULT NULL,
  `paymentsystems1` int(11) unsigned DEFAULT NULL,
  `paymentsystems2` tinyint(1) unsigned DEFAULT NULL,
  `paymentsystems3` tinyint(1) unsigned DEFAULT NULL,
  `showdel` tinyint(1) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `studentsetting`
--


--
-- Table structure for table `studentsexams`
--

CREATE TABLE `studentsexams` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `deltoday` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deluserid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `del` int(11) unsigned DEFAULT NULL,
  `addtoday` datetime DEFAULT NULL,
  `adduserid` double DEFAULT NULL,
  `studentaddsubjectid` int(11) unsigned DEFAULT NULL,
  `studentsubjectid` int(11) unsigned DEFAULT NULL,
  `studentsubjectgroupid` int(11) unsigned DEFAULT NULL,
  `studentid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `examname` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `greatdegree` int(11) unsigned DEFAULT NULL,
  `examsstudent` int(11) unsigned DEFAULT NULL,
  `updatetoday` datetime DEFAULT NULL,
  `updateuserid` double DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `studentsexams`
--


--
-- Table structure for table `studentsexamsval`
--

CREATE TABLE `studentsexamsval` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `studentid` int(11) unsigned DEFAULT NULL,
  `examsvalue` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `examspresence` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `studentaddsubjectid` int(11) unsigned DEFAULT NULL,
  `studentsubjectgroupid` int(11) unsigned DEFAULT NULL,
  `studentsubjectid` int(11) unsigned DEFAULT NULL,
  `del` int(11) unsigned DEFAULT NULL,
  `addtoday` datetime DEFAULT NULL,
  `adduserid` double DEFAULT NULL,
  `deltoday` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deluserid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `studentsexamid` int(11) unsigned DEFAULT NULL,
  `updatetoday` datetime DEFAULT NULL,
  `updateuserid` double DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `studentsexamsval`
--


--
-- Table structure for table `studentspaymentsystems`
--

CREATE TABLE `studentspaymentsystems` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `del` int(11) unsigned DEFAULT NULL,
  `addtoday` datetime DEFAULT NULL,
  `adduserid` double DEFAULT NULL,
  `deltoday` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deluserid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `paymentname` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `paymentprice` int(11) unsigned DEFAULT NULL,
  `paymentmonth` int(11) unsigned DEFAULT NULL,
  `studentaddsubjectid` int(11) unsigned DEFAULT NULL,
  `studentsubjectid` int(11) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `studentspaymentsystems`
--


--
-- Table structure for table `studentspays`
--

CREATE TABLE `studentspays` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `del` int(11) unsigned DEFAULT NULL,
  `addtoday` datetime DEFAULT NULL,
  `adduserid` double DEFAULT NULL,
  `deltoday` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deluserid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `studentaddsubjectid` int(11) unsigned DEFAULT NULL,
  `studentsubjectid` int(11) unsigned DEFAULT NULL,
  `studentsubjectgroupid` int(11) unsigned DEFAULT NULL,
  `studentspaymentsystemid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `studentaddsubjectdetailid` int(11) unsigned DEFAULT NULL,
  `studentid` int(11) unsigned DEFAULT NULL,
  `paymonths` int(11) unsigned DEFAULT NULL,
  `paytype` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `paytypenum` int(11) unsigned DEFAULT NULL,
  `payprice` int(11) unsigned DEFAULT NULL,
  `countmonths` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `newprice` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `paystartdate` date DEFAULT NULL,
  `payenddate` date DEFAULT NULL,
  `paytypered` tinyint(1) unsigned DEFAULT NULL,
  `paykind` int(11) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `studentspays`
--


--
-- Table structure for table `studentsubjectgroupdays`
--

CREATE TABLE `studentsubjectgroupdays` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `del` int(11) unsigned DEFAULT NULL,
  `addtoday` datetime DEFAULT NULL,
  `adduserid` double DEFAULT NULL,
  `deltoday` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deluserid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `studentsubjectid` int(11) unsigned DEFAULT NULL,
  `studentsubjectgroupid` int(11) unsigned DEFAULT NULL,
  `dayar` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `dayen` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `day` int(11) unsigned DEFAULT NULL,
  `timeform` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `timeto` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `useit` int(11) unsigned DEFAULT NULL,
  `updatetoday` datetime DEFAULT NULL,
  `updateuserid` double DEFAULT NULL,
  `deviceid` tinyint(1) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `studentsubjectgroupdays`
--


--
-- Table structure for table `studentsubjectgroups`
--

CREATE TABLE `studentsubjectgroups` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `del` int(11) unsigned DEFAULT NULL,
  `addtoday` datetime DEFAULT NULL,
  `adduserid` double DEFAULT NULL,
  `deltoday` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deluserid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `studentsubjectid` int(11) unsigned DEFAULT NULL,
  `subjectgroupname` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `subjectgroupprice` int(11) unsigned DEFAULT NULL,
  `useit` int(11) unsigned DEFAULT NULL,
  `updatetoday` datetime DEFAULT NULL,
  `updateuserid` double DEFAULT NULL,
  `deviceid` tinyint(1) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `studentsubjectgroups`
--


--
-- Table structure for table `studentsubjects`
--

CREATE TABLE `studentsubjects` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `del` int(11) unsigned DEFAULT NULL,
  `addtoday` datetime DEFAULT NULL,
  `adduserid` double DEFAULT NULL,
  `deltoday` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deluserid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `subjectname` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `subjectprice` int(11) unsigned DEFAULT NULL,
  `ipaddress` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deviceid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `useit` int(11) unsigned DEFAULT NULL,
  `incometypeid` int(11) unsigned DEFAULT NULL,
  `updatetoday` datetime DEFAULT NULL,
  `updateuserid` double DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `studentsubjects`
--


--
-- Table structure for table `subvention`
--

CREATE TABLE `subvention` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `del` int(11) unsigned DEFAULT NULL,
  `sysdate` datetime DEFAULT NULL,
  `user_id` int(11) unsigned DEFAULT NULL,
  `charity_id` int(11) unsigned DEFAULT NULL,
  `beneficier_id` int(11) unsigned DEFAULT NULL,
  `financial_aid` varchar(191) DEFAULT NULL,
  `inkind_aid` varchar(191) DEFAULT NULL,
  `guarantee_type_id` int(11) unsigned DEFAULT NULL,
  `notes` varchar(191) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `subvention`
--


--
-- Table structure for table `subventionpay`
--

CREATE TABLE `subventionpay` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `del` int(11) unsigned DEFAULT NULL,
  `sysdate` datetime DEFAULT NULL,
  `user_id` int(11) unsigned DEFAULT NULL,
  `charity_id` int(11) unsigned DEFAULT NULL,
  `benefeciary_id` int(11) unsigned DEFAULT NULL,
  `financial_aid` int(11) unsigned DEFAULT NULL,
  `inkind_aid` varchar(191) DEFAULT NULL,
  `notes` varchar(191) DEFAULT NULL,
  `month` varchar(191) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `subventionpay`
--


--
-- Table structure for table `suppay`
--

CREATE TABLE `suppay` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idsupdeptchange` int(11) NOT NULL,
  `paytype` int(11) NOT NULL DEFAULT 0,
  `accountid` int(11) DEFAULT NULL,
  `del` int(11) NOT NULL DEFAULT 0,
  `bankid` int(11) DEFAULT NULL,
  `checkno` int(11) DEFAULT NULL,
  `beneficiaryname` varchar(255) DEFAULT NULL,
  `chckdate` date DEFAULT NULL,
  `chckimage` varchar(255) DEFAULT NULL,
  `senderbank` varchar(50) DEFAULT NULL,
  `details` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `suppay`
--


--
-- Table structure for table `supplier`
--

CREATE TABLE `supplier` (
  `supplierid` int(11) NOT NULL AUTO_INCREMENT,
  `suppliername` varchar(256) NOT NULL,
  `supplieraddress` varchar(256) DEFAULT NULL,
  `supplierphone` varchar(20) DEFAULT NULL,
  `suppliercurrentDebt` decimal(10,2) DEFAULT 0.00,
  `supplierdetails` text DEFAULT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `userid` int(11) NOT NULL,
  `supplierdate` date NOT NULL,
  `dailyentryid` int(11) NOT NULL DEFAULT 0,
  `category_id` varchar(200) DEFAULT NULL,
  `typesupplier_id` varchar(200) DEFAULT NULL,
  `linkedClientId` int(11) NOT NULL DEFAULT 0,
  `inUse` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0 free - 1 in use means to stop changing debt till it is free again',
  `suppliercode` varchar(256) NOT NULL,
  `goverareaid` varchar(256) NOT NULL,
  `namepayeecheck` varchar(256) NOT NULL,
  `suppliermobile` varchar(256) NOT NULL,
  `warrantyOfficer` varchar(256) NOT NULL,
  `warrantymobile` varchar(256) NOT NULL,
  `sellername` varchar(256) NOT NULL,
  `sellermobile` varchar(256) NOT NULL,
  `taxnumber` varchar(255) DEFAULT NULL,
  `supplierTypeForTree` tinyint(4) NOT NULL DEFAULT 0,
  `treeId` int(11) NOT NULL DEFAULT 0,
  `sullpierCurrencyid` int(11) NOT NULL DEFAULT 1,
  `suppliercurrentDebtInCurrency` decimal(10,2) DEFAULT 0.00,
  `webApiId` int(11) NOT NULL DEFAULT 0,
  `shippingDiscountPer` float NOT NULL,
  PRIMARY KEY (`supplierid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `supplier`
--

INSERT INTO `supplier` VALUES
(1,'مباشر','','',0.00,'مباشر',0,1,'2026-02-03',0,NULL,NULL,0,0,'','','','','','','','',NULL,0,0,1,0.00,0,0);

--
-- Table structure for table `supplierdebtchange`
--

CREATE TABLE `supplierdebtchange` (
  `supplierdebtchangeid` int(11) NOT NULL AUTO_INCREMENT,
  `supplierid` int(11) NOT NULL,
  `supplierdebtchangebefore` decimal(10,2) NOT NULL,
  `supplierdebtchangeamount` decimal(10,2) NOT NULL,
  `supplierdebtchangetype` int(11) NOT NULL COMMENT '0 => plus- 1 => minus',
  `processname` varchar(256) NOT NULL,
  `supplierdebtchangemodelid` int(11) NOT NULL,
  `supplierdebtchangeafter` decimal(10,2) NOT NULL,
  `supplierdebtchangedate` datetime NOT NULL,
  `userid` int(11) NOT NULL,
  `tablename` varchar(500) NOT NULL,
  `comment` text DEFAULT NULL,
  `del` int(11) NOT NULL DEFAULT 0,
  `dailyentryid` int(11) NOT NULL DEFAULT 0,
  `saveid` int(11) DEFAULT NULL,
  `costcenterid` int(11) DEFAULT NULL,
  `currencyId` int(11) NOT NULL,
  `conversionFactor` float NOT NULL,
  `payedInCurrency` decimal(10,2) NOT NULL,
  `saveConversionFactor` float NOT NULL,
  `debtchangbeforeInSupplierCurrency` decimal(10,2) NOT NULL,
  `debtchangamountInSupplierCurrency` decimal(10,2) NOT NULL,
  `debtchangafterInSupplierCurrency` decimal(10,2) NOT NULL,
  `paySerialNo` int(11) NOT NULL,
  `tagids` varchar(255) NOT NULL DEFAULT '0',
  PRIMARY KEY (`supplierdebtchangeid`),
  KEY `idx_supplierdebtchange` (`tablename`(255)),
  KEY `supplierid` (`supplierid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `supplierdebtchange`
--


--
-- Table structure for table `supplieropen`
--

CREATE TABLE `supplieropen` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `value` float NOT NULL,
  `treeId` int(11) NOT NULL,
  `dailyentryid` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `sysdate` datetime NOT NULL,
  `del` tinyint(4) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `supplieropen`
--


--
-- Table structure for table `supplieropendebtchange`
--

CREATE TABLE `supplieropendebtchange` (
  `supplieropendebtchangeid` int(11) NOT NULL AUTO_INCREMENT,
  `opensupplierid` int(11) NOT NULL,
  `supplierdebtchangebefore` decimal(10,2) NOT NULL,
  `supplierdebtchangeamount` decimal(10,2) NOT NULL,
  `supplierdebtchangetype` int(11) NOT NULL COMMENT '0 => plus- 1 => minus',
  `processname` varchar(256) NOT NULL,
  `supplierdebtchangemodelid` int(11) NOT NULL,
  `supplierdebtchangeafter` decimal(10,2) NOT NULL,
  `supplierdebtchangedate` datetime NOT NULL,
  `userid` int(11) NOT NULL,
  `tablename` varchar(500) NOT NULL,
  `comment` text DEFAULT NULL,
  `del` int(11) NOT NULL DEFAULT 0,
  `dailyentryid` int(11) NOT NULL DEFAULT 0,
  `saveid` int(11) DEFAULT NULL,
  `costcenterid` int(11) DEFAULT NULL,
  `currencyId` int(11) NOT NULL,
  `conversionFactor` float NOT NULL,
  `payedInCurrency` decimal(10,2) NOT NULL,
  `saveConversionFactor` float NOT NULL,
  PRIMARY KEY (`supplieropendebtchangeid`),
  KEY `idx_supplierdebtchange` (`tablename`(255)),
  KEY `supplierid` (`opensupplierid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `supplieropendebtchange`
--


--
-- Table structure for table `supplieropenexchangeorclosing`
--

CREATE TABLE `supplieropenexchangeorclosing` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `thetype` tinyint(4) NOT NULL COMMENT '0 exchange , 1 closing',
  `supplieropenid` int(11) NOT NULL,
  `saveid` int(11) NOT NULL,
  `assetorexpense` tinyint(4) NOT NULL COMMENT '0 asset, 1 expense',
  `assetorexpenseid` int(11) NOT NULL,
  `val` float NOT NULL,
  `dailyentryid` int(11) NOT NULL,
  `note` text NOT NULL,
  `userid` int(11) NOT NULL,
  `sysdate` datetime NOT NULL,
  `del` tinyint(4) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `supplieropenexchangeorclosing`
--


--
-- Table structure for table `tamweenbill`
--

CREATE TABLE `tamweenbill` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `clientid` int(11) NOT NULL,
  `quantity` int(11) NOT NULL,
  `billdate` datetime NOT NULL,
  `billMonthDays` int(11) NOT NULL,
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `userid` int(11) NOT NULL,
  `sysdate` datetime NOT NULL,
  `del` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `tamweenbill`
--


--
-- Table structure for table `tamweenda3mstatus`
--

CREATE TABLE `tamweenda3mstatus` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `clientid` int(11) NOT NULL,
  `month` date NOT NULL,
  `tamweenStatus` tinyint(4) NOT NULL COMMENT '0 client didnot take it,1 client take it',
  `da3mStatus` tinyint(4) NOT NULL COMMENT '0 client didnot take it,1 client take it,   bread is in da3m',
  `userid` int(11) NOT NULL,
  `sysdate` datetime NOT NULL,
  `del` tinyint(4) NOT NULL,
  `useridTamween` int(11) NOT NULL,
  `sysdateTamween` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `tamweenda3mstatus`
--


--
-- Table structure for table `tamweenremainstatus`
--

CREATE TABLE `tamweenremainstatus` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `clientid` int(11) NOT NULL,
  `month` date NOT NULL,
  `remainstatus` tinyint(4) NOT NULL COMMENT '0 didnot take it, 1 take it',
  `userid` int(11) NOT NULL,
  `sysdate` datetime NOT NULL,
  `del` tinyint(4) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `tamweenremainstatus`
--


--
-- Table structure for table `taskorder`
--

CREATE TABLE `taskorder` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(255) NOT NULL,
  `startdate` date NOT NULL,
  `enddate` date NOT NULL,
  `productId` int(11) NOT NULL,
  `num` decimal(10,2) NOT NULL,
  `userId` int(11) NOT NULL,
  `thedate` date NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0 COMMENT '0 for notdel- 1for del',
  `clientid` int(11) NOT NULL,
  `file` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `taskorder`
--


--
-- Table structure for table `taskorderproducts`
--

CREATE TABLE `taskorderproducts` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `taskorderid` int(11) NOT NULL,
  `productid` int(11) NOT NULL,
  `unitid` int(11) NOT NULL,
  `quantity` decimal(10,2) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `taskorderproducts`
--


--
-- Table structure for table `taskscases`
--

CREATE TABLE `taskscases` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `del` int(11) unsigned DEFAULT NULL,
  `taskcase` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `taskscases`
--

INSERT INTO `taskscases` VALUES
(1,0,'مهمة جديده'),
(2,0,'تحت التنÙيذ'),
(3,0,'تم التنÙيذ'),
(4,0,'لم يتم التنÙيذ'),
(5,0,'تم الالغاء');

--
-- Table structure for table `temreturnsellbill`
--

CREATE TABLE `temreturnsellbill` (
  `returnsellbillid` int(11) NOT NULL AUTO_INCREMENT,
  `returnsellbilldate` date DEFAULT NULL,
  `returnsellbillserial` varchar(255) DEFAULT NULL,
  `returnsellbillclientid` int(11) NOT NULL,
  `returnsellbilltotaldeptbefor` decimal(10,2) NOT NULL,
  `returnsellbilltotaldeptafter` decimal(10,2) NOT NULL,
  `returnsellbilldiscount` varchar(255) NOT NULL DEFAULT '',
  `returnsellbilldiscounttype` int(11) NOT NULL DEFAULT 1 COMMENT '1 for direct- 2 for percent',
  `returnsellbilltotalbill` decimal(10,2) NOT NULL,
  `returnsellbillaftertotalbill` decimal(10,2) NOT NULL,
  `returnsellbilltotalpayed` decimal(10,2) NOT NULL,
  `returnsellbillfinalbill` decimal(10,2) NOT NULL,
  `returnsellbillstoreid` int(11) NOT NULL,
  `returnsellbillsysdate` date NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `returnsellbillclientname` text NOT NULL,
  `returnsellbillsaveid` int(11) NOT NULL,
  `returnsellbildirectpayment` int(11) NOT NULL DEFAULT 0,
  `billnameid` int(11) NOT NULL,
  `sellerid` int(11) NOT NULL,
  `tempclientName` varchar(255) NOT NULL,
  `returnsellQuantity` decimal(10,2) NOT NULL,
  `deletedsellid` int(11) NOT NULL DEFAULT 0,
  `controlname` varchar(255) NOT NULL DEFAULT '0',
  `tax` decimal(10,2) NOT NULL DEFAULT 0.00,
  PRIMARY KEY (`returnsellbillid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `temreturnsellbill`
--


--
-- Table structure for table `temreturnsellbilldetail`
--

CREATE TABLE `temreturnsellbilldetail` (
  `returnsellbilldetailid` int(11) NOT NULL AUTO_INCREMENT,
  `buyprice` decimal(10,2) NOT NULL,
  `parcode` varchar(256) NOT NULL DEFAULT '',
  `returnsellbillid` int(11) NOT NULL,
  `returnsellbilldetailcatid` int(11) NOT NULL,
  `returnsellbilldetailproductid` int(11) NOT NULL,
  `returnsellbilldetailquantity` decimal(10,2) NOT NULL,
  `returnsellbilldetailprice` decimal(10,2) NOT NULL,
  `returnsellbilldetailtotalprice` decimal(10,2) NOT NULL,
  `conditions` decimal(10,2) NOT NULL,
  `note` varchar(256) DEFAULT NULL,
  `pricetype` tinyint(4) NOT NULL DEFAULT 0,
  `discountvalue` decimal(10,2) NOT NULL,
  `productunitid` int(11) NOT NULL,
  `buydiscount` decimal(10,2) NOT NULL,
  `buydiscounttype` int(11) NOT NULL,
  `storeid` int(11) NOT NULL DEFAULT 0,
  `actualqty` int(11) NOT NULL,
  PRIMARY KEY (`returnsellbilldetailid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `temreturnsellbilldetail`
--


--
-- Table structure for table `temsellandruternbilldetail`
--

CREATE TABLE `temsellandruternbilldetail` (
  `buyprice` decimal(10,2) NOT NULL,
  `parcode` varchar(256) NOT NULL DEFAULT '',
  `sellbilldetailid` int(11) NOT NULL AUTO_INCREMENT,
  `sellbillid` int(11) NOT NULL,
  `sellbilldetailcatid` int(11) NOT NULL,
  `sellbilldetailproductid` int(11) NOT NULL,
  `sellbilldetailquantity` decimal(10,2) NOT NULL,
  `sellbilldetailprice` decimal(10,2) NOT NULL,
  `sellbilldetailtotalprice` decimal(10,2) NOT NULL,
  `discountvalue` decimal(10,2) NOT NULL,
  `note` varchar(256) DEFAULT NULL,
  `pricetype` tinyint(4) NOT NULL DEFAULT 0,
  `sellbilldetaildate` date NOT NULL,
  `selltype` int(11) NOT NULL COMMENT '0 for sell 1 for return',
  `productunitid` int(11) NOT NULL,
  `buydiscount` decimal(10,2) NOT NULL,
  `buydiscounttype` int(11) NOT NULL,
  `storeid` int(11) NOT NULL DEFAULT 0,
  `actualqty` int(11) NOT NULL,
  PRIMARY KEY (`sellbilldetailid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `temsellandruternbilldetail`
--


--
-- Table structure for table `temsellbill`
--

CREATE TABLE `temsellbill` (
  `sellbillid` int(11) NOT NULL AUTO_INCREMENT,
  `sellbilldate` date DEFAULT NULL,
  `sellbillserial` varchar(255) DEFAULT NULL,
  `sellbillclientid` int(11) NOT NULL DEFAULT 0,
  `sellbilltotaldeptbefor` decimal(10,2) NOT NULL,
  `sellbilltotaldeptafter` decimal(10,2) NOT NULL,
  `sellbilldiscount` varchar(255) NOT NULL DEFAULT '',
  `sellbilldiscounttype` int(11) NOT NULL DEFAULT 0,
  `sellbilltotalbill` decimal(10,2) NOT NULL,
  `sellbillaftertotalbill` decimal(10,2) NOT NULL,
  `sellbilltotalpayed` decimal(10,2) NOT NULL,
  `sellbillfinalbill` decimal(10,2) NOT NULL,
  `sellbillstoreid` int(11) NOT NULL,
  `sellbillsysdate` date NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `sellbillclientname` text NOT NULL,
  `sellbillsaveid` int(11) NOT NULL,
  `sellbildirectpayment` int(11) NOT NULL,
  `billnameid` int(11) NOT NULL,
  `sellerid` int(11) NOT NULL,
  `tempclientName` varchar(255) NOT NULL,
  `sellQuantity` decimal(10,2) NOT NULL,
  `deletedsellid` int(11) NOT NULL,
  `controlname` varchar(255) NOT NULL,
  `tax` decimal(10,2) NOT NULL DEFAULT 0.00,
  PRIMARY KEY (`sellbillid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `temsellbill`
--


--
-- Table structure for table `temsellbillandrutern`
--

CREATE TABLE `temsellbillandrutern` (
  `sellbillid` int(11) NOT NULL AUTO_INCREMENT,
  `sellbilldate` date DEFAULT NULL,
  `sellbillserial` varchar(255) DEFAULT NULL,
  `sellbillclientid` int(11) NOT NULL DEFAULT 0,
  `sellbilltotaldeptbefor` decimal(10,2) NOT NULL,
  `sellbilltotaldeptafter` decimal(10,2) NOT NULL,
  `sellbilldiscount` varchar(255) NOT NULL DEFAULT '',
  `sellbilldiscounttype` int(11) NOT NULL DEFAULT 0,
  `sellbilltotalbill` decimal(10,2) NOT NULL,
  `sellbillaftertotalbill` decimal(10,2) NOT NULL,
  `sellbilltotalpayed` decimal(10,2) NOT NULL,
  `sellbillfinalbill` decimal(10,2) NOT NULL,
  `sellbillstoreid` int(11) NOT NULL,
  `sellbillsysdate` date NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `sellbillclientname` text NOT NULL,
  `sellbillsaveid` int(11) NOT NULL,
  `sellbildirectpayment` int(11) NOT NULL,
  `billnameid` int(11) NOT NULL,
  `sellerid` int(11) NOT NULL,
  `sellbillprice` decimal(10,2) NOT NULL,
  `returnsellbillprice` decimal(10,2) NOT NULL,
  `tempclientName` varchar(255) NOT NULL,
  `sellQuantity` decimal(10,2) NOT NULL,
  `returnsellQuantity` decimal(10,2) NOT NULL,
  `deletedsellid` int(11) NOT NULL,
  `controlname` varchar(255) NOT NULL,
  `tax` decimal(10,2) NOT NULL DEFAULT 0.00,
  PRIMARY KEY (`sellbillid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `temsellbillandrutern`
--


--
-- Table structure for table `temsellbilldetail`
--

CREATE TABLE `temsellbilldetail` (
  `buyprice` decimal(10,2) NOT NULL,
  `parcode` varchar(256) NOT NULL DEFAULT '',
  `sellbilldetailid` int(11) NOT NULL AUTO_INCREMENT,
  `sellbillid` int(11) NOT NULL,
  `sellbilldetailcatid` int(11) NOT NULL,
  `sellbilldetailproductid` int(11) NOT NULL,
  `sellbilldetailquantity` decimal(10,2) NOT NULL,
  `sellbilldetailprice` decimal(10,2) NOT NULL,
  `sellbilldetailtotalprice` decimal(10,2) NOT NULL,
  `discountvalue` decimal(10,2) NOT NULL,
  `note` varchar(256) DEFAULT NULL,
  `pricetype` tinyint(4) NOT NULL DEFAULT 0,
  `sellbilldetaildate` date NOT NULL,
  `productunitid` int(11) NOT NULL,
  `buydiscount` decimal(10,2) NOT NULL,
  `buydiscounttype` int(11) NOT NULL,
  `storeid` int(11) NOT NULL DEFAULT 0,
  `actualqty` int(11) NOT NULL,
  PRIMARY KEY (`sellbilldetailid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `temsellbilldetail`
--


--
-- Table structure for table `toworkshoporder`
--

CREATE TABLE `toworkshoporder` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `driverIdBack` int(11) NOT NULL,
  `deliverIdBack` int(11) NOT NULL,
  `orderNo` varchar(100) NOT NULL,
  `driverId` int(11) NOT NULL,
  `workshopId` int(11) NOT NULL,
  `productNo` int(11) NOT NULL,
  `deliverWorkshopDate` datetime NOT NULL,
  `deliverId` int(11) NOT NULL,
  `branchId` int(11) NOT NULL,
  `orderStatus` int(11) NOT NULL,
  `sysDate` datetime NOT NULL,
  `del` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `recieveWorkshopDate` datetime NOT NULL,
  `deliverBranchDate` datetime NOT NULL,
  `recieveBranchDate` datetime NOT NULL,
  `drivertimeout` int(11) NOT NULL DEFAULT 0,
  `driverdelay` int(11) NOT NULL DEFAULT 0,
  `workshoptimeout` int(11) NOT NULL DEFAULT 0,
  `workshopdelay` int(11) NOT NULL DEFAULT 0,
  `drivertimeoutback` int(11) NOT NULL DEFAULT 0,
  `driverdelayback` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `toworkshoporder`
--


--
-- Table structure for table `toworkshoporderbill`
--

CREATE TABLE `toworkshoporderbill` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `toworkshoporderid` int(11) NOT NULL,
  `billid` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `toworkshoporderbill`
--


--
-- Table structure for table `transferbtweenbankaccount`
--

CREATE TABLE `transferbtweenbankaccount` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `bankidfrom` int(11) NOT NULL,
  `accountidfrom` int(11) NOT NULL,
  `bankidto` int(11) NOT NULL,
  `accountidto` int(11) NOT NULL,
  `transfervalue` decimal(10,2) NOT NULL,
  `transferdate` datetime NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` tinyint(4) NOT NULL,
  `dailyentryid` int(11) NOT NULL,
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `transferbtweenbankaccount`
--


--
-- Table structure for table `transferclientaccounts`
--

CREATE TABLE `transferclientaccounts` (
  `transferid` int(11) NOT NULL AUTO_INCREMENT,
  `clientidfrom` int(11) NOT NULL,
  `clientidto` int(11) NOT NULL,
  `transfervalue` decimal(10,2) NOT NULL,
  `transferdate` date NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `dailyentryid` int(11) NOT NULL DEFAULT 0,
  `comment` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`transferid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `transferclientaccounts`
--


--
-- Table structure for table `transfermoney`
--

CREATE TABLE `transfermoney` (
  `transfermoneyid` int(11) NOT NULL AUTO_INCREMENT,
  `saveidfrom` int(11) NOT NULL,
  `saveidto` int(11) NOT NULL,
  `transfermoneyvalue` decimal(10,2) NOT NULL,
  `transfermoneydate` date NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `dailyentryid` int(11) NOT NULL DEFAULT 0,
  `comment` varchar(255) DEFAULT NULL,
  `currencyId` int(11) NOT NULL,
  `conversionFactor` float NOT NULL,
  `conversionFactorFrom` float NOT NULL,
  `conversionFactorTo` float NOT NULL,
  `transfermoneyvalueInCurrency` decimal(10,2) NOT NULL,
  PRIMARY KEY (`transfermoneyid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `transfermoney`
--


--
-- Table structure for table `typeclient`
--

CREATE TABLE `typeclient` (
  `typeId` int(11) NOT NULL AUTO_INCREMENT,
  `typeName` varchar(255) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `comments` text NOT NULL,
  `typeDate` date NOT NULL,
  `webApiId` int(11) NOT NULL DEFAULT 0,
  `nameCompanyClaimsOfficer` varchar(255) NOT NULL DEFAULT '',
  `mobile` varchar(255) NOT NULL DEFAULT '',
  `email` varchar(255) NOT NULL DEFAULT '',
  `taxRegistration` varchar(255) NOT NULL DEFAULT '',
  `address` text NOT NULL DEFAULT '',
  `obgyTypeId` int(11) DEFAULT NULL,
  PRIMARY KEY (`typeId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `typeclient`
--


--
-- Table structure for table `typesimpotencetreatment`
--

CREATE TABLE `typesimpotencetreatment` (
  `typesimpotencetreatmentid` int(11) NOT NULL AUTO_INCREMENT,
  `typesimpotencetreatmentname` varchar(256) DEFAULT NULL,
  `typesimpotencetreatmentdate` datetime NOT NULL,
  `userid` int(11) NOT NULL,
  `conditions` int(1) NOT NULL,
  `typesimpotencetreatmentcomment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`typesimpotencetreatmentid`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `typesimpotencetreatment`
--


--
-- Table structure for table `typesupplier`
--

CREATE TABLE `typesupplier` (
  `typeId` int(11) NOT NULL AUTO_INCREMENT,
  `typeName` varchar(100) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0,
  `comments` text NOT NULL,
  `typeDate` date NOT NULL,
  `category_id` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`typeId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `typesupplier`
--


--
-- Table structure for table `unit`
--

CREATE TABLE `unit` (
  `unitId` int(11) NOT NULL AUTO_INCREMENT,
  `unitName` varchar(256) NOT NULL,
  `unitSymbol` varchar(256) DEFAULT NULL,
  `unitDescription` text DEFAULT NULL,
  `unitDate` date NOT NULL,
  `conditions` int(1) NOT NULL DEFAULT 0,
  `userId` int(11) NOT NULL,
  PRIMARY KEY (`unitId`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `unit`
--

INSERT INTO `unit` VALUES
(1,'قطعة','','','2026-02-03',0,1);

--
-- Table structure for table `usergroupadmin`
--

CREATE TABLE `usergroupadmin` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `propertyid` int(11) NOT NULL,
  `isallowed` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0 allowed,1not allowed',
  PRIMARY KEY (`id`),
  UNIQUE KEY `propertyid` (`propertyid`)
) ENGINE=InnoDB AUTO_INCREMENT=1030 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `usergroupadmin`
--

INSERT INTO `usergroupadmin` VALUES
(1,1,0),
(2,2,0),
(3,3,1),
(4,4,0),
(5,5,0),
(6,6,0),
(7,7,0),
(8,8,0),
(9,9,0),
(10,10,0),
(11,11,0),
(12,12,0),
(13,13,0),
(14,14,0),
(15,15,0),
(16,16,0),
(17,17,0),
(18,18,0),
(19,19,0),
(20,23,0),
(21,24,0),
(22,25,0),
(23,26,0),
(24,27,0),
(25,28,1),
(26,29,1),
(27,30,1),
(28,31,0),
(29,32,0),
(30,33,0),
(31,34,0),
(32,35,0),
(33,36,0),
(34,37,0),
(35,38,0),
(36,39,0),
(37,40,0),
(38,41,0),
(39,42,0),
(40,43,0),
(41,44,0),
(42,45,0),
(43,46,0),
(44,47,1),
(45,48,1),
(46,49,0),
(47,50,0),
(48,51,0),
(49,52,0),
(50,53,0),
(51,54,0),
(52,55,0),
(53,56,0),
(54,57,0),
(55,58,0),
(56,59,0),
(57,60,0),
(58,61,0),
(59,62,0),
(60,63,0),
(61,64,0),
(62,65,0),
(63,66,0),
(64,67,0),
(65,68,0),
(66,69,0),
(67,70,0),
(68,71,0),
(69,72,0),
(70,73,0),
(71,74,0),
(72,75,0),
(73,76,0),
(74,77,0),
(75,78,0),
(76,79,0),
(77,80,0),
(78,82,0),
(79,83,0),
(80,84,0),
(81,85,0),
(82,87,0),
(83,89,0),
(84,90,0),
(85,91,0),
(86,92,0),
(87,93,0),
(88,96,0),
(89,97,0),
(90,98,0),
(91,99,0),
(92,100,0),
(93,105,0),
(94,123,0),
(95,124,0),
(96,125,0),
(97,126,1),
(98,127,1),
(99,128,1),
(100,129,1),
(101,130,1),
(102,131,1),
(103,133,0),
(104,134,0),
(105,135,0),
(106,136,0),
(107,137,0),
(108,138,0),
(109,139,0),
(110,140,0),
(111,141,0),
(112,142,0),
(113,143,0),
(114,144,0),
(115,145,0),
(116,146,0),
(117,147,0),
(118,148,0),
(119,149,0),
(120,150,0),
(121,151,0),
(122,152,0),
(123,153,0),
(124,154,0),
(125,155,0),
(126,156,0),
(127,157,0),
(128,158,0),
(129,159,0),
(130,160,1),
(131,161,1),
(132,162,1),
(133,163,1),
(134,164,1),
(135,165,1),
(136,166,1),
(137,167,0),
(138,168,0),
(139,169,0),
(140,170,0),
(141,171,0),
(142,172,0),
(143,173,1),
(144,174,1),
(145,175,1),
(146,176,1),
(147,177,1),
(148,178,1),
(149,179,1),
(150,180,1),
(151,181,1),
(152,182,1),
(153,183,1),
(154,187,1),
(155,188,1),
(156,189,1),
(157,190,1),
(158,191,1),
(159,192,1),
(160,193,1),
(161,194,0),
(162,195,1),
(163,196,0),
(164,197,1),
(165,198,1),
(166,199,1),
(167,200,1),
(168,201,0),
(169,202,0),
(170,203,0),
(171,205,1),
(172,206,0),
(173,207,0),
(174,208,0),
(175,209,1),
(176,210,1),
(177,211,1),
(178,212,1),
(179,213,1),
(180,214,1),
(181,215,1),
(182,216,1),
(183,217,1),
(184,218,1),
(185,219,1),
(186,220,1),
(187,221,1),
(188,227,1),
(189,228,1),
(190,231,1),
(191,232,0),
(192,233,0),
(193,234,1),
(194,235,0),
(195,243,0),
(196,244,1),
(197,250,0),
(198,252,0),
(199,253,0),
(200,256,0),
(201,257,0),
(202,258,0),
(203,259,0),
(204,260,0),
(205,261,0),
(206,262,0),
(207,263,0),
(208,264,1),
(209,265,0),
(210,266,1),
(211,267,1),
(212,268,0),
(213,269,0),
(214,274,0),
(215,275,0),
(216,278,0),
(217,279,0),
(218,280,0),
(219,281,0),
(220,282,0),
(221,283,0),
(222,284,0),
(223,285,0),
(224,286,0),
(225,287,0),
(226,288,0),
(227,289,0),
(228,290,0),
(229,291,0),
(230,292,0),
(231,293,1),
(232,294,1),
(233,295,1),
(234,296,1),
(235,297,0),
(236,298,0),
(237,299,1),
(238,300,0),
(239,301,0),
(240,302,0),
(241,303,1),
(242,304,1),
(243,305,0),
(244,307,0),
(245,308,0),
(246,309,0),
(247,310,0),
(248,311,0),
(249,312,1),
(250,313,1),
(251,314,0),
(252,315,0),
(253,316,0),
(254,317,1),
(255,318,1),
(256,319,1),
(257,320,1),
(258,321,1),
(259,322,1),
(260,323,1),
(261,324,1),
(262,325,1),
(263,326,0),
(264,327,0),
(265,328,0),
(266,329,0),
(267,330,0),
(268,331,0),
(269,332,0),
(270,333,0),
(271,334,0),
(272,335,0),
(273,336,0),
(274,337,0),
(275,338,0),
(276,339,0),
(277,340,0),
(278,341,0),
(279,342,0),
(280,343,0),
(281,344,0),
(282,345,0),
(283,346,0),
(284,347,0),
(285,348,0),
(286,349,0),
(287,350,0),
(288,351,0),
(289,352,0),
(290,353,0),
(291,354,0),
(292,355,0),
(293,356,0),
(294,357,0),
(295,358,0),
(296,359,0),
(297,360,0),
(298,361,0),
(299,362,0),
(300,363,0),
(301,364,0),
(302,365,0),
(303,366,0),
(304,367,0),
(305,368,0),
(306,369,0),
(307,370,0),
(308,371,0),
(309,372,0),
(310,373,0),
(311,374,0),
(312,375,0),
(313,376,0),
(314,377,0),
(315,378,0),
(316,379,0),
(317,380,0),
(318,381,0),
(319,382,0),
(320,383,0),
(321,384,0),
(322,385,0),
(323,386,0),
(324,387,0),
(325,388,0),
(326,389,0),
(327,390,0),
(328,391,0),
(329,392,0),
(330,393,0),
(331,394,0),
(332,395,0),
(333,396,0),
(334,397,0),
(335,398,0),
(336,399,0),
(337,400,0),
(338,401,1),
(339,402,1),
(340,403,1),
(341,404,0),
(342,405,1),
(343,406,1),
(344,407,1),
(345,408,1),
(346,409,1),
(347,410,1),
(348,411,1),
(349,412,0),
(350,413,0),
(351,414,0),
(352,417,0),
(353,418,0),
(354,419,0),
(355,420,0),
(356,421,0),
(357,422,0),
(358,423,0),
(359,424,0),
(360,425,0),
(361,426,0),
(362,427,0),
(363,428,0),
(364,429,0),
(365,430,0),
(366,431,0),
(367,432,0),
(368,433,0),
(369,434,0),
(370,436,1),
(371,437,0),
(372,438,0),
(373,439,1),
(374,440,0),
(375,441,0),
(376,442,1),
(377,443,0),
(378,444,0),
(379,445,0),
(380,446,0),
(381,447,0),
(382,448,0),
(383,449,1),
(384,450,1),
(385,451,0),
(386,452,0),
(387,453,0),
(388,454,0),
(389,455,0),
(390,456,0),
(391,457,0),
(392,458,0),
(393,459,0),
(394,460,0),
(395,461,1),
(396,462,1),
(397,463,0),
(398,464,1),
(399,465,0),
(400,466,0),
(401,467,0),
(402,468,1),
(403,469,0),
(404,470,0),
(405,471,0),
(406,472,0),
(407,473,0),
(408,474,0),
(409,475,0),
(410,476,0),
(411,477,0),
(412,478,0),
(413,479,0),
(414,480,0),
(415,481,0),
(416,482,0),
(417,483,0),
(418,484,0),
(419,485,0),
(420,486,0),
(421,487,0),
(422,488,0),
(423,489,0),
(424,490,1),
(425,491,1),
(426,492,0),
(427,493,0),
(428,494,0),
(429,495,0),
(430,496,0),
(431,497,0),
(432,498,0),
(433,499,0),
(434,500,0),
(435,501,0),
(436,502,0),
(437,503,0),
(438,504,0),
(439,505,0),
(440,506,0),
(441,507,0),
(442,508,1),
(443,509,0),
(444,510,0),
(445,511,1),
(446,512,0),
(447,513,0),
(448,514,0),
(449,515,0),
(450,516,0),
(451,517,0),
(452,518,0),
(453,519,0),
(454,520,0),
(455,521,0),
(456,522,1),
(457,523,0),
(458,524,0),
(459,525,0),
(460,526,0),
(461,527,0),
(462,528,1),
(463,529,0),
(464,530,0),
(465,531,0),
(466,532,0),
(467,533,0),
(468,534,0),
(469,535,1),
(470,536,1),
(471,537,1),
(472,538,1),
(473,539,1),
(474,540,0),
(475,541,0),
(476,542,0),
(477,543,1),
(478,544,0),
(479,545,0),
(480,546,0),
(481,547,0),
(482,548,0),
(483,549,1),
(484,550,0),
(485,551,0),
(486,552,0),
(487,553,0),
(488,554,0),
(489,555,0),
(490,556,0),
(491,557,0),
(492,558,0),
(493,559,0),
(494,560,0),
(495,561,0),
(496,562,0),
(497,563,0),
(498,564,0),
(499,565,0),
(500,566,0),
(501,567,0),
(502,568,0),
(503,569,0),
(504,570,1),
(505,571,1),
(506,572,0),
(507,573,1),
(508,574,0),
(509,575,1),
(510,576,0),
(511,577,0),
(512,578,0),
(513,579,0),
(514,580,0),
(515,581,0),
(516,582,0),
(517,583,0),
(518,584,0),
(519,585,1),
(520,586,1),
(521,587,0),
(522,588,1),
(523,589,1),
(524,590,1),
(525,591,1),
(526,592,0),
(527,593,0),
(528,594,1),
(529,595,0),
(530,596,0),
(531,597,0),
(532,598,0),
(533,599,0),
(534,600,0),
(535,601,0),
(536,602,0),
(537,603,1),
(538,604,1),
(539,605,1),
(540,606,1),
(541,607,1),
(542,608,1),
(543,609,0),
(544,610,1),
(545,611,0),
(546,612,1),
(547,613,1),
(548,614,1),
(549,615,1),
(550,616,0),
(551,617,0),
(552,618,0),
(553,619,1),
(554,620,1),
(555,621,1),
(556,622,1),
(557,623,1),
(558,624,1),
(559,625,0),
(560,626,0),
(561,627,1),
(562,628,1),
(563,629,1),
(564,630,0),
(565,631,1),
(566,632,0),
(567,633,0),
(568,634,0),
(569,635,0),
(570,636,0),
(571,637,1),
(572,638,1),
(573,639,1),
(574,640,0),
(575,641,1),
(576,642,1),
(577,643,1),
(578,644,1),
(579,645,1),
(580,646,1),
(581,647,1),
(582,648,1),
(583,649,1),
(584,650,1),
(585,651,1),
(586,652,1),
(587,653,1),
(588,654,1),
(589,655,1),
(590,656,1),
(591,657,1);

--
-- Table structure for table `vatpayment`
--

CREATE TABLE `vatpayment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `amount` decimal(10,2) NOT NULL,
  `saveid` int(11) NOT NULL,
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `userid` int(11) NOT NULL,
  `sysdate` datetime NOT NULL,
  `conditions` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `vatpayment`
--


--
-- Table structure for table `wishlist`
--

CREATE TABLE `wishlist` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `clientid` int(11) NOT NULL,
  `productid` int(11) NOT NULL,
  `sysDate` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `wishlist`
--


--
-- Table structure for table `workshop`
--

CREATE TABLE `workshop` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `thedate` date NOT NULL,
  `userid` int(11) NOT NULL,
  `del` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `workshop`
--


--
-- Table structure for table `workstation`
--

CREATE TABLE `workstation` (
  `workstationid` int(11) NOT NULL AUTO_INCREMENT,
  `workname` varchar(255) NOT NULL,
  `workerhours` decimal(10,2) NOT NULL,
  `assetshours` decimal(10,2) NOT NULL,
  `date` varchar(255) NOT NULL,
  `conditions` int(11) NOT NULL DEFAULT 0 COMMENT '0del-1-notdel',
  `user_id` int(11) NOT NULL,
  PRIMARY KEY (`workstationid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `workstation`
--


--
-- Table structure for table `workstationassets`
--

CREATE TABLE `workstationassets` (
  `workstationassetsId` int(11) NOT NULL AUTO_INCREMENT,
  `workstationid` int(11) NOT NULL,
  `assetsId` varchar(255) NOT NULL,
  `workhours` decimal(10,2) NOT NULL,
  `efficiency` decimal(10,2) NOT NULL,
  PRIMARY KEY (`workstationassetsId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `workstationassets`
--


--
-- Table structure for table `workstationworker`
--

CREATE TABLE `workstationworker` (
  `workstationworkerId` int(11) NOT NULL AUTO_INCREMENT,
  `workstationid` int(11) NOT NULL,
  `employeeId` varchar(255) NOT NULL,
  `workhours` decimal(10,2) NOT NULL,
  `efficiency` decimal(10,2) NOT NULL,
  PRIMARY KEY (`workstationworkerId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `workstationworker`
--


--
-- Table structure for table `youtube_link`
--

CREATE TABLE `youtube_link` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `url` varchar(255) NOT NULL,
  `status` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=290 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `youtube_link`
--

INSERT INTO `youtube_link` VALUES
(1,'#1',1),
(2,'#2',1),
(3,'#3',1),
(4,'#4',1),
(5,'#5',1),
(6,'#6',1),
(7,'#7',1),
(8,'#8',1),
(9,'#9',1),
(10,'#10',1),
(11,'#11',1),
(12,'#12',1),
(13,'#13',1),
(14,'#14',1),
(15,'#15',1),
(16,'#16',1),
(17,'#17',1),
(18,'#18',1),
(19,'#19',1),
(20,'#20',1),
(21,'#21',1),
(22,'#22',1),
(23,'#23',1),
(24,'#24',1),
(25,'#25',1),
(26,'#26',1),
(27,'#27',1),
(28,'#28',1),
(29,'#29',1),
(30,'#30',1),
(31,'#31',1),
(32,'#32',1),
(33,'#33',1),
(34,'#34',1),
(35,'#35',1),
(36,'#36',1),
(37,'#37',1),
(38,'#38',1),
(39,'#39',1),
(40,'#40',1),
(41,'#41',1),
(42,'#42',1),
(43,'#43',1),
(44,'#44',1),
(45,'#45',1),
(46,'#46',1),
(47,'#47',1),
(48,'#48',1),
(49,'#49',1),
(50,'#50',1),
(51,'#51',1),
(52,'#52',1),
(53,'#53',1),
(54,'#54',1),
(55,'#55',1),
(56,'#56',1),
(57,'#57',1),
(58,'#58',1),
(59,'#59',1),
(60,'#60',1),
(61,'#61',1),
(62,'#62',1),
(63,'#63',1),
(64,'#64',1),
(65,'#65',1),
(66,'#66',1),
(67,'#67',1),
(68,'#68',1),
(69,'#69',1),
(70,'#70',1),
(71,'#71',1),
(72,'#72',1),
(73,'#73',1),
(74,'#74',1),
(75,'#75',1),
(76,'#76',1),
(77,'#77',1),
(78,'#78',1),
(79,'#79',1),
(80,'#80',1),
(81,'#81',1),
(82,'#82',1),
(83,'#83',1),
(84,'#84',1),
(85,'#85',1),
(86,'#86',1),
(87,'#87',1),
(88,'#88',1),
(89,'#89',1),
(90,'#90',1),
(91,'#91',1),
(92,'#92',1),
(93,'#93',1),
(94,'#94',1),
(95,'#95',1),
(96,'#96',1),
(97,'#97',1),
(98,'#98',1),
(99,'#99',1),
(100,'#100',1),
(101,'#101',1),
(102,'#102',1),
(103,'#103',1),
(104,'#104',1),
(105,'#105',1),
(106,'#106',1),
(107,'#107',1),
(108,'#108',1),
(109,'#109',1),
(110,'#110',1),
(111,'#111',1),
(112,'#112',1),
(113,'#113',1),
(114,'#114',1),
(115,'#115',1),
(116,'#116',1),
(117,'#117',1),
(118,'#118',1),
(119,'#119',1),
(120,'#120',1),
(121,'#121',1),
(122,'#122',1),
(123,'#123',1),
(124,'#124',1),
(125,'#125',1),
(126,'#126',1),
(127,'#127',1),
(128,'#128',1),
(129,'#129',1),
(130,'#130',1),
(131,'#131',1),
(132,'#132',1),
(133,'#133',1),
(134,'#134',1),
(135,'#135',1),
(136,'#136',1),
(137,'#137',1),
(138,'#138',1),
(139,'#139',1),
(140,'#140',1),
(141,'#141',1),
(142,'#142',1),
(143,'#143',1),
(144,'#144',1),
(145,'#145',1),
(146,'#146',1),
(147,'#147',1),
(148,'#148',1),
(149,'#149',1),
(150,'#150',1),
(151,'#151',1),
(152,'#152',1),
(153,'#153',1),
(154,'#154',1),
(155,'#155',1),
(156,'#156',1),
(157,'#157',1),
(158,'#158',1),
(159,'#159',1),
(160,'#160',1),
(161,'#161',1),
(162,'#162',1),
(163,'#163',1),
(164,'#164',1),
(165,'#165',1),
(166,'#166',1),
(167,'#167',1),
(168,'#168',1),
(169,'#169',1),
(170,'#170',1),
(171,'#171',1),
(172,'#172',1),
(173,'#173',1),
(174,'#174',1),
(175,'#175',1),
(176,'#176',1),
(177,'#177',1),
(178,'#178',1),
(179,'#179',1),
(180,'#180',1),
(181,'#181',1),
(182,'#182',1),
(183,'#183',1),
(184,'#184',1),
(185,'#185',1),
(186,'#186',1),
(187,'#187',1),
(188,'#188',1),
(189,'#189',1),
(190,'#190',1),
(191,'#191',1),
(192,'#192',1),
(193,'#193',1),
(194,'#194',1),
(195,'#195',1),
(196,'#196',1),
(197,'#197',1),
(198,'#198',1),
(199,'#199',1),
(200,'#200',1),
(201,'#201',1),
(202,'#202',1),
(203,'#203',1),
(204,'#204',1),
(205,'#205',1),
(206,'#206',1),
(207,'#207',1),
(208,'#208',1),
(209,'#209',1),
(210,'#210',1),
(211,'#211',1),
(212,'#212',1),
(213,'#213',1),
(214,'#214',1),
(215,'#215',1),
(216,'#216',1),
(217,'#217',1),
(218,'#218',1),
(219,'#219',1),
(220,'#220',1),
(221,'#221',1),
(222,'#222',1),
(223,'#223',1),
(224,'#224',1),
(225,'#225',1),
(226,'#226',1),
(227,'#227',1),
(228,'#228',1),
(229,'#229',1),
(230,'#230',1),
(231,'#231',1),
(232,'#232',1),
(233,'#233',1),
(234,'#234',1),
(235,'#235',1),
(236,'#236',1),
(237,'#237',1),
(238,'#238',1),
(239,'#239',1),
(240,'#240',1),
(241,'#241',1),
(242,'#242',1),
(243,'#243',1),
(244,'#244',1),
(245,'#245',1),
(246,'#246',1),
(247,'#247',1),
(248,'#248',1),
(249,'#249',1),
(250,'#250',1),
(251,'#251',1),
(252,'#252',1),
(253,'#253',1),
(254,'#254',1),
(255,'#255',1),
(256,'#256',1),
(257,'#257',1),
(258,'#258',1),
(259,'#259',1),
(260,'#260',1),
(261,'#261',1),
(262,'#262',1),
(263,'#263',1),
(264,'#264',1),
(265,'#265',1),
(266,'#266',1),
(267,'#267',1),
(268,'#268',1),
(269,'#269',1),
(270,'#270',1),
(271,'#271',1),
(272,'#272',1),
(273,'#273',1),
(274,'#274',1),
(275,'#275',1),
(276,'#276',1),
(277,'#277',1),
(278,'#278',1),
(279,'#279',1),
(280,'#280',1),
(281,'#281',1),
(282,'#282',1),
(283,'#283',1),
(284,'#284',1),
(285,'#285',1),
(286,'#286',1),
(287,'#287',1),
(288,'#288',1),
(289,'#289',1);


