403Webshell
Server IP : 45.94.215.241  /  Your IP : 216.73.216.243
Web Server : Apache/2.4.66 (Ubuntu)
System : Linux srv2937474766 7.0.0-28-generic #28-Ubuntu SMP PREEMPT_DYNAMIC Sun Jun 21 01:01:36 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/final/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/final/nikoocalligraphy_lms_db
/*M!999999\- enable the sandbox mode */ 
-- MariaDB dump 10.19  Distrib 10.11.14-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: localhost    Database: nikoocalligraphy_lms_db
-- ------------------------------------------------------
-- Server version	10.11.14-MariaDB-0ubuntu0.24.04.1

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `base_mobile_owner_types`
--

DROP TABLE IF EXISTS `base_mobile_owner_types`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `base_mobile_owner_types` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mobile_owner_type` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `base_mobile_owner_types`
--

LOCK TABLES `base_mobile_owner_types` WRITE;
/*!40000 ALTER TABLE `base_mobile_owner_types` DISABLE KEYS */;
INSERT INTO `base_mobile_owner_types` VALUES
(1,'هنرجو'),
(2,'مادر'),
(3,'پدر'),
(4,'سایر');
/*!40000 ALTER TABLE `base_mobile_owner_types` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `buyers`
--

DROP TABLE IF EXISTS `buyers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `buyers` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `firstname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `lastname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `tel` varchar(20) DEFAULT NULL,
  `mobile` varchar(11) DEFAULT NULL,
  `operator_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `buyers`
--

LOCK TABLES `buyers` WRITE;
/*!40000 ALTER TABLE `buyers` DISABLE KEYS */;
/*!40000 ALTER TABLE `buyers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `courses`
--

DROP TABLE IF EXISTS `courses`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `courses` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(100) DEFAULT NULL,
  `tuition_fee` int(11) DEFAULT NULL,
  `tuition_fee_session` int(11) NOT NULL,
  `category_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `category_id` (`category_id`),
  CONSTRAINT `courses_ibfk_1` FOREIGN KEY (`category_id`) REFERENCES `courses_categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `courses`
--

LOCK TABLES `courses` WRITE;
/*!40000 ALTER TABLE `courses` DISABLE KEYS */;
INSERT INTO `courses` VALUES
(1,'تحریری مقدماتی',300000,2400000,1),
(2,'شکسته مقدماتی',300000,2400000,1),
(3,'نستعلیق مقدماتی',1400000,350000,1),
(4,'شکسته نستعلیق مقدماتی',300000,2400000,1),
(5,'ثلث مقدماتی',300000,2400000,1),
(6,'نسخ مقدماتی',300000,2400000,1),
(7,'طراحی مقدماتی',300000,2400000,2);
/*!40000 ALTER TABLE `courses` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `courses_categories`
--

DROP TABLE IF EXISTS `courses_categories`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `courses_categories` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `courses_categories`
--

LOCK TABLES `courses_categories` WRITE;
/*!40000 ALTER TABLE `courses_categories` DISABLE KEYS */;
INSERT INTO `courses_categories` VALUES
(1,'خوشنویسی'),
(2,'طراحی');
/*!40000 ALTER TABLE `courses_categories` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `courses_fee`
--

DROP TABLE IF EXISTS `courses_fee`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `courses_fee` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `course_id` int(11) DEFAULT NULL,
  `start_date` char(10) DEFAULT NULL,
  `end_date` char(10) DEFAULT NULL,
  `tuition_fee` int(11) DEFAULT NULL,
  `tuition_fee_session` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `courses_fee`
--

LOCK TABLES `courses_fee` WRITE;
/*!40000 ALTER TABLE `courses_fee` DISABLE KEYS */;
INSERT INTO `courses_fee` VALUES
(1,1,'0000-01-01','9999-12-29',1400000,350000),
(2,4,'0000-01-01','9999-12-29',1400000,350000);
/*!40000 ALTER TABLE `courses_fee` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `goods`
--

DROP TABLE IF EXISTS `goods`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `goods` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
  `number` int(11) NOT NULL,
  `big` int(11) DEFAULT NULL,
  `price_one_sell` bigint(11) DEFAULT NULL,
  `good_service` tinyint(1) DEFAULT NULL,
  `unit` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `is_old` int(1) DEFAULT 0,
  `serial_no` varchar(10) DEFAULT NULL,
  `publisher` varchar(100) DEFAULT NULL,
  `author` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `goods`
--

LOCK TABLES `goods` WRITE;
/*!40000 ALTER TABLE `goods` DISABLE KEYS */;
/*!40000 ALTER TABLE `goods` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `goods_log`
--

DROP TABLE IF EXISTS `goods_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `goods_log` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `transaction_type` enum('اضافه شدن کالای جدید به انبار','افزایش موجودی','صدور فاکتور','ویرایش کالا در فاکتور','حذف کالا از فاکتور') DEFAULT NULL,
  `invoice_date` varchar(10) DEFAULT NULL,
  `good_id` int(11) NOT NULL,
  `number` int(11) DEFAULT NULL,
  `price_one_buy` int(11) DEFAULT NULL,
  `price_one_sell` int(11) DEFAULT NULL,
  `invoice_no_buy` varchar(100) DEFAULT NULL,
  `buyer_id` int(11) DEFAULT NULL,
  `buyer_invoice_id` int(11) DEFAULT NULL,
  `comment` text NOT NULL,
  PRIMARY KEY (`id`),
  KEY `good_id` (`good_id`),
  CONSTRAINT `goods_log_ibfk_1` FOREIGN KEY (`good_id`) REFERENCES `goods` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `goods_log`
--

LOCK TABLES `goods_log` WRITE;
/*!40000 ALTER TABLE `goods_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `goods_log` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `introduction_methods`
--

DROP TABLE IF EXISTS `introduction_methods`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `introduction_methods` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `introduction_method_title` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `introduction_methods`
--

LOCK TABLES `introduction_methods` WRITE;
/*!40000 ALTER TABLE `introduction_methods` DISABLE KEYS */;
INSERT INTO `introduction_methods` VALUES
(1,'سایت'),
(2,'جستجوی گوگل'),
(3,'اینستاگرام'),
(4,'مدرس'),
(5,'تابلو'),
(6,'هنرجویان'),
(7,'همسایه'),
(8,'تراکت');
/*!40000 ALTER TABLE `introduction_methods` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `invoices`
--

DROP TABLE IF EXISTS `invoices`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `invoices` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `is_student` tinyint(1) DEFAULT 1,
  `buyer_id` int(11) DEFAULT NULL,
  `date` varchar(10) DEFAULT NULL,
  `time` varchar(8) DEFAULT NULL,
  `off` int(11) DEFAULT NULL,
  `payment_status` tinyint(1) DEFAULT NULL,
  `payment_description` text DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `student_id` (`buyer_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `invoices`
--

LOCK TABLES `invoices` WRITE;
/*!40000 ALTER TABLE `invoices` DISABLE KEYS */;
/*!40000 ALTER TABLE `invoices` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `invoices_goods`
--

DROP TABLE IF EXISTS `invoices_goods`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `invoices_goods` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `good_id` int(11) DEFAULT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `number` int(11) DEFAULT NULL,
  `date` varchar(10) DEFAULT NULL,
  `time` varchar(8) DEFAULT NULL,
  `price` int(11) DEFAULT NULL,
  `is_gift` tinyint(1) DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `good_id` (`good_id`),
  KEY `invoice_id` (`invoice_id`),
  CONSTRAINT `invoices_goods_ibfk_1` FOREIGN KEY (`good_id`) REFERENCES `goods` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `invoices_goods_ibfk_3` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `invoices_goods`
--

LOCK TABLES `invoices_goods` WRITE;
/*!40000 ALTER TABLE `invoices_goods` DISABLE KEYS */;
/*!40000 ALTER TABLE `invoices_goods` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Temporary table structure for view `invoices_goods_view`
--

DROP TABLE IF EXISTS `invoices_goods_view`;
/*!50001 DROP VIEW IF EXISTS `invoices_goods_view`*/;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8mb4;
/*!50001 CREATE VIEW `invoices_goods_view` AS SELECT
 1 AS `buyer_id`,
  1 AS `buyer_firstname`,
  1 AS `buyer_lastname`,
  1 AS `invoice_date`,
  1 AS `good_id`,
  1 AS `good_name`,
  1 AS `good_number`,
  1 AS `good_price`,
  1 AS `total_price`,
  1 AS `good_is_gift` */;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `messages`
