Installation Guide
1. Download and Extract
CREATE TABLE IF NOT EXISTS `zelp_accounts` ( `id` INT AUTO_INCREMENT PRIMARY KEY, `identifier` VARCHAR(255) UNIQUE NOT NULL, `username` VARCHAR(50) UNIQUE NOT NULL, `password_hash` VARCHAR(255) NOT NULL, `display_name` VARCHAR(50), `avatar_url` VARCHAR(255), `bio` TEXT, `is_business_account` BOOLEAN DEFAULT FALSE, `location` VARCHAR(100) NULL, `is_logged_in` TINYINT(1) DEFAULT 1, `created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP, -- Indexes for performance INDEX `idx_identifier` (`identifier`), INDEX `idx_username` (`username`), INDEX `idx_business_account` (`is_business_account`) ); CREATE TABLE IF NOT EXISTS `zelp_reviews` ( `id` INT AUTO_INCREMENT PRIMARY KEY, `user_id` INT NOT NULL, `business_name` VARCHAR(100) NOT NULL, `rating` DECIMAL(2,1) NOT NULL CHECK (`rating` >= 0 AND `rating` <= 5), `review_text` TEXT NOT NULL, `images` JSON, `reactions` JSON DEFAULT '{}', `user_reactions` JSON DEFAULT '{}', `created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP, `updated_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- Foreign key constraint FOREIGN KEY (`user_id`) REFERENCES `zelp_accounts`(`id`) ON DELETE CASCADE, -- Indexes for performance INDEX `idx_user_id` (`user_id`), INDEX `idx_business_name` (`business_name`), INDEX `idx_created_at` (`created_at`), INDEX `idx_rating` (`rating`) );
3. Configuration Setup
4. Server Configuration
Last updated