/*
SQLyog Ultimate v10.00 Beta1
MySQL - 8.0.21 : Database - db_icportal
*********************************************************************
*/




CREATE DATABASE /*!32312 IF NOT EXISTS*/`db_icportal` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;

USE `db_icportal`;

/*Table structure for table `ic_bed` */


CREATE TABLE `ic_bed` (
  `bed_id` bigint NOT NULL AUTO_INCREMENT,
  `ward_no` varchar(100) DEFAULT NULL,
  `bed_no` varchar(100) DEFAULT NULL,
  `bed_status` decimal(10,0) DEFAULT NULL,
  `bed_creation` datetime DEFAULT NULL,
  `bed_updation` datetime DEFAULT NULL,
  PRIMARY KEY (`bed_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

/*Data for the table `ic_bed` */

/*Table structure for table `ic_culture_report` */


CREATE TABLE `ic_culture_report` (
  `culture_id` bigint NOT NULL AUTO_INCREMENT,
  `culture_insertion_date` datetime DEFAULT NULL,
  `culture_source` varchar(255) DEFAULT NULL,
  `culture_result` varchar(255) DEFAULT NULL,
  `culture_organism` varchar(255) DEFAULT NULL,
  `culture_antibio` text,
  `MDR` text,
  `culture_creation` datetime DEFAULT NULL,
  `culture_updation` datetime DEFAULT NULL,
  `culture_status` decimal(2,0) DEFAULT NULL,
  `device_id` bigint DEFAULT NULL,
  PRIMARY KEY (`culture_id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

/*Data for the table `ic_culture_report` */

insert  into `ic_culture_report`(`culture_id`,`culture_insertion_date`,`culture_source`,`culture_result`,`culture_organism`,`culture_antibio`,`MDR`,`culture_creation`,`culture_updation`,`culture_status`,`device_id`) values (1,'2021-07-08 00:00:00','tissue','Positive','Staphylococcus aureus','Vancomycin, fluoroquinolone','Methicilin resistant Staphylococcus aureus (MRSA)','2021-06-02 00:00:00',NULL,NULL,1),(2,'2021-07-06 00:00:00','central line blood','Positive','Enterococcus','Vancomycin,piperacillin','Vancomycin resistant Enterococcus (VRE)','2021-06-02 00:00:00',NULL,NULL,2),(3,'2020-07-17 00:00:00','central line blood','Positive','Enterococcus','Vancomycin,piperacillin','Vancomycin resistant Enterococcus (VRE)','2021-06-02 00:00:00',NULL,NULL,3),(4,'2020-07-17 00:00:00','central line blood','Negative','Staphylococcus aureus','Vancomycin, fluoroquinolone','Methicilin resistant Staphylococcus aureus (MRSA)','2021-06-02 00:00:00',NULL,NULL,5);

/*Table structure for table `ic_infection_devices` */


CREATE TABLE `ic_infection_devices` (
  `device_id` bigint NOT NULL AUTO_INCREMENT,
  `device_name` varchar(255) DEFAULT NULL,
  `device_status` decimal(2,0) DEFAULT NULL,
  `deivce_insertion_date` datetime DEFAULT NULL,
  `phlebitis` varchar(100) DEFAULT NULL,
  `site` varchar(255) DEFAULT NULL,
  `check` varchar(255) DEFAULT NULL,
  `mr_no` varchar(255) DEFAULT NULL,
  `device_creation` datetime DEFAULT NULL,
  `device_updation` datetime DEFAULT NULL,
  `deivce_surgery_date` datetime DEFAULT NULL,
  `device_extubation_date` datetime DEFAULT NULL,
  `type` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`device_id`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

/*Data for the table `ic_infection_devices` */

insert  into `ic_infection_devices`(`device_id`,`device_name`,`device_status`,`deivce_insertion_date`,`phlebitis`,`site`,`check`,`mr_no`,`device_creation`,`device_updation`,`deivce_surgery_date`,`device_extubation_date`,`type`) values (1,'Phlebitis','0','2021-06-02 00:00:00','yes','dfdf','Suspected','45879','2021-06-02 00:00:00',NULL,NULL,NULL,NULL),(2,'Phlebitis','0','2021-06-02 00:00:00','yes','test','Confirm','45869','2021-06-02 00:00:00',NULL,NULL,NULL,NULL),(3,'Phlebitis','0','2021-06-02 00:00:00','yes','test','Confirm','458691','2021-06-02 00:00:00',NULL,NULL,NULL,NULL),(4,'Surgical Site Infection','0','2021-06-02 00:00:00',NULL,NULL,'HAP NO','458691','2021-06-02 00:00:00',NULL,'2021-06-02 00:00:00',NULL,NULL),(5,'Phlebitis','0','2021-06-02 00:00:00','yes','testing','Confirm','23456','2021-06-02 00:00:00',NULL,NULL,NULL,NULL);

/*Table structure for table `ic_lovs` */


CREATE TABLE `ic_lovs` (
  `lov_id` bigint NOT NULL AUTO_INCREMENT,
  `lov_name` varchar(255) DEFAULT NULL,
  `lov_type` varchar(100) DEFAULT NULL,
  `lov_status` decimal(2,0) DEFAULT '1',
  `lov_creation` datetime DEFAULT NULL,
  `lov_updation` datetime DEFAULT NULL,
  PRIMARY KEY (`lov_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

/*Data for the table `ic_lovs` */

/*Table structure for table `ic_roles` */


CREATE TABLE `ic_roles` (
  `role_id` bigint NOT NULL AUTO_INCREMENT,
  `role_name` varchar(255) DEFAULT NULL,
  `role_status` decimal(2,0) DEFAULT '1',
  `role_creation` datetime DEFAULT NULL,
  `role_updation` datetime DEFAULT NULL,
  PRIMARY KEY (`role_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

/*Data for the table `ic_users` */

/*Table structure for table `ic_ward` */


CREATE TABLE `ic_ward` (
  `ward_id` bigint NOT NULL AUTO_INCREMENT,
  `ward_no` varchar(100) DEFAULT NULL,
  `ward_depart` varchar(100) DEFAULT NULL,
  `ward_status` decimal(2,0) DEFAULT '1',
  `ward_creation` datetime DEFAULT NULL,
  `ward_updation` datetime DEFAULT NULL,
  PRIMARY KEY (`ward_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

/*Data for the table `ic_ward` */