--

DROP TABLE IF EXISTS `messages`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `messages` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `message_server_id` bigint(20) DEFAULT NULL,
  `message_source` char(13) DEFAULT NULL,
  `message_destination` char(12) DEFAULT NULL,
  `message_date_time` char(20) DEFAULT NULL,
  `message_body` text CHARACTER SET utf8mb3 COLLATE utf8mb3_persian_ci DEFAULT NULL,
  `message_status_code` varchar(4) DEFAULT NULL,
  `message_status_description` text DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `messages`
--

LOCK TABLES `messages` WRITE;
/*!40000 ALTER TABLE `messages` DISABLE KEYS */;
INSERT INTO `messages` VALUES
(1,0,'9820003346000','989382232383','1401-09-13 09:45:33','مینا میرزایی عزیز\r\nبه آموزشگاه خوشنویسی نیکو خوش آمدید\r\nکد هنرجویی:8','',''),
(2,0,'9820003346000','989374493766','1401-09-13 10:18:30','معصومه  اسفندیاری عزیز\r\nبه آموزشگاه خوشنویسی نیکو خوش آمدید\r\nکد هنرجویی:9','',''),
(3,0,'9820003346000','989189123198','1401-09-13 10:23:03','زهرا شهبازی عزیز\r\nبه آموزشگاه خوشنویسی نیکو خوش آمدید\r\nکد هنرجویی:10','',''),
(4,0,'9820003346000','989185465068','1401-09-13 10:35:44','محمد علی درجزینی عزیز\r\nبه آموزشگاه خوشنویسی نیکو خوش آمدید\r\nکد هنرجویی:11','',''),
(5,0,'9820003346000','989183070627','1401-09-13 10:45:27','لیلا  احمدی سیرت عزیز\r\nبه آموزشگاه خوشنویسی نیکو خوش آمدید\r\nکد هنرجویی:13','',''),
(6,0,'9820003346000','989356859943','1401-09-13 11:06:21','ارام  فرجی عزیز\r\nبه آموزشگاه خوشنویسی نیکو خوش آمدید\r\nکد هنرجویی:14','','');
/*!40000 ALTER TABLE `messages` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `messages_status`
--

DROP TABLE IF EXISTS `messages_status`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `messages_status` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `status_code` varchar(4) DEFAULT NULL,
  `status_type` text DEFAULT NULL,
  `status_description` text CHARACTER SET utf8mb3 COLLATE utf8mb3_persian_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `messages_status`
--

LOCK TABLES `messages_status` WRITE;
/*!40000 ALTER TABLE `messages_status` DISABLE KEYS */;
INSERT INTO `messages_status` VALUES
(1,'E1','Security HTTP Header Not Set','نام کاربری و یا کلمه عبور وارد نشده است '),
(2,'E2','All Parameters Is Require ','ورود تمامی پارامترها الزامیست '),
(3,'E3','Entered Parameters Most be as String ','پرامتر ورودی باید از نوع رشته باشد '),
(4,'E4','Access Forbidden ','دسترسی غیر مجاز به سیستم '),
(5,'E5 ','Authentication Failed ','نام کاربری و یا کلمه عبور صحیح نیست '),
(6,'E107','Request Size Out Of Range ','تعداد گیرندگان مشخص شده بیش از 250 گیرنده میباشد '),
(7,'E223','Source Number not valid ','شماره اختصاصی وارد شده نا معتبر است '),
(8,'E211','Message Long Out Of Range','طول متن پیام بیش از حد مجاز است '),
(9,'E6','Not Enough Credit','اعتبار برای ارسال کافی نیست '),
(10,'E7','No New Message','پیام ورودی جدید خوانده نشده ای وجود ندارد '),
(11,'E8','ID Not Correct','شناسه وارد شده پیام جهت دریافت وضعیت نا معتبر است '),
(12,'E305','Message ID is not Valid ','شناسه وارد شده پیام جهت دریافت وضعیت وجو ندارد '),
(13,'E65','Message Id Is Require ','مقدار دهی شناسه پیام الزامیست '),
(14,'E66','srcNumber Is Require ','مقدار دهی شماره اختصاصی مورد نظر الزامیست '),
(15,'E43','Recipient Number is not Valid ','شماره گیرنده نا معتبر است '),
(16,'E766','Message Body is Empty ','متن پیام خالیست '),
(17,'E999','','شماره منقضی شده است '),
(18,'E998','','پکیج منقضی شده است '),
(19,'E303','','هیچ شماره گیرنده صحیحی وارد نشده '),
(20,'E132','','متن وارد شده شامل کلمات حساس است '),
(21,'E800','','لیست سیاه '),
(22,'X001','Client Error','اتصال به وب سرویس با مشکل مواجه شد'),
(23,'X002',NULL,NULL),
(24,'X003','Send Error','خطا در ارسال پیامک');
/*!40000 ALTER TABLE `messages_status` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `messages_templates`
--

DROP TABLE IF EXISTS `messages_templates`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `messages_templates` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `message_template_ID` varchar(100) DEFAULT NULL,
  `message_template_title` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `message_template` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `messages_templates`
--

LOCK TABLES `messages_templates` WRITE;
/*!40000 ALTER TABLE `messages_templates` DISABLE KEYS */;
/*!40000 ALTER TABLE `messages_templates` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `other_costs`
--

DROP TABLE IF EXISTS `other_costs`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `other_costs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `date` varchar(10) DEFAULT NULL,
  `amount` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `other_costs`
--

LOCK TABLES `other_costs` WRITE;
/*!40000 ALTER TABLE `other_costs` DISABLE KEYS */;
/*!40000 ALTER TABLE `other_costs` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `people`
--

DROP TABLE IF EXISTS `people`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `people` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `firstname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `lastname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `job_position` int(1) NOT NULL,
  `mobile` varchar(11) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  `user` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  `pass` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  `level` tinyint(1) NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1=disable, 0=enable',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `people`
--

LOCK TABLES `people` WRITE;
/*!40000 ALTER TABLE `people` DISABLE KEYS */;
INSERT INTO `people` VALUES
(1,'ادمین',NULL,1,'09126907530','admin','472706669802c2b711e8a552302d532f',4,0),
(2,'مریم','نیکوفر',1,'09181075416','maryam','c4ca4238a0b923820dcc509a6f75849b',4,0),
(3,'طه','مصطفوی',0,'','taha','b3ff7566aaefe251ce30ed3f4849b0a9',4,0);
/*!40000 ALTER TABLE `people` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `people_base_wage`
--

DROP TABLE IF EXISTS `people_base_wage`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `people_base_wage` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `person_id` int(11) DEFAULT NULL,
  `start_date` varchar(10) DEFAULT NULL,
  `end_date` varchar(10) DEFAULT NULL,
  `base_wage` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `people_base_wage`
--

LOCK TABLES `people_base_wage` WRITE;
/*!40000 ALTER TABLE `people_base_wage` DISABLE KEYS */;
/*!40000 ALTER TABLE `people_base_wage` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `people_payments`
--

DROP TABLE IF EXISTS `people_payments`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `people_payments` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `person_id` int(11) NOT NULL,
  `month` varchar(7) DEFAULT NULL,
  `payment_info` varchar(100) DEFAULT NULL,
  `payment_date` varchar(10) DEFAULT NULL,
  `payment_type` tinyint(1) DEFAULT NULL,
  `comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `people_payments`
--

LOCK TABLES `people_payments` WRITE;
/*!40000 ALTER TABLE `people_payments` DISABLE KEYS */;
/*!40000 ALTER TABLE `people_payments` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `people_rollcall`
--

DROP TABLE IF EXISTS `people_rollcall`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `people_rollcall` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `person_id` int(11) DEFAULT NULL,
  `date` varchar(10) DEFAULT NULL,
  `enter_time` varchar(5) DEFAULT NULL,
  `exit_time` varchar(5) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `people_rollcall`
--

LOCK TABLES `people_rollcall` WRITE;
/*!40000 ALTER TABLE `people_rollcall` DISABLE KEYS */;
/*!40000 ALTER TABLE `people_rollcall` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `rooms`
--

DROP TABLE IF EXISTS `rooms`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `rooms` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `rooms`
--

LOCK TABLES `rooms` WRITE;
/*!40000 ALTER TABLE `rooms` DISABLE KEYS */;
INSERT INTO `rooms` VALUES
(1,'پیش فرض');
/*!40000 ALTER TABLE `rooms` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `semesters`
--

DROP TABLE IF EXISTS `semesters`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `semesters` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(100) DEFAULT NULL,
  `is_current` tinyint(1) DEFAULT NULL,
  `start_date` varchar(10) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `finish_date` varchar(10) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `semesters`
--

LOCK TABLES `semesters` WRITE;
/*!40000 ALTER TABLE `semesters` DISABLE KEYS */;
INSERT INTO `semesters` VALUES
(1,'پیش فرض',NULL,'1401-07-01','1401-09-30');
/*!40000 ALTER TABLE `semesters` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `settings`
--

DROP TABLE IF EXISTS `settings`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `settings` (
  `status` tinyint(4) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `settings`
--

LOCK TABLES `settings` WRITE;
/*!40000 ALTER TABLE `settings` DISABLE KEYS */;
INSERT INTO `settings` VALUES
(0);
/*!40000 ALTER TABLE `settings` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `students`
--

DROP TABLE IF EXISTS `students`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `students` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `firstname` varchar(100) DEFAULT NULL,
  `lastname` varchar(100) DEFAULT NULL,
  `national_id` varchar(10) DEFAULT NULL,
  `tel` varchar(20) DEFAULT NULL,
  `mobile` varchar(11) DEFAULT NULL,
  `address` text DEFAULT NULL,
  `email` varchar(100) DEFAULT NULL,
  `reg_date` varchar(10) DEFAULT NULL,
  `job` varchar(100) DEFAULT NULL,
  `education` varchar(100) DEFAULT NULL,
  `birth_date` varchar(10) DEFAULT NULL,
  `history` text DEFAULT NULL,
  `operator_id` int(11) DEFAULT NULL,
  `inactive` tinyint(1) DEFAULT 0,
  `comment` text DEFAULT NULL,
  `sex` char(1) DEFAULT NULL,
  `representative_id` int(11) DEFAULT NULL,
  `introduction_method_id` int(11) DEFAULT 0,
  `user` varchar(100) DEFAULT NULL,
  `pass` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `students`
--

LOCK TABLES `students` WRITE;
/*!40000 ALTER TABLE `students` DISABLE KEYS */;
INSERT INTO `students` VALUES
(1,'هدی','لطفعلی نژاد',NULL,'','','','','1401-07-10','','','','',1,1,'',NULL,NULL,0,NULL,NULL),
(2,'آیناز','حامد خلیفه',NULL,'','','','','1401-08-20','','','','',1,0,NULL,NULL,NULL,0,NULL,NULL),
(3,'پریا','هاتفی',NULL,'','','','','1401-08-20','','','','',1,1,'اتمام ترم یک فعلا نمیاد',NULL,NULL,0,NULL,NULL),
(4,'فتانه','بختیاری',NULL,'','','','','1401-08-20','','','','مبتدی',1,1,'منصرف شده شهریه عودت داداه شد',NULL,NULL,0,NULL,NULL),
(5,'هانیتا','مرسلی',NULL,'','','','','1401-08-20','','','','مبتدی',1,1,'منصرف شده هرینه عودت داده شد',NULL,NULL,0,NULL,NULL),
(6,'باران','شهبازی',NULL,'','','','','1401-08-20','','','','',1,0,NULL,NULL,NULL,0,NULL,NULL),
(7,'زهرا','صادقی',NULL,'','','','','1401-08-23','','','','',2,0,NULL,NULL,NULL,0,NULL,NULL),
(8,'مینا','میرزایی',NULL,'','09382232383','شهرک فرهنگیان بلوارسعدی کوچه ارغوان واحد 2','','1401-09-13','کارمند','','1363-04-14','مبتدی',2,0,NULL,NULL,NULL,0,NULL,NULL),
(9,'معصومه ','اسفندیاری',NULL,'','09374493766','شهرک اندیشه 18 متری سینا پلاک 77','','1401-09-06','','کارشناس حقوق','1375-01-05','مبتدی',2,0,NULL,NULL,NULL,0,NULL,NULL),
(10,'زهرا','شهبازی',NULL,'38359365','09189123198','پردیس ابتدای بلوار عباس دوران کوچه اراسته پلاک 95','','1401-09-06','معلم','','1346-08-04','مبتدی',2,0,NULL,NULL,NULL,0,NULL,NULL),
(11,'محمد علی','درجزینی',NULL,'32621187','09185465068','شهرک بهشتی خیابان رفاه -رفاه هفت پلاک 67','','1401-09-10','','','1392-04-23','مبتدی',2,0,NULL,NULL,NULL,0,NULL,NULL),
(12,'لیلا','خوشبخت',NULL,'32534893','09187119148','خیابان جلالی کوچه حسینیه شهید محمد رضا بیداری ساختمان هلنا واحد2','','1401-09-13','','','1364-01-01','مبتدی ...متوسط',2,0,'',NULL,NULL,0,NULL,NULL),
(13,'لیلا ','احمدی سیرت',NULL,'','09183070627','میدان رسالت .18متری رسالت .کوچه بصیرت پلاک 15','','1401-09-09','معلم','','1363-06-29','مبتدی',2,0,NULL,NULL,NULL,0,NULL,NULL),
(14,'ارام ','فرجی',NULL,'','09356859943','','','1401-09-13','','ابتدایی','','',2,0,NULL,NULL,NULL,0,NULL,NULL),
(15,'سعید ','امامی عباد',NULL,'','','','','1401-09-13','','','','مبتدی',2,0,NULL,NULL,NULL,0,NULL,NULL),
(16,'بهنام ','نجاتی',NULL,'','','','','1401-09-13','','','','مبتدی',2,0,NULL,NULL,NULL,0,NULL,NULL),
(17,'حسین ','زنگنه',NULL,'','09331102264','','','1401-09-13','','','','مبتدی',2,0,'',NULL,NULL,0,NULL,NULL),
(18,'حمید رضا ','صالحی',NULL,'','','','','1401-09-13','','','','مبتدی',2,0,NULL,NULL,NULL,0,NULL,NULL),
(19,'مریم','کاظمی',NULL,'','09928726292','سعیدیه بالا - سی متریه سعیدیه - پلاک 23','','1402-06-24','فارغ التحصیل','کارشناسی زیست شناسی','1376-12-25','',2,0,NULL,NULL,NULL,0,NULL,NULL),
(20,'پرستور','ساکی',NULL,'','09185019866','شهرک بهشتی - هجده متری جهاد - کوچه فدک - واحد پنج','','1402-06-24','خانه دار','','1357-11-02','',2,0,NULL,NULL,NULL,0,NULL,NULL);
/*!40000 ALTER TABLE `students` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `students_courses`
--

DROP TABLE IF EXISTS `students_courses`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `students_courses` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `student_id` int(11) DEFAULT NULL,
  `course_id` int(11) DEFAULT NULL,
  `teacher_id` int(11) DEFAULT NULL,
  `reg_date` varchar(10) DEFAULT NULL,
  `inactive` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `student_id` (`student_id`),
  KEY `course_id` (`course_id`),
  KEY `teacher_id` (`teacher_id`),
  CONSTRAINT `students_courses_ibfk_1` FOREIGN KEY (`student_id`) REFERENCES `students` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `students_courses_ibfk_2` FOREIGN KEY (`course_id`) REFERENCES `courses` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `students_courses_ibfk_3` FOREIGN KEY (`teacher_id`) REFERENCES `teachers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `students_courses`
--

LOCK TABLES `students_courses` WRITE;
/*!40000 ALTER TABLE `students_courses` DISABLE KEYS */;
INSERT INTO `students_courses` VALUES
(2,1,1,1,'1401-07-10',0),
(3,1,7,1,'1401-07-10',0),
(4,6,1,2,'1401-08-20',0),
(5,2,1,1,'1401-08-20',0),
(6,3,1,2,'1401-08-20',0),
(7,4,1,1,'1401-08-20',0),
(8,5,1,2,'1401-08-20',0),
(9,7,3,1,'1401-08-28',0),
(10,8,1,1,'1401-09-13',0),
(11,8,3,1,'1401-09-13',0),
(12,9,3,1,'1401-09-13',0),
(13,10,1,1,'1401-09-13',0),
(14,11,1,1,'1401-09-13',0),
(15,12,1,1,'1401-09-13',0),
(16,13,1,2,'1401-09-13',0),
(17,14,1,1,'1401-09-13',0),
(18,15,1,1,'1401-09-13',0),
(19,16,1,1,'1401-09-13',0),
(20,19,1,1,'1402-06-24',0);
/*!40000 ALTER TABLE `students_courses` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `students_courses_registrations`
--

DROP TABLE IF EXISTS `students_courses_registrations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `students_courses_registrations` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `student_course_id` int(11) DEFAULT NULL,
  `semester_id` int(11) DEFAULT NULL,
  `date` varchar(10) DEFAULT NULL,
  `tuition_fee` int(11) DEFAULT NULL,
  `tuition_fee_per_session` int(11) NOT NULL,
  `tuition_fee_off_percent` int(11) DEFAULT 0,
  `teacher_share` int(11) DEFAULT 50,
  `comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `semester_id` (`semester_id`),
  KEY `student_course_id` (`student_course_id`),
  CONSTRAINT `students_courses_registrations_ibfk_1` FOREIGN KEY (`semester_id`) REFERENCES `semesters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `students_courses_registrations_ibfk_2` FOREIGN KEY (`student_course_id`) REFERENCES `students_courses` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `students_courses_registrations`
--

LOCK TABLES `students_courses_registrations` WRITE;
/*!40000 ALTER TABLE `students_courses_registrations` DISABLE KEYS */;
INSERT INTO `students_courses_registrations` VALUES
(1,2,1,'1401-07-10',1400000,350000,15,50,''),
(2,5,1,'1401-09-03',700000,350000,50,50,'کارت به کارت'),
(3,6,1,'1401-08-20',1400000,350000,50,50,''),
(4,2,1,'1401-07-23',1400000,350000,0,50,''),
(5,9,1,'1401-08-21',1400000,350000,50,50,''),
(6,4,1,'1401-08-12',1400000,350000,50,50,''),
(7,7,1,'1401-08-28',1400000,350000,0,50,''),
(8,8,1,'1401-08-18',1400000,350000,0,50,''),
(10,13,1,'1401-09-06',1400000,350000,0,50,'شهریه 140 واریز شده طرح تخفیفی 100توان بوده 40 تومان بابت ترم بعد مانده'),
(12,17,1,'1401-08-29',500000,350000,50,50,'دوره افلاین ..مجازی'),
(15,18,1,'1401-09-02',500000,350000,50,50,'مجازی'),
(16,19,1,'1401-09-08',1000000,350000,50,50,'مجازی دو ترم با هم '),
(17,20,1,'1401-10-24',1400000,350000,28,50,''),
(18,20,1,'1402-01-18',1400000,350000,28,50,''),
(19,20,1,'1402-05-07',1400000,350000,28,50,'');
/*!40000 ALTER TABLE `students_courses_registrations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `students_courses_registrations_payments`
--

DROP TABLE IF EXISTS `students_courses_registrations_payments`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `students_courses_registrations_payments` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `student_course_registration_id` int(11) DEFAULT NULL,
  `payment_amount` int(11) DEFAULT NULL,
  `payment_method` int(1) DEFAULT NULL,
  `session_numbers` int(11) DEFAULT NULL,
  `date` varchar(10) DEFAULT NULL,
  `comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `student_course_registration_id` (`student_course_registration_id`),
  CONSTRAINT `students_courses_registrations_payments_ibfk_1` FOREIGN KEY (`student_course_registration_id`) REFERENCES `students_courses_registrations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `students_courses_registrations_payments`
--

LOCK TABLES `students_courses_registrations_payments` WRITE;
/*!40000 ALTER TABLE `students_courses_registrations_payments` DISABLE KEYS */;
INSERT INTO `students_courses_registrations_payments` VALUES
(1,2,700000,1,4,'1401-08-20','کارت به کارت'),
(2,1,1200000,1,4,'1401-07-10',''),
(3,4,1400000,1,4,'1401-07-23',''),
(4,3,700000,1,4,'1401-08-28',''),
(5,6,700000,1,4,'1401-08-28',''),
(6,7,1400000,1,4,'1401-08-28',''),
(7,5,1400000,1,4,'1401-08-28',''),
(8,8,1400000,1,4,'1401-08-28',''),
(10,2,700000,2,4,'1401-09-03','کارت به کارت '),
(11,12,500000,2,1,'1401-08-29','مجازی'),
(12,15,500000,2,1,'1401-09-02','مجازی'),
(13,17,1000000,1,4,'1402-06-24','کارت به کارت'),
(14,18,1000000,1,4,'1402-05-07','کارت به کارت'),
(15,19,1000000,1,4,'1402-06-04','');
/*!40000 ALTER TABLE `students_courses_registrations_payments` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `students_courses_schedules`
--

DROP TABLE IF EXISTS `students_courses_schedules`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `students_courses_schedules` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `student_course_registration_id` int(11) DEFAULT NULL,
  `room_id` int(11) DEFAULT NULL,
  `class_date` varchar(10) DEFAULT NULL,
  `class_start_time` varchar(5) DEFAULT NULL,
  `class_duration` int(11) DEFAULT NULL,
  `class_tuition_fee` int(11) DEFAULT NULL,
  `comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `class_status` tinyint(1) DEFAULT 0 COMMENT '\r\n0=normal\r\n1=hazer\r\n2=ghayeb\r\n3=cancle',
  `is_compensatory` int(1) DEFAULT NULL,
  `behalf_class_id` int(11) DEFAULT NULL,
  `compensatory_class_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `room_id` (`room_id`),
  KEY `student_course_registration_id` (`student_course_registration_id`),
  CONSTRAINT `students_courses_schedules_ibfk_1` FOREIGN KEY (`room_id`) REFERENCES `rooms` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `students_courses_schedules_ibfk_2` FOREIGN KEY (`student_course_registration_id`) REFERENCES `students_courses_registrations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=56 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `students_courses_schedules`
--

LOCK TABLES `students_courses_schedules` WRITE;
/*!40000 ALTER TABLE `students_courses_schedules` DISABLE KEYS */;
INSERT INTO `students_courses_schedules` VALUES
(1,1,1,'1401-07-10','18:00',120,300000,'',1,NULL,NULL,NULL),
(2,1,1,'1401-07-12','18:00',120,300000,'',1,NULL,NULL,NULL),
(3,1,1,'1401-07-13','18:00',120,300000,'',1,NULL,NULL,NULL),
(4,1,1,'1401-07-18','18:00',120,300000,'',1,NULL,NULL,NULL),
(5,4,1,'1401-07-23','18:00',120,350000,'',1,NULL,NULL,NULL),
(6,4,1,'1401-07-24','18:00',120,350000,'',1,NULL,NULL,NULL),
(7,4,1,'1401-07-30','18:00',120,350000,'',1,NULL,NULL,NULL),
(9,2,1,'1401-08-09','16:00',120,350000,'',1,NULL,NULL,NULL),
(10,2,1,'1401-08-16','16:00',120,350000,'',1,NULL,NULL,NULL),
(11,2,1,'1401-08-23','16:00',120,350000,'',1,NULL,NULL,NULL),
(12,2,1,'1401-08-30','16:00',120,350000,'',0,NULL,NULL,NULL),
(13,3,1,'1401-08-11','16:30',120,350000,'',0,NULL,NULL,NULL),
(14,3,1,'1401-08-15','09:00',120,350000,'',0,NULL,NULL,NULL),
(15,3,1,'1401-08-21','16:30',120,350000,'',0,NULL,NULL,NULL),
(17,5,1,'1401-08-21','09:00',120,350000,'',1,NULL,NULL,NULL),
(18,5,1,'1401-08-28','09:00',120,350000,'',0,NULL,NULL,NULL),
(19,5,1,'1401-09-05','09:00',120,350000,'',0,NULL,NULL,NULL),
(20,5,1,'1401-09-12','09:00',120,350000,'',0,NULL,NULL,NULL),
(21,6,1,'1401-08-12','09:00',120,350000,'',1,NULL,NULL,NULL),
(22,6,1,'1401-08-14','09:00',120,350000,'',1,NULL,NULL,NULL),
(23,6,1,'1401-08-21','09:00',120,350000,'',1,NULL,NULL,NULL),
(24,6,1,'1401-08-28','09:00',120,350000,'',0,NULL,NULL,NULL),
(25,7,1,'1401-08-18','09:00',120,350000,'',1,NULL,NULL,NULL),
(26,8,1,'1401-08-18','09:00',120,350000,'',1,NULL,NULL,NULL),
(32,17,1,'1401-10-24','09:30',120,350000,'',1,NULL,NULL,NULL),
(33,17,1,'1401-11-01','09:30',120,350000,'',1,NULL,NULL,NULL),
(34,17,1,'1401-11-08','09:30',120,350000,'',1,NULL,NULL,NULL),
(35,17,1,'1401-11-17','09:30',120,350000,'',1,NULL,NULL,NULL),
(36,18,1,'1401-01-10','09:30',120,350000,'',1,NULL,NULL,NULL),
(37,18,1,'1401-01-17','09:30',120,350000,'',1,NULL,NULL,NULL),
(38,18,1,'1401-01-21','09:30',120,350000,'',1,NULL,NULL,NULL),
(39,18,1,'1401-01-24','09:30',120,350000,'',1,NULL,NULL,NULL),
(42,19,1,'1402-05-21','09:30',120,350000,'',1,NULL,NULL,NULL),
(44,19,1,'1402-05-07','09:30',120,350000,'',1,NULL,NULL,NULL),
(47,19,1,'1402-05-28','09:30',120,350000,'',1,NULL,NULL,NULL),
(48,19,1,'1402-06-04','09:30',120,350000,'',1,NULL,NULL,NULL);
/*!40000 ALTER TABLE `students_courses_schedules` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Temporary table structure for view `students_courses_schedules_view`
--

DROP TABLE IF EXISTS `students_courses_schedules_view`;
/*!50001 DROP VIEW IF EXISTS `students_courses_schedules_view`*/;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8mb4;
/*!50001 CREATE VIEW `students_courses_schedules_view` AS SELECT
 1 AS `id`,
  1 AS `student_course_registration_id`,
  1 AS `room_id`,
  1 AS `class_date`,
  1 AS `class_start_time`,
  1 AS `class_duration`,
  1 AS `comment`,
  1 AS `class_status`,
  1 AS `student_fullname`,
  1 AS `teacher_fullname`,
  1 AS `course_title`,
  1 AS `teacher_id` */;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `students_courses_teachers_share`
