CREATE TABLE IF NOT EXISTS `#__eis_documents` (
  `id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
  `name` VARCHAR(255) NOT NULL,
  `path` TEXT NOT NULL,
  `parent_id` INT UNSIGNED DEFAULT NULL,
  `is_folder` TINYINT(1) DEFAULT 0,
  `title` VARCHAR(255) DEFAULT NULL,
  `description` TEXT DEFAULT NULL,
  `ordering` INT DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;


CREATE TABLE IF NOT EXISTS `#__eis_settings` (
  `id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
  `pdf_path` TEXT NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;