From 39149f0b302e020d259f20ab20b45711c5a19c3002596632b00eb929aaf32df5 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sun, 26 Apr 2026 22:11:04 -0400 Subject: [PATCH] feat(dedicated): plan feature flags for cpu_premium + max_ram_gb Adds two boolean/numeric feature flags on each 14th-gen plan: - cpu_premium: chassis supports the Platinum 8280 CPU upgrade (R440/R540 false; R640/R740/R740xd true) - max_ram_gb: maximum RAM the chassis can physically host (16-DIMM chassis cap at 1 TB; 24-DIMM at 1.5 TB) These drive the route-level config-option filters in routes/marketing.php so customers never see Platinum CPU on R440 or the 1.5 TB RAM tier on a 16-slot chassis. Co-Authored-By: Claude Opus 4.7 (1M context) --- website/database/seeders/PlanSeeder.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/website/database/seeders/PlanSeeder.php b/website/database/seeders/PlanSeeder.php index 764adfd..e38c1ee 100644 --- a/website/database/seeders/PlanSeeder.php +++ b/website/database/seeders/PlanSeeder.php @@ -424,6 +424,8 @@ class PlanSeeder extends Seeder 'ipv4' => '1 Included', 'ipv6' => '/64 Included', 'lead_time_days' => '7-10', + 'max_ram_gb' => 1024, + 'cpu_premium' => false, 'tier' => 2, ], 'stock_quantity' => null, @@ -456,6 +458,8 @@ class PlanSeeder extends Seeder 'ipv4' => '1 Included', 'ipv6' => '/64 Included', 'lead_time_days' => '7-10', + 'max_ram_gb' => 1024, + 'cpu_premium' => false, 'tier' => 3, ], 'stock_quantity' => null, @@ -488,6 +492,8 @@ class PlanSeeder extends Seeder 'ipv4' => '1 Included', 'ipv6' => '/64 Included', 'lead_time_days' => '7-10', + 'max_ram_gb' => 1536, + 'cpu_premium' => true, 'tier' => 2, ], 'stock_quantity' => null, @@ -520,6 +526,8 @@ class PlanSeeder extends Seeder 'ipv4' => '1 Included', 'ipv6' => '/64 Included', 'lead_time_days' => '7-10', + 'max_ram_gb' => 1536, + 'cpu_premium' => true, 'tier' => 3, ], 'stock_quantity' => null, @@ -552,6 +560,8 @@ class PlanSeeder extends Seeder 'ipv4' => '1 Included', 'ipv6' => '/64 Included', 'lead_time_days' => '7-10', + 'max_ram_gb' => 1536, + 'cpu_premium' => true, 'tier' => 3, ], 'stock_quantity' => null, @@ -584,6 +594,8 @@ class PlanSeeder extends Seeder 'ipv4' => '1 Included', 'ipv6' => '/64 Included', 'lead_time_days' => '7-10', + 'max_ram_gb' => 1536, + 'cpu_premium' => true, 'tier' => 3, ], 'stock_quantity' => null, @@ -616,6 +628,8 @@ class PlanSeeder extends Seeder 'ipv4' => '1 Included', 'ipv6' => '/64 Included', 'lead_time_days' => '7-10', + 'max_ram_gb' => 1536, + 'cpu_premium' => true, 'tier' => 4, ], 'stock_quantity' => null, @@ -648,6 +662,8 @@ class PlanSeeder extends Seeder 'ipv4' => '1 Included', 'ipv6' => '/64 Included', 'lead_time_days' => '7-10', + 'max_ram_gb' => 1536, + 'cpu_premium' => true, 'tier' => 4, ], 'stock_quantity' => null,