new seeders
This commit is contained in:
-51
@@ -28,57 +28,6 @@ return new class extends Migration
|
||||
$table->boolean('is_active')->default(true)->index();
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
DB::table('platform_prices')->insert([
|
||||
[
|
||||
'code' => 'basic',
|
||||
'name' => 'Basic',
|
||||
'strapline' => 'Core warehouse visibility',
|
||||
'description' => 'Essential WMS tools for small warehouse operations and controlled stock visibility.',
|
||||
'monthly_amount' => 4900,
|
||||
'annual_amount' => 49000,
|
||||
'currency' => 'gbp',
|
||||
'badge_label' => 'Starter',
|
||||
'features' => json_encode(['Warehouse dashboard', 'Inventory overview', 'Basic audit trail', 'Email support']),
|
||||
'sort_order' => 10,
|
||||
'is_featured' => false,
|
||||
'is_active' => true,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
[
|
||||
'code' => 'advanced',
|
||||
'name' => 'Advanced',
|
||||
'strapline' => 'Operational control suite',
|
||||
'description' => 'Expanded controls for teams that need replenishment, reporting and integration monitoring.',
|
||||
'monthly_amount' => 9900,
|
||||
'annual_amount' => 99000,
|
||||
'currency' => 'gbp',
|
||||
'badge_label' => 'Popular',
|
||||
'features' => json_encode(['Everything in Basic', 'Replenishment workflows', 'Reporting workspace', 'M3 integration status', 'Priority support']),
|
||||
'sort_order' => 20,
|
||||
'is_featured' => true,
|
||||
'is_active' => true,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
[
|
||||
'code' => 'pro',
|
||||
'name' => 'Pro',
|
||||
'strapline' => 'Enterprise-grade administration',
|
||||
'description' => 'Full platform administration for regulated warehouse, carrier and document operations.',
|
||||
'monthly_amount' => 19900,
|
||||
'annual_amount' => 199000,
|
||||
'currency' => 'gbp',
|
||||
'badge_label' => 'Enterprise',
|
||||
'features' => json_encode(['Everything in Advanced', 'Multi-company administration', 'Security and audit controls', 'Document archive', 'Carrier management', 'Dedicated support']),
|
||||
'sort_order' => 30,
|
||||
'is_featured' => false,
|
||||
'is_active' => true,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -4,6 +4,7 @@ namespace Modules\Pricing\Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class PricingDatabaseSeeder extends Seeder
|
||||
{
|
||||
@@ -14,8 +15,71 @@ class PricingDatabaseSeeder extends Seeder
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
Model::unguard();
|
||||
|
||||
// $this->call("OthersTableSeeder");
|
||||
DB::table('platform_prices')->insert([
|
||||
[
|
||||
'code' => 'basic',
|
||||
'name' => 'Basic',
|
||||
'strapline' => 'Core warehouse visibility',
|
||||
'description' => 'Essential WMS tools for small warehouse operations and controlled stock visibility.',
|
||||
'monthly_amount' => 4900,
|
||||
'annual_amount' => 49000,
|
||||
'currency' => 'gbp',
|
||||
'badge_label' => 'Starter',
|
||||
'features' => json_encode(['Warehouse dashboard', 'Inventory overview', 'Basic audit trail', 'Email support']),
|
||||
'sort_order' => 10,
|
||||
'is_featured' => false,
|
||||
'is_active' => true,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
[
|
||||
'code' => 'advanced',
|
||||
'name' => 'Advanced',
|
||||
'strapline' => 'Operational control suite',
|
||||
'description' => 'Expanded controls for teams that need replenishment, reporting and integration monitoring.',
|
||||
'monthly_amount' => 9900,
|
||||
'annual_amount' => 99000,
|
||||
'currency' => 'gbp',
|
||||
'badge_label' => 'Popular',
|
||||
'features' => json_encode(['Everything in Basic', 'Replenishment workflows', 'Reporting workspace', 'M3 integration status', 'Priority support']),
|
||||
'sort_order' => 20,
|
||||
'is_featured' => true,
|
||||
'is_active' => true,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
[
|
||||
'code' => 'pro',
|
||||
'name' => 'Pro',
|
||||
'strapline' => 'Enterprise-grade administration',
|
||||
'description' => 'Full platform administration for regulated warehouse, carrier and document operations.',
|
||||
'monthly_amount' => 19900,
|
||||
'annual_amount' => 199000,
|
||||
'currency' => 'gbp',
|
||||
'badge_label' => 'Enterprise',
|
||||
'features' => json_encode(['Everything in Advanced', 'Multi-company administration', 'Security and audit controls', 'Document archive', 'Carrier management', 'Dedicated support']),
|
||||
'sort_order' => 30,
|
||||
'is_featured' => false,
|
||||
'is_active' => true,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
[
|
||||
'code' => 'Ultimate',
|
||||
'name' => 'ultimate',
|
||||
'strapline' => 'Ultimate Enterprise Grade Administration',
|
||||
'description' => 'Full platform administration for regulated warehouse,unlimited warehouses and users, carrier and document operations.',
|
||||
'monthly_amount' => 19900,
|
||||
'annual_amount' => 199000,
|
||||
'currency' => 'gbp',
|
||||
'badge_label' => 'Enterprise',
|
||||
'features' => json_encode(['Everything in pro', 'Multi-company administration', 'Security and audit controls', 'Document archive', 'Carrier management', 'Dedicated support']),
|
||||
'sort_order' => 50,
|
||||
'is_featured' => false,
|
||||
'is_active' => true,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user