--

DROP TABLE IF EXISTS `students_courses_teachers_share`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `students_courses_teachers_share` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `student_course_id` int(11) DEFAULT NULL,
  `start_date` varchar(10) DEFAULT NULL,
  `end_date` varchar(100) DEFAULT NULL,
  `teacher_share` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `student_course_id` (`student_course_id`),
  CONSTRAINT `students_courses_teachers_share_ibfk_1` FOREIGN KEY (`student_course_id`) REFERENCES `students_courses` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `students_courses_teachers_share`
--

LOCK TABLES `students_courses_teachers_share` WRITE;
/*!40000 ALTER TABLE `students_courses_teachers_share` DISABLE KEYS */;
INSERT INTO `students_courses_teachers_share` VALUES
(2,2,'0000-00-00','9999-99-99',50),
(3,3,'0000-00-00','9999-99-99',50),
(4,4,'0000-00-00','9999-99-99',50),
(5,5,'0000-00-00','9999-99-99',50),
(6,6,'0000-00-00','9999-99-99',50),
(7,7,'0000-00-00','9999-99-99',50),
(8,8,'0000-00-00','9999-99-99',50),
(9,9,'0000-00-00','9999-99-99',50),
(10,10,'0000-00-00','9999-99-99',50),
(11,11,'0000-00-00','9999-99-99',50),
(12,12,'0000-00-00','9999-99-99',50),
(13,13,'0000-00-00','9999-99-99',50),
(14,14,'0000-00-00','9999-99-99',50),
(15,15,'0000-00-00','9999-99-99',50),
(16,16,'0000-00-00','9999-99-99',50),
(17,17,'0000-00-00','9999-99-99',50),
(18,18,'0000-00-00','9999-99-99',50),
(19,19,'0000-00-00','9999-99-99',50),
(20,20,'0000-00-00','9999-99-99',50);
/*!40000 ALTER TABLE `students_courses_teachers_share` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Temporary table structure for view `students_goods_view`
--

DROP TABLE IF EXISTS `students_goods_view`;
/*!50001 DROP VIEW IF EXISTS `students_goods_view`*/;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8mb4;
/*!50001 CREATE VIEW `students_goods_view` AS SELECT
 1 AS `student_id`,
  1 AS `student_firstname`,
  1 AS `student_lastname`,
  1 AS `invoice_date`,
  1 AS `good_id`,
  1 AS `good_name`,
  1 AS `good_number`,
  1 AS `good_price`,
  1 AS `total_price`,
  1 AS `good_is_gift` */;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `students_login_log`
