Sindbad~EG File Manager
-- Core Management Table (if not exists)
CREATE TABLE IF NOT EXISTS `core_management` (
`id` INT AUTO_INCREMENT PRIMARY KEY,
`module_name` VARCHAR(100) NOT NULL UNIQUE,
`module_description` TEXT DEFAULT NULL,
`is_enabled` TINYINT(1) DEFAULT 1,
`display_order` INT DEFAULT 0,
`category` VARCHAR(50) DEFAULT 'Core Management',
`created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
`updated_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
INDEX idx_enabled (`is_enabled`),
INDEX idx_category (`category`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- Standalone Directory Table
CREATE TABLE IF NOT EXISTS `standalone_directory` (
`id` INT AUTO_INCREMENT PRIMARY KEY,
`title` VARCHAR(20) DEFAULT NULL,
`first_name` VARCHAR(100) NOT NULL,
`middle_name` VARCHAR(100) DEFAULT NULL,
`last_name` VARCHAR(100) NOT NULL,
`gender` ENUM('Male', 'Female') NOT NULL,
`phone` VARCHAR(20) DEFAULT NULL,
`email` VARCHAR(100) DEFAULT NULL,
`address_line` TEXT DEFAULT NULL,
`city` VARCHAR(100) DEFAULT NULL,
`area_id` INT DEFAULT NULL,
`district_id` INT DEFAULT NULL,
`assembly_id` INT DEFAULT NULL,
`occupation` VARCHAR(100) DEFAULT NULL,
`position` VARCHAR(100) DEFAULT NULL,
`notes` TEXT DEFAULT NULL,
`photo` VARCHAR(255) DEFAULT NULL,
`is_active` TINYINT(1) DEFAULT 1,
`created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
`updated_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`created_by` INT DEFAULT NULL,
INDEX idx_name (`first_name`, `last_name`),
INDEX idx_location (`area_id`, `district_id`, `assembly_id`),
INDEX idx_active (`is_active`),
INDEX idx_area (`area_id`),
INDEX idx_district (`district_id`),
INDEX idx_assembly (`assembly_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists