-- MySQL dump 10.13 Distrib 8.0.22, for Linux (x86_64)
--
-- Host: localhost Database: saturn
-- ------------------------------------------------------
-- Server version 8.0.22-0ubuntu0.20.04.3
/*!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 */;
/*!50503 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 `accommodation`
--
DROP TABLE IF EXISTS `accommodation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `accommodation` (
`accommodation_id` varchar(60) NOT NULL DEFAULT '',
`accommodation_category_id` varchar(60) DEFAULT NULL,
`room_number` varchar(11) DEFAULT NULL,
`status` int DEFAULT NULL,
`rent` int DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
PRIMARY KEY (`accommodation_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `accommodation`
--
LOCK TABLES `accommodation` WRITE;
/*!40000 ALTER TABLE `accommodation` DISABLE KEYS */;
/*!40000 ALTER TABLE `accommodation` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `accommodation_category`
--
DROP TABLE IF EXISTS `accommodation_category`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `accommodation_category` (
`accommodation_category_id` varchar(60) NOT NULL DEFAULT '',
`name` varchar(55) DEFAULT NULL,
`uri` varchar(55) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`accommodation_type` int DEFAULT NULL COMMENT 'single room = 0, is bed = 1, has beds = 2',
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
PRIMARY KEY (`accommodation_category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `accommodation_category`
--
LOCK TABLES `accommodation_category` WRITE;
/*!40000 ALTER TABLE `accommodation_category` DISABLE KEYS */;
/*!40000 ALTER TABLE `accommodation_category` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `appointment`
--
DROP TABLE IF EXISTS `appointment`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `appointment` (
`appointment_id` varchar(60) NOT NULL DEFAULT '',
`doctor_id` varchar(60) DEFAULT NULL,
`patient_id` varchar(60) DEFAULT NULL,
`appointment_date` int DEFAULT NULL,
`appointment_time` varchar(11) DEFAULT NULL,
`status` int DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
PRIMARY KEY (`appointment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `appointment`
--
LOCK TABLES `appointment` WRITE;
/*!40000 ALTER TABLE `appointment` DISABLE KEYS */;
/*!40000 ALTER TABLE `appointment` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `bed`
--
DROP TABLE IF EXISTS `bed`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `bed` (
`bed_id` varchar(60) NOT NULL DEFAULT '',
`root_accommodation_category_id` varchar(60) DEFAULT NULL,
`bed_number` varchar(11) DEFAULT NULL,
`status` int DEFAULT NULL,
`rent` int DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
`accommodation_category_id` varchar(60) DEFAULT NULL,
`accommodation_id` varchar(60) DEFAULT NULL,
PRIMARY KEY (`bed_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `bed`
--
LOCK TABLES `bed` WRITE;
/*!40000 ALTER TABLE `bed` DISABLE KEYS */;
/*!40000 ALTER TABLE `bed` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `blood_donor`
--
DROP TABLE IF EXISTS `blood_donor`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `blood_donor` (
`blood_donor_id` varchar(60) NOT NULL DEFAULT '',
`name` varchar(55) DEFAULT NULL,
`mobile_number` varchar(22) DEFAULT NULL,
`email` varchar(55) DEFAULT NULL,
`blood_inventory_id` int NOT NULL,
`address` varchar(111) DEFAULT NULL,
`dob` int DEFAULT NULL,
`age` int DEFAULT NULL,
`last_donated_on` int DEFAULT NULL,
`ssn` char(11) DEFAULT NULL,
`profession_id` int DEFAULT NULL,
`health_status` varchar(255) DEFAULT NULL,
`purpose` varchar(255) DEFAULT NULL,
`status` int DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
`sex_id` int DEFAULT NULL,
PRIMARY KEY (`blood_donor_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `blood_donor`
--
LOCK TABLES `blood_donor` WRITE;
/*!40000 ALTER TABLE `blood_donor` DISABLE KEYS */;
/*!40000 ALTER TABLE `blood_donor` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `blood_inventory`
--
DROP TABLE IF EXISTS `blood_inventory`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `blood_inventory` (
`blood_inventory_id` varchar(60) NOT NULL DEFAULT '',
`blood_group_name` char(11) NOT NULL,
`num_of_bags` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
PRIMARY KEY (`blood_inventory_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `blood_inventory`
--
LOCK TABLES `blood_inventory` WRITE;
/*!40000 ALTER TABLE `blood_inventory` DISABLE KEYS */;
INSERT INTO `blood_inventory` VALUES ('1','A+',1000,'c7f47180-77ce-49bd-9b08-7c440cd03b13',1587628392),('2','O+',1000,'c7f47180-77ce-49bd-9b08-7c440cd03b13',1587628374),('3','B+',1001,'c7f47180-77ce-49bd-9b08-7c440cd03b13',1587667415),('4','AB+',1002,'c7f47180-77ce-49bd-9b08-7c440cd03b13',1587667517),('5','A-',1000,'c7f47180-77ce-49bd-9b08-7c440cd03b13',1587628409),('6','O-',1001,'c7f47180-77ce-49bd-9b08-7c440cd03b13',1587628414),('7','B-',1001,'c7f47180-77ce-49bd-9b08-7c440cd03b13',1587628379),('8','AB-',1000,'c7f47180-77ce-49bd-9b08-7c440cd03b13',1587628385);
/*!40000 ALTER TABLE `blood_inventory` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `blood_request`
--
DROP TABLE IF EXISTS `blood_request`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `blood_request` (
`blood_request_id` varchar(60) NOT NULL DEFAULT '',
`blood_inventory_id` varchar(60) DEFAULT NULL,
`num_of_bags` int DEFAULT NULL,
`purpose` varchar(255) DEFAULT NULL,
`status` int DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
`doctor_id` varchar(60) DEFAULT NULL,
`blood_donor_id` varchar(60) DEFAULT NULL,
PRIMARY KEY (`blood_request_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `blood_request`
--
LOCK TABLES `blood_request` WRITE;
/*!40000 ALTER TABLE `blood_request` DISABLE KEYS */;
/*!40000 ALTER TABLE `blood_request` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cafeteria_inventory`
--
DROP TABLE IF EXISTS `cafeteria_inventory`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `cafeteria_inventory` (
`cafeteria_inventory_id` varchar(60) NOT NULL DEFAULT '',
`name` varchar(55) DEFAULT NULL,
`code` varchar(22) DEFAULT NULL,
`price` int DEFAULT NULL,
`quantity` int DEFAULT NULL,
`unit_id` varchar(60) DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
PRIMARY KEY (`cafeteria_inventory_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cafeteria_inventory`
--
LOCK TABLES `cafeteria_inventory` WRITE;
/*!40000 ALTER TABLE `cafeteria_inventory` DISABLE KEYS */;
/*!40000 ALTER TABLE `cafeteria_inventory` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cafeteria_sale`
--
DROP TABLE IF EXISTS `cafeteria_sale`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `cafeteria_sale` (
`cafeteria_sale_id` varchar(60) NOT NULL DEFAULT '',
`status` int DEFAULT NULL,
`grand_total` int DEFAULT NULL,
`customer_name` varchar(55) DEFAULT NULL,
`customer_mobile` varchar(22) DEFAULT NULL,
`invoice_number` varchar(22) DEFAULT NULL,
`discount` int DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
PRIMARY KEY (`cafeteria_sale_id`),
UNIQUE KEY `invoice_number` (`invoice_number`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cafeteria_sale`
--
LOCK TABLES `cafeteria_sale` WRITE;
/*!40000 ALTER TABLE `cafeteria_sale` DISABLE KEYS */;
/*!40000 ALTER TABLE `cafeteria_sale` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cafeteria_sale_details`
--
DROP TABLE IF EXISTS `cafeteria_sale_details`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `cafeteria_sale_details` (
`cafeteria_sale_details_id` varchar(60) NOT NULL,
`cafeteria_inventory_id` varchar(60) DEFAULT NULL,
`quantity` int DEFAULT NULL,
`total` int DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`cafeteria_sale_id` varchar(60) DEFAULT NULL,
PRIMARY KEY (`cafeteria_sale_details_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cafeteria_sale_details`
--
LOCK TABLES `cafeteria_sale_details` WRITE;
/*!40000 ALTER TABLE `cafeteria_sale_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `cafeteria_sale_details` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `certificate`
--
DROP TABLE IF EXISTS `certificate`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `certificate` (
`certificate_id` varchar(60) NOT NULL DEFAULT '',
`certificate_type` int DEFAULT NULL,
`name` varchar(55) DEFAULT NULL,
`father_name` varchar(55) DEFAULT NULL,
`mother_name` varchar(55) DEFAULT NULL,
`ssn` varchar(15) DEFAULT NULL,
`sex_id` int DEFAULT NULL,
`dod` int DEFAULT NULL,
`address` varchar(111) DEFAULT NULL,
`age` int DEFAULT NULL,
`dob` int DEFAULT NULL,
`extra_note` varchar(255) DEFAULT NULL,
`place` varchar(111) DEFAULT NULL,
`reason` varchar(255) DEFAULT NULL,
`email` varchar(55) DEFAULT NULL,
`mobile_number` varchar(22) DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
`doctor_id` varchar(60) DEFAULT NULL,
PRIMARY KEY (`certificate_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `certificate`
--
LOCK TABLES `certificate` WRITE;
/*!40000 ALTER TABLE `certificate` DISABLE KEYS */;
/*!40000 ALTER TABLE `certificate` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `currency`
--
DROP TABLE IF EXISTS `currency`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `currency` (
`currency_id` int NOT NULL AUTO_INCREMENT,
`name` varchar(64) DEFAULT NULL,
`code` char(3) DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
PRIMARY KEY (`currency_id`)
) ENGINE=InnoDB AUTO_INCREMENT=168 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `currency`
--
LOCK TABLES `currency` WRITE;
/*!40000 ALTER TABLE `currency` DISABLE KEYS */;
INSERT INTO `currency` VALUES (1,'Andorran Peseta','ADP',1519583748,'1',1519583748,'1'),(2,'United Arab Emirates Dirham','AED',1519583748,'1',1519583748,'1'),(3,'Afghanistan Afghani','AFA',1519583748,'1',1519583748,'1'),(4,'Albanian Lek','ALL',1519583748,'1',1519583748,'1'),(5,'Netherlands Antillian Guilder','ANG',1519583748,'1',1519583748,'1'),(6,'Angolan Kwanza','AOK',1519583748,'1',1519583748,'1'),(7,'Argentine Peso','ARS',1519583748,'1',1519583748,'1'),(9,'Australian Dollar','AUD',1519583748,'1',1519583748,'1'),(10,'Aruban Florin','AWG',1519583748,'1',1519583748,'1'),(11,'Barbados Dollar','BBD',1519583748,'1',1519583748,'1'),(12,'Bangladeshi Taka','BDT',1519583748,'1',1519583748,'1'),(14,'Bulgarian Lev','BGN',1519583748,'1',1519583748,'1'),(15,'Bahraini Dinar','BHD',1519583748,'1',1519583748,'1'),(16,'Burundi Franc','BIF',1519583748,'1',1519583748,'1'),(17,'Bermudian Dollar','BMD',1519583748,'1',1519583748,'1'),(18,'Brunei Dollar','BND',1519583748,'1',1519583748,'1'),(19,'Bolivian Boliviano','BOB',1519583748,'1',1519583748,'1'),(20,'Brazilian Real','BRL',1519583748,'1',1519583748,'1'),(21,'Bahamian Dollar','BSD',1519583748,'1',1519583748,'1'),(22,'Bhutan Ngultrum','BTN',1519583748,'1',1519583748,'1'),(23,'Burma Kyat','BUK',1519583748,'1',1519583748,'1'),(24,'Botswanian Pula','BWP',1519583748,'1',1519583748,'1'),(25,'Belize Dollar','BZD',1519583748,'1',1519583748,'1'),(26,'Canadian Dollar','CAD',1519583748,'1',1519583748,'1'),(27,'Swiss Franc','CHF',1519583748,'1',1519583748,'1'),(28,'Chilean Unidades de Fomento','CLF',1519583748,'1',1519583748,'1'),(29,'Chilean Peso','CLP',1519583748,'1',1519583748,'1'),(30,'Yuan (Chinese) Renminbi','CNY',1519583748,'1',1519583748,'1'),(31,'Colombian Peso','COP',1519583748,'1',1519583748,'1'),(32,'Costa Rican Colon','CRC',1519583748,'1',1519583748,'1'),(33,'Czech Republic Koruna','CZK',1519583748,'1',1519583748,'1'),(34,'Cuban Peso','CUP',1519583748,'1',1519583748,'1'),(35,'Cape Verde Escudo','CVE',1519583748,'1',1519583748,'1'),(36,'Cyprus Pound','CYP',1519583748,'1',1519583748,'1'),(40,'Danish Krone','DKK',1519583748,'1',1519583748,'1'),(41,'Dominican Peso','DOP',1519583748,'1',1519583748,'1'),(42,'Algerian Dinar','DZD',1519583748,'1',1519583748,'1'),(43,'Ecuador Sucre','ECS',1519583748,'1',1519583748,'1'),(44,'Egyptian Pound','EGP',1519583748,'1',1519583748,'1'),(45,'Estonian Kroon (EEK)','EEK',1519583748,'1',1519583748,'1'),(46,'Ethiopian Birr','ETB',1519583748,'1',1519583748,'1'),(47,'Euro','EUR',1519583748,'1',1519583748,'1'),(49,'Fiji Dollar','FJD',1519583748,'1',1519583748,'1'),(50,'Falkland Islands Pound','FKP',1519583748,'1',1519583748,'1'),(52,'British Pound','GBP',1519583748,'1',1519583748,'1'),(53,'Ghanaian Cedi','GHC',1519583748,'1',1519583748,'1'),(54,'Gibraltar Pound','GIP',1519583748,'1',1519583748,'1'),(55,'Gambian Dalasi','GMD',1519583748,'1',1519583748,'1'),(56,'Guinea Franc','GNF',1519583748,'1',1519583748,'1'),(58,'Guatemalan Quetzal','GTQ',1519583748,'1',1519583748,'1'),(59,'Guinea-Bissau Peso','GWP',1519583748,'1',1519583748,'1'),(60,'Guyanan Dollar','GYD',1519583748,'1',1519583748,'1'),(61,'Hong Kong Dollar','HKD',1519583748,'1',1519583748,'1'),(62,'Honduran Lempira','HNL',1519583748,'1',1519583748,'1'),(63,'Haitian Gourde','HTG',1519583748,'1',1519583748,'1'),(64,'Hungarian Forint','HUF',1519583748,'1',1519583748,'1'),(65,'Indonesian Rupiah','IDR',1519583748,'1',1519583748,'1'),(66,'Irish Punt','IEP',1519583748,'1',1519583748,'1'),(67,'Israeli Shekel','ILS',1519583748,'1',1519583748,'1'),(68,'Indian Rupee','INR',1519583748,'1',1519583748,'1'),(69,'Iraqi Dinar','IQD',1519583748,'1',1519583748,'1'),(70,'Iranian Rial','IRR',1519583748,'1',1519583748,'1'),(73,'Jamaican Dollar','JMD',1519583748,'1',1519583748,'1'),(74,'Jordanian Dinar','JOD',1519583748,'1',1519583748,'1'),(75,'Japanese Yen','JPY',1519583748,'1',1519583748,'1'),(76,'Kenyan Schilling','KES',1519583748,'1',1519583748,'1'),(77,'Kampuchean (Cambodian) Riel','KHR',1519583748,'1',1519583748,'1'),(78,'Comoros Franc','KMF',1519583748,'1',1519583748,'1'),(79,'North Korean Won','KPW',1519583748,'1',1519583748,'1'),(80,'(South) Korean Won','KRW',1519583748,'1',1519583748,'1'),(81,'Kuwaiti Dinar','KWD',1519583748,'1',1519583748,'1'),(82,'Cayman Islands Dollar','KYD',1519583748,'1',1519583748,'1'),(83,'Lao Kip','LAK',1519583748,'1',1519583748,'1'),(84,'Lebanese Pound','LBP',1519583748,'1',1519583748,'1'),(85,'Sri Lanka Rupee','LKR',1519583748,'1',1519583748,'1'),(86,'Liberian Dollar','LRD',1519583748,'1',1519583748,'1'),(87,'Lesotho Loti','LSL',1519583748,'1',1519583748,'1'),(89,'Libyan Dinar','LYD',1519583748,'1',1519583748,'1'),(90,'Moroccan Dirham','MAD',1519583748,'1',1519583748,'1'),(91,'Malagasy Franc','MGF',1519583748,'1',1519583748,'1'),(92,'Mongolian Tugrik','MNT',1519583748,'1',1519583748,'1'),(93,'Macau Pataca','MOP',1519583748,'1',1519583748,'1'),(94,'Mauritanian Ouguiya','MRO',1519583748,'1',1519583748,'1'),(95,'Maltese Lira','MTL',1519583748,'1',1519583748,'1'),(96,'Mauritius Rupee','MUR',1519583748,'1',1519583748,'1'),(97,'Maldive Rufiyaa','MVR',1519583748,'1',1519583748,'1'),(98,'Malawi Kwacha','MWK',1519583748,'1',1519583748,'1'),(99,'Mexican Peso','MXP',1519583748,'1',1519583748,'1'),(100,'Malaysian Ringgit','MYR',1519583748,'1',1519583748,'1'),(101,'Mozambique Metical','MZM',1519583748,'1',1519583748,'1'),(102,'Namibian Dollar','NAD',1519583748,'1',1519583748,'1'),(103,'Nigerian Naira','NGN',1519583748,'1',1519583748,'1'),(104,'Nicaraguan Cordoba','NIO',1519583748,'1',1519583748,'1'),(105,'Norwegian Kroner','NOK',1519583748,'1',1519583748,'1'),(106,'Nepalese Rupee','NPR',1519583748,'1',1519583748,'1'),(107,'New Zealand Dollar','NZD',1519583748,'1',1519583748,'1'),(108,'Omani Rial','OMR',1519583748,'1',1519583748,'1'),(109,'Panamanian Balboa','PAB',1519583748,'1',1519583748,'1'),(110,'Peruvian Nuevo Sol','PEN',1519583748,'1',1519583748,'1'),(111,'Papua New Guinea Kina','PGK',1519583748,'1',1519583748,'1'),(112,'Philippine Peso','PHP',1519583748,'1',1519583748,'1'),(113,'Pakistan Rupee','PKR',1519583748,'1',1519583748,'1'),(114,'Polish Zloty','PLN',1519583748,'1',1519583748,'1'),(116,'Paraguay Guarani','PYG',1519583748,'1',1519583748,'1'),(117,'Qatari Rial','QAR',1519583748,'1',1519583748,'1'),(118,'Romanian Leu','RON',1519583748,'1',1519583748,'1'),(119,'Rwanda Franc','RWF',1519583748,'1',1519583748,'1'),(120,'Saudi Arabian Riyal','SAR',1519583748,'1',1519583748,'1'),(121,'Solomon Islands Dollar','SBD',1519583748,'1',1519583748,'1'),(122,'Seychelles Rupee','SCR',1519583748,'1',1519583748,'1'),(123,'Sudanese Pound','SDP',1519583748,'1',1519583748,'1'),(124,'Swedish Krona','SEK',1519583748,'1',1519583748,'1'),(125,'Singapore Dollar','SGD',1519583748,'1',1519583748,'1'),(126,'St. Helena Pound','SHP',1519583748,'1',1519583748,'1'),(127,'Sierra Leone Leone','SLL',1519583748,'1',1519583748,'1'),(128,'Somali Schilling','SOS',1519583748,'1',1519583748,'1'),(129,'Suriname Guilder','SRG',1519583748,'1',1519583748,'1'),(130,'Sao Tome and Principe Dobra','STD',1519583748,'1',1519583748,'1'),(131,'Russian Ruble','RUB',1519583748,'1',1519583748,'1'),(132,'El Salvador Colon','SVC',1519583748,'1',1519583748,'1'),(133,'Syrian Potmd','SYP',1519583748,'1',1519583748,'1'),(134,'Swaziland Lilangeni','SZL',1519583748,'1',1519583748,'1'),(135,'Thai Baht','THB',1519583748,'1',1519583748,'1'),(136,'Tunisian Dinar','TND',1519583748,'1',1519583748,'1'),(137,'Tongan Paanga','TOP',1519583748,'1',1519583748,'1'),(138,'East Timor Escudo','TPE',1519583748,'1',1519583748,'1'),(139,'Turkish Lira','TRY',1519583748,'1',1519583748,'1'),(140,'Trinidad and Tobago Dollar','TTD',1519583748,'1',1519583748,'1'),(141,'Taiwan Dollar','TWD',1519583748,'1',1519583748,'1'),(142,'Tanzanian Schilling','TZS',1519583748,'1',1519583748,'1'),(143,'Uganda Shilling','UGX',1519583748,'1',1519583748,'1'),(144,'US Dollar','USD',1519583748,'1',1519583748,'1'),(145,'Uruguayan Peso','UYU',1519583748,'1',1519583748,'1'),(146,'Venezualan Bolivar','VEF',1519583748,'1',1519583748,'1'),(147,'Vietnamese Dong','VND',1519583748,'1',1519583748,'1'),(148,'Vanuatu Vatu','VUV',1519583748,'1',1519583748,'1'),(149,'Samoan Tala','WST',1519583748,'1',1519583748,'1'),(150,'Communauté Financière Africaine BEAC, Francs','XAF',1519583748,'1',1519583748,'1'),(151,'Silver, Ounces','XAG',1519583748,'1',1519583748,'1'),(152,'Gold, Ounces','XAU',1519583748,'1',1519583748,'1'),(153,'East Caribbean Dollar','XCD',1519583748,'1',1519583748,'1'),(154,'International Monetary Fund (IMF) Special Drawing Rights','XDR',1519583748,'1',1519583748,'1'),(155,'Communauté Financière Africaine BCEAO - Francs','XOF',1519583748,'1',1519583748,'1'),(156,'Palladium Ounces','XPD',1519583748,'1',1519583748,'1'),(157,'Comptoirs Français du Pacifique Francs','XPF',1519583748,'1',1519583748,'1'),(158,'Platinum, Ounces','XPT',1519583748,'1',1519583748,'1'),(159,'Democratic Yemeni Dinar','YDD',1519583748,'1',1519583748,'1'),(160,'Yemeni Rial','YER',1519583748,'1',1519583748,'1'),(161,'New Yugoslavia Dinar','YUD',1519583748,'1',1519583748,'1'),(162,'South African Rand','ZAR',1519583748,'1',1519583748,'1'),(163,'Zambian Kwacha','ZMK',1519583748,'1',1519583748,'1'),(164,'Zaire Zaire','ZRZ',1519583748,'1',1519583748,'1'),(165,'Zimbabwe Dollar','ZWD',1519583748,'1',1519583748,'1'),(166,'Slovak Koruna','SKK',1519583748,'1',1519583748,'1'),(167,'Armenian Dram','AMD',1519583748,'1',1519583748,'1');
/*!40000 ALTER TABLE `currency` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `custom_invoice_item`
--
DROP TABLE IF EXISTS `custom_invoice_item`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `custom_invoice_item` (
`custom_invoice_item_id` varchar(60) NOT NULL,
`item` varchar(55) DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`cost` int DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
PRIMARY KEY (`custom_invoice_item_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `custom_invoice_item`
--
LOCK TABLES `custom_invoice_item` WRITE;
/*!40000 ALTER TABLE `custom_invoice_item` DISABLE KEYS */;
/*!40000 ALTER TABLE `custom_invoice_item` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `department`
--
DROP TABLE IF EXISTS `department`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `department` (
`department_id` varchar(60) NOT NULL DEFAULT '',
`name` varchar(55) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
PRIMARY KEY (`department_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `department`
--
LOCK TABLES `department` WRITE;
/*!40000 ALTER TABLE `department` DISABLE KEYS */;
/*!40000 ALTER TABLE `department` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `discharge`
--
DROP TABLE IF EXISTS `discharge`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `discharge` (
`discharge_id` varchar(60) NOT NULL DEFAULT '',
`occupancy_id` varchar(60) DEFAULT NULL,
`doctor_id` varchar(60) DEFAULT NULL,
`next_appointment` int DEFAULT NULL,
`conditions` varchar(255) DEFAULT NULL,
`instructions` varchar(255) DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
PRIMARY KEY (`discharge_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `discharge`
--
LOCK TABLES `discharge` WRITE;
/*!40000 ALTER TABLE `discharge` DISABLE KEYS */;
/*!40000 ALTER TABLE `discharge` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `discharge_details`
--
DROP TABLE IF EXISTS `discharge_details`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `discharge_details` (
`discharge_details_id` varchar(60) NOT NULL,
`medicine_id` varchar(60) DEFAULT NULL,
`dose` varchar(11) DEFAULT NULL,
`medication_time` varchar(11) DEFAULT NULL,
`discharge_id` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
PRIMARY KEY (`discharge_details_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `discharge_details`
--
LOCK TABLES `discharge_details` WRITE;
/*!40000 ALTER TABLE `discharge_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `discharge_details` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `disease`
--
DROP TABLE IF EXISTS `disease`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `disease` (
`disease_id` varchar(60) NOT NULL DEFAULT '',
`name` varchar(55) DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
PRIMARY KEY (`disease_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `disease`
--
LOCK TABLES `disease` WRITE;
/*!40000 ALTER TABLE `disease` DISABLE KEYS */;
/*!40000 ALTER TABLE `disease` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `doctor`
--
DROP TABLE IF EXISTS `doctor`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `doctor` (
`doctor_id` varchar(60) NOT NULL DEFAULT '',
`name` varchar(55) DEFAULT NULL,
`email` varchar(55) DEFAULT NULL,
`mobile_number` varchar(22) DEFAULT NULL,
`department_id` varchar(60) DEFAULT NULL,
`image_link` varchar(255) DEFAULT NULL,
`address` varchar(111) DEFAULT NULL,
`age` int DEFAULT NULL,
`dob` int DEFAULT NULL,
`ssn` char(11) DEFAULT NULL,
`sex_id` int DEFAULT NULL,
`blood_inventory_id` varchar(60) DEFAULT NULL,
`staff_category_id` varchar(60) DEFAULT NULL,
`degrees` varchar(111) DEFAULT NULL,
`designation` varchar(111) DEFAULT NULL,
`status` int DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
`appointment_fee` int DEFAULT NULL,
PRIMARY KEY (`doctor_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `doctor`
--
LOCK TABLES `doctor` WRITE;
/*!40000 ALTER TABLE `doctor` DISABLE KEYS */;
/*!40000 ALTER TABLE `doctor` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `expense`
--
DROP TABLE IF EXISTS `expense`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `expense` (
`expense_id` varchar(60) NOT NULL,
`name` varchar(55) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`amount` int DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
`month` varchar(11) DEFAULT NULL,
`year` int DEFAULT NULL,
PRIMARY KEY (`expense_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `expense`
--
LOCK TABLES `expense` WRITE;
/*!40000 ALTER TABLE `expense` DISABLE KEYS */;
/*!40000 ALTER TABLE `expense` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `feedback`
--
DROP TABLE IF EXISTS `feedback`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `feedback` (
`feedback_id` varchar(60) NOT NULL DEFAULT '',
`feedback` text NOT NULL,
`user_id` varchar(60) DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
PRIMARY KEY (`feedback_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `feedback`
--
LOCK TABLES `feedback` WRITE;
/*!40000 ALTER TABLE `feedback` DISABLE KEYS */;
/*!40000 ALTER TABLE `feedback` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `inventory`
--
DROP TABLE IF EXISTS `inventory`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `inventory` (
`inventory_id` varchar(60) NOT NULL,
`item` varchar(55) NOT NULL,
`description` varchar(255) DEFAULT NULL,
`quantity` int DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
PRIMARY KEY (`inventory_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `inventory`
--
LOCK TABLES `inventory` WRITE;
/*!40000 ALTER TABLE `inventory` DISABLE KEYS */;
/*!40000 ALTER TABLE `inventory` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `invoice`
--
DROP TABLE IF EXISTS `invoice`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `invoice` (
`invoice_id` varchar(60) NOT NULL,
`invoice_number` varchar(22) DEFAULT NULL,
`grand_total` int DEFAULT NULL,
`discount` int DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
`patient_name` varchar(55) DEFAULT NULL,
`patient_mobile` varchar(22) DEFAULT NULL,
`patient_address` varchar(111) DEFAULT NULL,
`patient_id` varchar(60) DEFAULT NULL,
PRIMARY KEY (`invoice_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `invoice`
--
LOCK TABLES `invoice` WRITE;
/*!40000 ALTER TABLE `invoice` DISABLE KEYS */;
/*!40000 ALTER TABLE `invoice` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `invoice_request`
--
DROP TABLE IF EXISTS `invoice_request`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `invoice_request` (
`invoice_request_id` varchar(60) NOT NULL,
`table_name` varchar(55) DEFAULT NULL,
`table_row_id` varchar(60) DEFAULT NULL,
`amount` float DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
`status` int DEFAULT NULL COMMENT '0 = Unpaid, 1 = Paid',
`invoice_id` varchar(60) DEFAULT NULL,
`patient_id` varchar(60) DEFAULT NULL,
`item` varchar(55) DEFAULT NULL,
`quantity` int DEFAULT NULL,
`is_custom` int DEFAULT NULL,
PRIMARY KEY (`invoice_request_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `invoice_request`
--
LOCK TABLES `invoice_request` WRITE;
/*!40000 ALTER TABLE `invoice_request` DISABLE KEYS */;
/*!40000 ALTER TABLE `invoice_request` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `laboratory`
--
DROP TABLE IF EXISTS `laboratory`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `laboratory` (
`laboratory_id` varchar(60) NOT NULL DEFAULT '',
`room_number` varchar(11) DEFAULT NULL,
`name` varchar(55) DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
PRIMARY KEY (`laboratory_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `laboratory`
--
LOCK TABLES `laboratory` WRITE;
/*!40000 ALTER TABLE `laboratory` DISABLE KEYS */;
/*!40000 ALTER TABLE `laboratory` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `medicine`
--
DROP TABLE IF EXISTS `medicine`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `medicine` (
`medicine_id` varchar(60) NOT NULL DEFAULT '',
`name` varchar(55) DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
PRIMARY KEY (`medicine_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `medicine`
--
LOCK TABLES `medicine` WRITE;
/*!40000 ALTER TABLE `medicine` DISABLE KEYS */;
/*!40000 ALTER TABLE `medicine` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `message`
--
DROP TABLE IF EXISTS `message`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `message` (
`message_id` varchar(60) NOT NULL DEFAULT '',
`receiver_id` varchar(60) DEFAULT NULL,
`message` text,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
PRIMARY KEY (`message_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `message`
--
LOCK TABLES `message` WRITE;
/*!40000 ALTER TABLE `message` DISABLE KEYS */;
/*!40000 ALTER TABLE `message` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `module`
--
DROP TABLE IF EXISTS `module`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `module` (
`module_id` int NOT NULL AUTO_INCREMENT,
`name` varchar(55) DEFAULT NULL,
`title` varchar(55) DEFAULT NULL,
PRIMARY KEY (`module_id`)
) ENGINE=InnoDB AUTO_INCREMENT=55 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `module`
--
LOCK TABLES `module` WRITE;
/*!40000 ALTER TABLE `module` DISABLE KEYS */;
INSERT INTO `module` VALUES (1,'dashboard','Dashboard'),(2,'occupancies','Occupancies'),(3,'treatments','Treatments'),(4,'discharges','Discharges'),(5,'patient_meals','Patient Meals'),(6,'appointments','Appointments'),(7,'patients','Patients'),(8,'prescriptions','Prescriptions'),(9,'emergency_rosters','Emergency Rosters'),(10,'emergency_patients','Emergency Patients'),(11,'pharmacy_inventory','Pharmacy Inventory'),(12,'pharmacy_invoice','Pharmacy Invoice'),(13,'pharmacy_pos','Pharmacy POS'),(14,'pharmacy_sales','Pharmacy Sales'),(15,'pharmacy_sale_returns','Pharmacy Sale Returns'),(16,'pharmacy_units','Pharmacy Units'),(17,'cafeteria_inventory','Cafeteria Inventory'),(18,'cafeteria_pos','Cafeteria POS'),(19,'cafeteria_invoice','Cafeteria Invoice'),(20,'cafeteria_sales','Cafeteria Sales'),(21,'cafeteria_units','Cafeteria Units'),(22,'staff_categories','Staff Categories'),(23,'staff','Staff'),(24,'accommodation_categories','Accommodation Categories'),(25,'accommodations','Accommodations'),(26,'transport_categories','Transport Categories'),(27,'transports','Transports'),(28,'departments','Departments'),(29,'settings','Settings'),(31,'payroll','Payroll'),(32,'revenue','Revenue'),(33,'inventory','Inventory'),(34,'expenses','Expenses'),(35,'income_statement','Income Statement'),(36,'blood_requests','Blood Requests'),(37,'blood_inventory','Blood Inventory'),(38,'blood_donors','Blood Donors'),(39,'reports','Reports'),(40,'report_categories','Report Categories'),(41,'laboratories','Laboratories'),(42,'notices','Notices'),(43,'feedback_and_ratings','Feedback & Ratings'),(44,'certificates','Certificates'),(45,'medicines','Medicines'),(46,'diseases','Diseases'),(47,'rosters','Rosters'),(48,'individual_workload','Individual Workload'),(49,'shift_categories','Shift Categories'),(50,'shifts','Shifts'),(51,'invoice_requests','Invoice Requests'),(52,'invoices','Invoices'),(53,'custom_invoice_items','Custom Invoice Items'),(54,'transport_services','Transport Services');
/*!40000 ALTER TABLE `module` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `notice`
--
DROP TABLE IF EXISTS `notice`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `notice` (
`notice_id` varchar(60) NOT NULL DEFAULT '',
`notice` text NOT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
`title` varchar(111) DEFAULT NULL,
PRIMARY KEY (`notice_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `notice`
--
LOCK TABLES `notice` WRITE;
/*!40000 ALTER TABLE `notice` DISABLE KEYS */;
/*!40000 ALTER TABLE `notice` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `occupancy`
--
DROP TABLE IF EXISTS `occupancy`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `occupancy` (
`occupancy_id` varchar(60) NOT NULL DEFAULT '',
`patient_id` varchar(60) DEFAULT NULL,
`accommodation_category_id` varchar(60) DEFAULT NULL,
`accommodation_id` varchar(60) DEFAULT NULL,
`doctor_id` varchar(60) DEFAULT NULL,
`status` int DEFAULT NULL COMMENT '0 = Discharged, 1 = Admitted',
`reason` varchar(255) DEFAULT NULL,
`extra_note` varchar(255) DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
PRIMARY KEY (`occupancy_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `occupancy`
--
LOCK TABLES `occupancy` WRITE;
/*!40000 ALTER TABLE `occupancy` DISABLE KEYS */;
/*!40000 ALTER TABLE `occupancy` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `patient`
--
DROP TABLE IF EXISTS `patient`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `patient` (
`patient_id` varchar(60) NOT NULL DEFAULT '',
`pid` varchar(22) DEFAULT NULL,
`profession_id` int DEFAULT NULL,
`name` varchar(55) DEFAULT NULL,
`email` varchar(55) DEFAULT NULL,
`password` varchar(99) DEFAULT NULL,
`mobile_number` varchar(22) DEFAULT NULL,
`image_link` varchar(255) DEFAULT NULL,
`address` varchar(111) DEFAULT NULL,
`age` int DEFAULT NULL,
`dob` int DEFAULT NULL,
`sex_id` int DEFAULT NULL,
`blood_inventory_id` varchar(60) DEFAULT NULL,
`ssn` char(11) DEFAULT NULL,
`father_name` varchar(55) DEFAULT NULL,
`mother_name` varchar(55) DEFAULT NULL,
`emergency_contact` varchar(55) DEFAULT NULL,
`emergency_contact_number` varchar(22) DEFAULT NULL,
`emergency_contact_relation` varchar(22) DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
`type` int DEFAULT NULL COMMENT '0 = Regular, 1 = Emergency',
`status` int DEFAULT NULL COMMENT '0 = Not Admitted, 1 = Admitted',
PRIMARY KEY (`patient_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `patient`
--
LOCK TABLES `patient` WRITE;
/*!40000 ALTER TABLE `patient` DISABLE KEYS */;
/*!40000 ALTER TABLE `patient` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `patient_meal`
--
DROP TABLE IF EXISTS `patient_meal`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `patient_meal` (
`patient_meal_id` varchar(60) NOT NULL DEFAULT '',
`occupancy_id` varchar(60) DEFAULT NULL,
`doctor_id` varchar(60) DEFAULT NULL,
`breakfast` varchar(255) DEFAULT NULL,
`milk_break` varchar(255) DEFAULT NULL,
`lunch` varchar(255) DEFAULT NULL,
`tea_break` varchar(255) DEFAULT NULL,
`dinner` varchar(255) DEFAULT NULL,
`extra_note` varchar(255) DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
PRIMARY KEY (`patient_meal_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `patient_meal`
--
LOCK TABLES `patient_meal` WRITE;
/*!40000 ALTER TABLE `patient_meal` DISABLE KEYS */;
/*!40000 ALTER TABLE `patient_meal` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `payroll`
--
DROP TABLE IF EXISTS `payroll`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `payroll` (
`payroll_id` varchar(60) NOT NULL,
`user_id` varchar(60) DEFAULT NULL,
`status` int DEFAULT NULL COMMENT '0 = Unpaid, 1 = Paid',
`amount` int DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
`month` varchar(11) DEFAULT NULL,
`year` int DEFAULT NULL,
PRIMARY KEY (`payroll_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `payroll`
--
LOCK TABLES `payroll` WRITE;
/*!40000 ALTER TABLE `payroll` DISABLE KEYS */;
/*!40000 ALTER TABLE `payroll` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `pharmacy_inventory`
--
DROP TABLE IF EXISTS `pharmacy_inventory`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `pharmacy_inventory` (
`pharmacy_inventory_id` varchar(60) NOT NULL DEFAULT '',
`name` varchar(55) DEFAULT NULL,
`code` varchar(22) DEFAULT NULL,
`price` int DEFAULT NULL,
`quantity` int DEFAULT NULL,
`unit_id` varchar(60) DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
PRIMARY KEY (`pharmacy_inventory_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pharmacy_inventory`
--
LOCK TABLES `pharmacy_inventory` WRITE;
/*!40000 ALTER TABLE `pharmacy_inventory` DISABLE KEYS */;
/*!40000 ALTER TABLE `pharmacy_inventory` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `pharmacy_sale`
--
DROP TABLE IF EXISTS `pharmacy_sale`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `pharmacy_sale` (
`pharmacy_sale_id` varchar(60) NOT NULL DEFAULT '',
`status` int DEFAULT NULL,
`grand_total` int DEFAULT NULL,
`is_patient` int DEFAULT NULL COMMENT '0 = Customer, 1 = Patient',
`patient_id` varchar(60) DEFAULT NULL,
`customer_name` varchar(55) DEFAULT NULL,
`customer_mobile` varchar(22) DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
`invoice_number` varchar(22) DEFAULT NULL,
`discount` int DEFAULT NULL,
PRIMARY KEY (`pharmacy_sale_id`),
UNIQUE KEY `invoice_number` (`invoice_number`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pharmacy_sale`
--
LOCK TABLES `pharmacy_sale` WRITE;
/*!40000 ALTER TABLE `pharmacy_sale` DISABLE KEYS */;
/*!40000 ALTER TABLE `pharmacy_sale` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `pharmacy_sale_details`
--
DROP TABLE IF EXISTS `pharmacy_sale_details`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `pharmacy_sale_details` (
`pharmacy_sale_details_id` varchar(60) NOT NULL,
`pharmacy_inventory_id` varchar(60) DEFAULT NULL,
`pharmacy_sale_id` varchar(60) DEFAULT NULL,
`quantity` int DEFAULT NULL,
`total` int DEFAULT NULL,
`timestamp` int DEFAULT NULL,
PRIMARY KEY (`pharmacy_sale_details_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pharmacy_sale_details`
--
LOCK TABLES `pharmacy_sale_details` WRITE;
/*!40000 ALTER TABLE `pharmacy_sale_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `pharmacy_sale_details` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `pharmacy_sale_return`
--
DROP TABLE IF EXISTS `pharmacy_sale_return`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `pharmacy_sale_return` (
`pharmacy_sale_return_id` varchar(60) NOT NULL DEFAULT '',
`pharmacy_sale_id` varchar(60) DEFAULT NULL,
`grand_total` int DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
PRIMARY KEY (`pharmacy_sale_return_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pharmacy_sale_return`
--
LOCK TABLES `pharmacy_sale_return` WRITE;
/*!40000 ALTER TABLE `pharmacy_sale_return` DISABLE KEYS */;
/*!40000 ALTER TABLE `pharmacy_sale_return` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `pharmacy_sale_return_details`
--
DROP TABLE IF EXISTS `pharmacy_sale_return_details`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `pharmacy_sale_return_details` (
`pharmacy_sale_return_details_id` varchar(60) NOT NULL,
`pharmacy_inventory_id` varchar(60) DEFAULT NULL,
`pharmacy_sale_return_id` varchar(60) DEFAULT NULL,
`quantity` int DEFAULT NULL,
`total` int DEFAULT NULL,
`timestamp` int DEFAULT NULL,
PRIMARY KEY (`pharmacy_sale_return_details_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pharmacy_sale_return_details`
--
LOCK TABLES `pharmacy_sale_return_details` WRITE;
/*!40000 ALTER TABLE `pharmacy_sale_return_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `pharmacy_sale_return_details` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `prescription`
--
DROP TABLE IF EXISTS `prescription`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `prescription` (
`prescription_id` varchar(60) NOT NULL DEFAULT '',
`doctor_id` varchar(60) DEFAULT NULL,
`patient_id` varchar(60) DEFAULT NULL,
`disease_id` varchar(60) DEFAULT NULL,
`next_appointment` int DEFAULT NULL,
`extra_note` varchar(255) DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
`symptoms` varchar(255) DEFAULT NULL,
PRIMARY KEY (`prescription_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `prescription`
--
LOCK TABLES `prescription` WRITE;
/*!40000 ALTER TABLE `prescription` DISABLE KEYS */;
/*!40000 ALTER TABLE `prescription` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `prescription_details`
--
DROP TABLE IF EXISTS `prescription_details`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `prescription_details` (
`prescription_details_id` varchar(60) NOT NULL,
`medicine_id` varchar(60) DEFAULT NULL,
`dose` varchar(11) DEFAULT NULL,
`medication_time` varchar(11) DEFAULT NULL,
`prescription_id` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
PRIMARY KEY (`prescription_details_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `prescription_details`
--
LOCK TABLES `prescription_details` WRITE;
/*!40000 ALTER TABLE `prescription_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `prescription_details` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `profession`
--
DROP TABLE IF EXISTS `profession`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `profession` (
`profession_id` int NOT NULL AUTO_INCREMENT,
`name` varchar(55) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`timestamp` int DEFAULT NULL,
PRIMARY KEY (`profession_id`)
) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `profession`
--
LOCK TABLES `profession` WRITE;
/*!40000 ALTER TABLE `profession` DISABLE KEYS */;
INSERT INTO `profession` VALUES (1,'Accountant',1484580450),(2,'Actor',1484580461),(3,'Air Steward',1484580483),(4,'Animator',1484580488),(5,'Architect',1484580494),(6,'Artist',1484580498),(7,'Author',1484580502),(8,'Baker',1484580507),(9,'Biologist',1484580511),(10,'Builder',1484580515),(11,'Butcher',1484580519),(12,'Counselor',1484580523),(13,'Chef',1484580527),(14,'Director',1484580532),(15,'Dentist',1484580537),(16,'Designer',1484580547),(17,'Doctor',1484580551),(18,'Economist',1484580556),(19,'Electrician',1484580560),(20,'Engineer',1484580565),(21,'Farmer',1484580576),(22,'Film Director',1484580582),(23,'Fisherman',1484580586),(24,'Geologist',1484581447),(25,'Head Teacher',1484581455),(26,'Journalist',1484581461),(27,'Judge',1484581466),(28,'Lawyer',1484581470),(29,'Lecturer',1484581474),(30,'Magician',1484581479),(31,'Manager',1484581483),(32,'Musician',1484581488),(33,'Nurse',1484581492),(34,'Painter',1484581497),(35,'Photographer',1484581501),(36,'Pilot',1484581506),(37,'Police Officer',1484581514),(38,'Politician',1484581519),(39,'Receptionist',1484581523),(40,'Salesperson',1484581527),(41,'Scientist',1484581532),(42,'Secretary',1484581537),(43,'Singer',1484581541),(44,'Software Engineer',1484581549),(45,'Soldier',1484581556),(46,'Surgeon',1484581560),(47,'Teacher',1484581565),(48,'Translator',1484581570),(49,'Waiter',1484581575),(50,'Web Developer',1484581588),(51,'Writer',1484581592),(52,'Other',1484581601);
/*!40000 ALTER TABLE `profession` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `rating`
--
DROP TABLE IF EXISTS `rating`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `rating` (
`rating_id` varchar(60) NOT NULL DEFAULT '',
`rating` int DEFAULT NULL,
`user_id` varchar(60) DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
PRIMARY KEY (`rating_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `rating`
--
LOCK TABLES `rating` WRITE;
/*!40000 ALTER TABLE `rating` DISABLE KEYS */;
/*!40000 ALTER TABLE `rating` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `report`
--
DROP TABLE IF EXISTS `report`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `report` (
`report_id` varchar(60) NOT NULL DEFAULT '',
`delivery_date` int DEFAULT NULL,
`patient_id` varchar(60) DEFAULT NULL,
`doctor_id` varchar(60) DEFAULT NULL,
`status` int DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`is_patient` int DEFAULT NULL,
`customer_name` varchar(55) DEFAULT NULL,
`customer_mobile` varchar(22) DEFAULT NULL,
`discount` int DEFAULT NULL,
`grand_total` int DEFAULT NULL,
PRIMARY KEY (`report_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `report`
--
LOCK TABLES `report` WRITE;
/*!40000 ALTER TABLE `report` DISABLE KEYS */;
/*!40000 ALTER TABLE `report` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `report_category`
--
DROP TABLE IF EXISTS `report_category`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `report_category` (
`report_category_id` varchar(60) NOT NULL DEFAULT '',
`name` varchar(111) DEFAULT NULL,
`cost` int DEFAULT NULL,
`laboratory_id` varchar(60) DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
PRIMARY KEY (`report_category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `report_category`
--
LOCK TABLES `report_category` WRITE;
/*!40000 ALTER TABLE `report_category` DISABLE KEYS */;
/*!40000 ALTER TABLE `report_category` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `report_details`
--
DROP TABLE IF EXISTS `report_details`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `report_details` (
`report_details_id` varchar(60) NOT NULL,
`report_category_id` varchar(60) DEFAULT NULL,
`report_id` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`total` int DEFAULT NULL,
PRIMARY KEY (`report_details_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `report_details`
--
LOCK TABLES `report_details` WRITE;
/*!40000 ALTER TABLE `report_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `report_details` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `roster`
--
DROP TABLE IF EXISTS `roster`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `roster` (
`roster_id` varchar(60) NOT NULL DEFAULT '',
`shift_id` varchar(60) DEFAULT NULL,
`staff_id` varchar(60) DEFAULT NULL,
`extra_note` varchar(255) DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
`status` int DEFAULT NULL COMMENT '0 = Incoming, 1 = Ongoing, 2 = Done, 3 = Incomplete',
`duty_on` int DEFAULT NULL,
`type` int DEFAULT NULL COMMENT '0 = Regular, 1 = Emergency',
PRIMARY KEY (`roster_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `roster`
--
LOCK TABLES `roster` WRITE;
/*!40000 ALTER TABLE `roster` DISABLE KEYS */;
/*!40000 ALTER TABLE `roster` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `setting`
--
DROP TABLE IF EXISTS `setting`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `setting` (
`setting_id` int NOT NULL AUTO_INCREMENT,
`item` varchar(55) NOT NULL,
`content` varchar(255) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`tag` varchar(22) DEFAULT NULL,
PRIMARY KEY (`setting_id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `setting`
--
LOCK TABLES `setting` WRITE;
/*!40000 ALTER TABLE `setting` DISABLE KEYS */;
INSERT INTO `setting` VALUES (1,'breakfast_price','122',1587277577,'meal'),(2,'milk_break_price','52',1587277577,'meal'),(3,'lunch_price','102',1587277577,'meal'),(4,'tea_break_price','52',1587277577,'meal'),(5,'dinner_price','82',1587277577,'meal'),(6,'currency','USD',1587277577,'currency'),(7,'system_name','Saturn',1587277577,'system'),(8,'system_address','Sonargaon Janapath<br>Uttara, Dhaka 1230',1587277577,'system'),(9,'system_phone','(123) 456-7890',1587277577,'system'),(10,'system_website','saturn.t1m9m.com',1587277577,'system'),(11,'system_email','t1m9m.com@gmail.com',1587277577,'system'),(12,'login_bg','login_bg_1587496032.jpg',1587277577,'system'),(13,'favicon','favicon_1587496135.png',1587277577,'system'),(14,'system_tagline','Hospital Management System',1587277577,'system');
/*!40000 ALTER TABLE `setting` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `shift`
--
DROP TABLE IF EXISTS `shift`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `shift` (
`shift_id` varchar(60) NOT NULL DEFAULT '',
`shift_starts` varchar(11) DEFAULT NULL,
`shift_ends` varchar(11) DEFAULT NULL,
`staff_category_id` varchar(60) DEFAULT NULL,
`is_doctor` int DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
PRIMARY KEY (`shift_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `shift`
--
LOCK TABLES `shift` WRITE;
/*!40000 ALTER TABLE `shift` DISABLE KEYS */;
/*!40000 ALTER TABLE `shift` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `staff`
--
DROP TABLE IF EXISTS `staff`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `staff` (
`staff_id` varchar(60) NOT NULL DEFAULT '',
`name` varchar(55) DEFAULT NULL,
`email` varchar(55) DEFAULT NULL,
`mobile_number` varchar(22) DEFAULT NULL,
`image_link` varchar(255) DEFAULT NULL,
`address` varchar(111) DEFAULT NULL,
`ssn` char(11) DEFAULT NULL,
`sex_id` int DEFAULT NULL,
`blood_inventory_id` varchar(60) DEFAULT NULL,
`staff_category_id` varchar(60) DEFAULT NULL,
`status` int DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
PRIMARY KEY (`staff_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `staff`
--
LOCK TABLES `staff` WRITE;
/*!40000 ALTER TABLE `staff` DISABLE KEYS */;
INSERT INTO `staff` VALUES ('aa5ec2ef-d90f-4d76-885f-f4e68b2a8c38','Matthew Tucker','admin@saturn.com','(257)-284-7497','c7f47180-77ce-49bd-9b08-7c440cd03b13.jpeg','2175 Custer Street<br>Altoona, PA','NULL',1,'3','8212f432-db93-4eea-bb16-432193559b26',1,1587627194,'c7f47180-77ce-49bd-9b08-7c440cd03b13',1587627194,'c7f47180-77ce-49bd-9b08-7c440cd03b13');
/*!40000 ALTER TABLE `staff` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `staff_category`
--
DROP TABLE IF EXISTS `staff_category`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `staff_category` (
`staff_category_id` varchar(60) NOT NULL DEFAULT '',
`name` varchar(55) DEFAULT NULL,
`pay_scale` int DEFAULT NULL,
`duties` varchar(255) DEFAULT NULL,
`uri` varchar(55) DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
`is_doctor` int DEFAULT NULL,
`payment_type` int DEFAULT NULL,
`permissions` varchar(255) DEFAULT NULL,
PRIMARY KEY (`staff_category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `staff_category`
--
LOCK TABLES `staff_category` WRITE;
/*!40000 ALTER TABLE `staff_category` DISABLE KEYS */;
INSERT INTO `staff_category` VALUES ('8212f432-db93-4eea-bb16-432193559b26','Super Admin',0,'Super Admin stuff','super_admin',1587626239,'c7f47180-77ce-49bd-9b08-7c440cd03b13',1587626239,'c7f47180-77ce-49bd-9b08-7c440cd03b13',0,1,'1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54');
/*!40000 ALTER TABLE `staff_category` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `transport`
--
DROP TABLE IF EXISTS `transport`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `transport` (
`transport_id` varchar(60) NOT NULL DEFAULT '',
`transport_number` varchar(22) DEFAULT NULL,
`transport_category_id` varchar(60) DEFAULT NULL,
`status` int DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
PRIMARY KEY (`transport_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `transport`
--
LOCK TABLES `transport` WRITE;
/*!40000 ALTER TABLE `transport` DISABLE KEYS */;
/*!40000 ALTER TABLE `transport` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `transport_category`
--
DROP TABLE IF EXISTS `transport_category`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `transport_category` (
`transport_category_id` varchar(60) NOT NULL DEFAULT '',
`name` varchar(55) DEFAULT NULL,
`uri` varchar(55) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
`cost` int DEFAULT NULL,
PRIMARY KEY (`transport_category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `transport_category`
--
LOCK TABLES `transport_category` WRITE;
/*!40000 ALTER TABLE `transport_category` DISABLE KEYS */;
/*!40000 ALTER TABLE `transport_category` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `transport_service`
--
DROP TABLE IF EXISTS `transport_service`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `transport_service` (
`transport_service_id` varchar(60) NOT NULL,
`transport_category_id` varchar(60) DEFAULT NULL,
`transport_id` varchar(60) DEFAULT NULL,
`patient_id` varchar(60) DEFAULT NULL,
`cost` int DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
PRIMARY KEY (`transport_service_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `transport_service`
--
LOCK TABLES `transport_service` WRITE;
/*!40000 ALTER TABLE `transport_service` DISABLE KEYS */;
/*!40000 ALTER TABLE `transport_service` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `treatment`
--
DROP TABLE IF EXISTS `treatment`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `treatment` (
`treatment_id` varchar(60) NOT NULL DEFAULT '',
`patient_id` varchar(60) DEFAULT NULL,
`next_checkup` int DEFAULT NULL,
`extra_note` varchar(255) DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
`symptoms` varchar(255) DEFAULT NULL,
`disease_id` varchar(60) DEFAULT NULL,
PRIMARY KEY (`treatment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `treatment`
--
LOCK TABLES `treatment` WRITE;
/*!40000 ALTER TABLE `treatment` DISABLE KEYS */;
/*!40000 ALTER TABLE `treatment` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `treatment_details`
--
DROP TABLE IF EXISTS `treatment_details`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `treatment_details` (
`treatment_details_id` varchar(60) NOT NULL,
`medicine_id` varchar(60) DEFAULT NULL,
`dose` varchar(11) DEFAULT NULL,
`medication_time` varchar(11) DEFAULT NULL,
`treatment_id` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
PRIMARY KEY (`treatment_details_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `treatment_details`
--
LOCK TABLES `treatment_details` WRITE;
/*!40000 ALTER TABLE `treatment_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `treatment_details` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `unit`
--
DROP TABLE IF EXISTS `unit`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `unit` (
`unit_id` varchar(60) NOT NULL DEFAULT '',
`name` varchar(55) DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
`unit_for` int DEFAULT NULL COMMENT '1 = Pharmacy, 2 = Cafeteria',
PRIMARY KEY (`unit_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `unit`
--
LOCK TABLES `unit` WRITE;
/*!40000 ALTER TABLE `unit` DISABLE KEYS */;
/*!40000 ALTER TABLE `unit` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user`
--
DROP TABLE IF EXISTS `user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user` (
`user_id` varchar(60) NOT NULL DEFAULT '',
`email` varchar(55) DEFAULT NULL,
`password` varchar(99) DEFAULT NULL,
`staff_category_id` varchar(60) DEFAULT NULL,
`staff_id` varchar(60) DEFAULT NULL,
`is_doctor` int DEFAULT NULL,
`status` int DEFAULT NULL,
`created_on` int DEFAULT NULL,
`created_by` varchar(60) DEFAULT NULL,
`timestamp` int DEFAULT NULL,
`updated_by` varchar(60) DEFAULT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user`
--
LOCK TABLES `user` WRITE;
/*!40000 ALTER TABLE `user` DISABLE KEYS */;
INSERT INTO `user` VALUES ('c7f47180-77ce-49bd-9b08-7c440cd03b13','admin@saturn.com','$2y$10$uH17QG9FnyTosG5iMxMwMeBcVDHkyGZiJ.bVD/D.uhQANsY.LVhBq','8212f432-db93-4eea-bb16-432193559b26','aa5ec2ef-d90f-4d76-885f-f4e68b2a8c38',0,1,1587627194,'c7f47180-77ce-49bd-9b08-7c440cd03b13',1587627194,'c7f47180-77ce-49bd-9b08-7c440cd03b13');
/*!40000 ALTER TABLE `user` ENABLE KEYS */;
UNLOCK TABLES;
/*!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 2020-12-06 18:09:22
|