--

DROP TABLE IF EXISTS `students_login_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `students_login_log` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `student_id` int(11) NOT NULL,
  `date` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_persian_ci DEFAULT NULL,
  `time` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_persian_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `FK_students_login_log_user_id` (`student_id`),
  CONSTRAINT `FK_students_login_log_user_id` FOREIGN KEY (`student_id`) REFERENCES `students` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `students_login_log`
--

LOCK TABLES `students_login_log` WRITE;
/*!40000 ALTER TABLE `students_login_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `students_login_log` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `students_mobiles`
--

DROP TABLE IF EXISTS `students_mobiles`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `students_mobiles` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `student_id` int(11) DEFAULT NULL,
  `mobile_owner_type_id` int(11) DEFAULT NULL,
  `mobile_no` char(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `students_mobiles`
--

LOCK TABLES `students_mobiles` WRITE;
/*!40000 ALTER TABLE `students_mobiles` DISABLE KEYS */;
/*!40000 ALTER TABLE `students_mobiles` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `teachers`
--

DROP TABLE IF EXISTS `teachers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `teachers` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `firstname` varchar(100) DEFAULT NULL,
  `lastname` varchar(100) DEFAULT NULL,
  `tel` varchar(20) DEFAULT NULL,
  `mobile` varchar(11) DEFAULT NULL,
  `address` text DEFAULT NULL,
  `email` varchar(100) DEFAULT NULL,
  `reg_date` varchar(10) DEFAULT NULL,
  `job` varchar(100) DEFAULT NULL,
  `education` varchar(100) DEFAULT NULL,
  `birth_date` varchar(10) DEFAULT NULL,
  `history` text DEFAULT NULL,
  `works_of_art` text DEFAULT NULL,
  `account_info` text DEFAULT NULL,
  `operator_id` int(11) DEFAULT NULL,
  `cooperate_date` varchar(10) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `teachers`
--

LOCK TABLES `teachers` WRITE;
/*!40000 ALTER TABLE `teachers` DISABLE KEYS */;
INSERT INTO `teachers` VALUES
(1,'مریم','نیکوفر','','09181075416','','','','','','','','','',1,''),
(2,'مریم','پیرو','','','','','','','','','','','',1,'');
/*!40000 ALTER TABLE `teachers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `teachers_courses`
--

DROP TABLE IF EXISTS `teachers_courses`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `teachers_courses` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `teacher_id` int(11) DEFAULT NULL,
  `course_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `teacher_id` (`teacher_id`),
  KEY `course_id` (`course_id`),
  CONSTRAINT `teachers_courses_ibfk_1` FOREIGN KEY (`teacher_id`) REFERENCES `teachers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `teachers_courses_ibfk_2` FOREIGN KEY (`course_id`) REFERENCES `courses` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `teachers_courses`
--

LOCK TABLES `teachers_courses` WRITE;
/*!40000 ALTER TABLE `teachers_courses` DISABLE KEYS */;
INSERT INTO `teachers_courses` VALUES
(8,1,1),
(9,1,2),
(10,1,3),
(11,1,4),
(12,1,5),
(13,1,6),
(14,1,7),
(15,2,1);
/*!40000 ALTER TABLE `teachers_courses` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `teachers_payments`
--

DROP TABLE IF EXISTS `teachers_payments`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `teachers_payments` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `teacher_id` int(11) NOT NULL,
  `semester_id` int(11) DEFAULT NULL,
  `class_date_month` varchar(7) DEFAULT NULL,
  `payment_info` varchar(100) DEFAULT NULL,
  `payment_date` varchar(10) DEFAULT NULL,
  `payment_type` tinyint(1) DEFAULT NULL,
  `comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `teachers_payments`
--

LOCK TABLES `teachers_payments` WRITE;
/*!40000 ALTER TABLE `teachers_payments` DISABLE KEYS */;
/*!40000 ALTER TABLE `teachers_payments` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `users`
--

DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `users` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `fullname` varchar(100) NOT NULL,
  `user` varchar(20) NOT NULL,
  `pass` varchar(100) NOT NULL,
  `level` tinyint(4) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `users`
--

LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` VALUES
(1,'admin','admin','c4ca4238a0b923820dcc509a6f75849b',1);
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `users_login_log`
--

DROP TABLE IF EXISTS `users_login_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `users_login_log` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `date` varchar(10) NOT NULL,
  `time` varchar(10) NOT NULL,
  `ip` char(15) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `FK_users_login_log_user_id` (`user_id`),
  CONSTRAINT `FK_users_login_log_user_id` FOREIGN KEY (`user_id`) REFERENCES `people` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `users_login_log`
--

LOCK TABLES `users_login_log` WRITE;
/*!40000 ALTER TABLE `users_login_log` DISABLE KEYS */;
INSERT INTO `users_login_log` VALUES
(1,2,'1401-08-23','21:09:46','5.114.80.79'),
(2,2,'1401-08-24','15:37:52','85.133.232.202'),
(3,2,'1401-08-28','14:43:03','5.160.95.179'),
(4,2,'1401-08-28','16:24:58','5.160.95.179'),
(5,2,'1401-08-28','16:32:30','85.133.232.202'),
(6,2,'1401-08-28','16:33:32','151.238.88.175'),
(7,2,'1401-09-07','11:16:52','85.133.232.202'),
(8,2,'1401-09-12','14:25:32','5.160.95.179'),
(9,2,'1401-09-13','09:38:17','5.127.117.7'),
(10,2,'1401-09-13','10:57:15','5.127.117.7'),
(11,2,'1401-09-19','11:21:49','5.127.37.141'),
(12,2,'1401-09-21','21:35:04','5.114.52.254'),
(13,2,'1401-09-22','23:46:37','5.114.90.78'),
(14,2,'1401-09-30','18:56:39','192.15.171.147'),
(15,2,'1401-10-13','16:43:34','5.160.95.179'),
(16,2,'1401-12-21','12:50:17','5.160.95.179'),
(17,2,'1402-06-24','19:02:02','89.198.233.248'),
(18,2,'1402-06-24','19:09:51','89.198.239.195'),
(19,2,'1403-04-14','18:12:09','2.182.24.34'),
(20,2,'1403-04-14','18:18:31','5.116.5.228'),
(21,2,'1403-04-17','13:26:04','178.252.180.169'),
(22,3,'1403-04-17','13:29:02','178.252.180.169'),
(23,3,'1403-04-17','13:29:39','5.116.65.16'),
(24,2,'1403-04-23','09:02:14','178.252.180.169'),
(25,2,'1403-04-24','19:42:06','5.238.159.56'),
(26,2,'1403-04-26','20:40:45','2.182.26.210');
/*!40000 ALTER TABLE `users_login_log` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Final view structure for view `invoices_goods_view`
--

/*!50001 DROP VIEW IF EXISTS `invoices_goods_view`*/;
/*!50001 SET @saved_cs_client          = @@character_set_client */;
/*!50001 SET @saved_cs_results         = @@character_set_results */;
/*!50001 SET @saved_col_connection     = @@collation_connection */;
/*!50001 SET character_set_client      = cp850 */;
/*!50001 SET character_set_results     = cp850 */;
/*!50001 SET collation_connection      = cp850_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `invoices_goods_view` AS select `a`.`buyer_id` AS `buyer_id`,if(`a`.`is_student` = 1,`c`.`firstname`,convert(`e`.`firstname` using utf8mb3)) AS `buyer_firstname`,if(`a`.`is_student` = 1,`c`.`lastname`,convert(`e`.`lastname` using utf8mb3)) AS `buyer_lastname`,`a`.`date` AS `invoice_date`,`b`.`good_id` AS `good_id`,`d`.`name` AS `good_name`,`b`.`number` AS `good_number`,`b`.`price` AS `good_price`,`b`.`price` * `b`.`number` AS `total_price`,`b`.`is_gift` AS `good_is_gift` from ((((`invoices` `a` join `invoices_goods` `b` on(`a`.`id` = `b`.`invoice_id`)) join `goods` `d` on(`b`.`good_id` = `d`.`id`)) left join `students` `c` on(`c`.`id` = `a`.`buyer_id`)) left join `buyers` `e` on(`e`.`id` = `a`.`buyer_id`)) */;
/*!50001 SET character_set_client      = @saved_cs_client */;
/*!50001 SET character_set_results     = @saved_cs_results */;
/*!50001 SET collation_connection      = @saved_col_connection */;

--
-- Final view structure for view `students_courses_schedules_view`
--

/*!50001 DROP VIEW IF EXISTS `students_courses_schedules_view`*/;
/*!50001 SET @saved_cs_client          = @@character_set_client */;
/*!50001 SET @saved_cs_results         = @@character_set_results */;
/*!50001 SET @saved_col_connection     = @@collation_connection */;
/*!50001 SET character_set_client      = cp850 */;
/*!50001 SET character_set_results     = cp850 */;
/*!50001 SET collation_connection      = cp850_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `students_courses_schedules_view` AS select `a`.`id` AS `id`,`a`.`student_course_registration_id` AS `student_course_registration_id`,`a`.`room_id` AS `room_id`,`a`.`class_date` AS `class_date`,`a`.`class_start_time` AS `class_start_time`,`a`.`class_duration` AS `class_duration`,`a`.`comment` AS `comment`,`a`.`class_status` AS `class_status`,concat_ws(' ',`d`.`firstname`,`d`.`lastname`) AS `student_fullname`,concat_ws(' ',`e`.`firstname`,`e`.`lastname`) AS `teacher_fullname`,`f`.`title` AS `course_title`,`c`.`teacher_id` AS `teacher_id` from (((((`students_courses_schedules` `a` join `students_courses_registrations` `b`) join `students_courses` `c`) join `students` `d`) join `teachers` `e`) join `courses` `f`) where `b`.`id` = `a`.`student_course_registration_id` and `b`.`student_course_id` = `c`.`id` and `c`.`student_id` = `d`.`id` and `c`.`teacher_id` = `e`.`id` and `c`.`course_id` = `f`.`id` order by `a`.`class_date` */;
/*!50001 SET character_set_client      = @saved_cs_client */;
/*!50001 SET character_set_results     = @saved_cs_results */;
/*!50001 SET collation_connection      = @saved_col_connection */;

--
-- Final view structure for view `students_goods_view`
--

/*!50001 DROP VIEW IF EXISTS `students_goods_view`*/;
/*!50001 SET @saved_cs_client          = @@character_set_client */;
/*!50001 SET @saved_cs_results         = @@character_set_results */;
/*!50001 SET @saved_col_connection     = @@collation_connection */;
/*!50001 SET character_set_client      = cp850 */;
/*!50001 SET character_set_results     = cp850 */;
/*!50001 SET collation_connection      = cp850_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `students_goods_view` AS select `a`.`buyer_id` AS `student_id`,`c`.`firstname` AS `student_firstname`,`c`.`lastname` AS `student_lastname`,`a`.`date` AS `invoice_date`,`b`.`good_id` AS `good_id`,`d`.`name` AS `good_name`,`b`.`number` AS `good_number`,`b`.`price` AS `good_price`,`b`.`price` * `b`.`number` AS `total_price`,`b`.`is_gift` AS `good_is_gift` from (((`invoices` `a` join `invoices_goods` `b`) join `students` `c`) join `goods` `d`) where `a`.`id` = `b`.`invoice_id` and `b`.`good_id` = `d`.`id` and `a`.`buyer_id` = `c`.`id` and `a`.`is_student` = 1 */;
/*!50001 SET character_set_client      = @saved_cs_client */;
/*!50001 SET character_set_results     = @saved_cs_results */;
/*!50001 SET collation_connection      = @saved_col_connection */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2026-05-17 14:56:45

Youez - 2016 - github.com/yon3zu
LinuXploit