Update: 2026-07-06 17:00:43
This commit is contained in:
@@ -50,13 +50,17 @@ CREATE TABLE IF NOT EXISTS `competitor_secret_formulas` (
|
||||
`id` INT AUTO_INCREMENT PRIMARY KEY,
|
||||
`competitor_name` varchar(100) NOT NULL,
|
||||
`country_code` varchar(10) NOT NULL,
|
||||
`tier` varchar(20) DEFAULT 'standard',
|
||||
`base_fare` decimal(8,3) NOT NULL,
|
||||
`price_per_km` decimal(8,3) NOT NULL,
|
||||
`price_per_min` decimal(8,3) NOT NULL,
|
||||
`confidence_score` decimal(5,2) DEFAULT 0,
|
||||
`min_fare` decimal(8,3) DEFAULT 0,
|
||||
`rmse` decimal(10,4) DEFAULT 0,
|
||||
`r_squared` decimal(10,4) DEFAULT 0,
|
||||
`surge_multiplier` decimal(5,3) DEFAULT 1.0,
|
||||
`sample_size` int DEFAULT 0,
|
||||
`last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
UNIQUE KEY `idx_comp_country` (`competitor_name`, `country_code`)
|
||||
UNIQUE KEY `idx_comp_country_tier` (`competitor_name`, `country_code`, `tier`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
";
|
||||
$con->exec($sqlFormula);
|
||||
|
||||
Reference in New Issue
Block a user