Files

111 lines
3.7 KiB
PHP
Raw Permalink Normal View History

2026-03-15 17:08:23 +07:00
<?php
namespace Modules\Authentication\Database\Seeders;
use Carbon\Carbon;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class PackageSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$now = Carbon::now();
$packages = [
[
'name' => 'Silver',
'price' => 29.99,
'package_type' => 'recurring',
'audience_type' => 'standard',
'duration' => 30, // 30 days
'auto_renew' => true,
'is_active' => true,
'status' => 1,
'max_food_items' => 50,
'max_categories' => 5,
'max_food_item_attributes' => 100,
'employee_limit' => 3,
'order_limit' => 500,
'storage_limit' => 1024, // in MB
'sms_management_enabled' => true,
'chat_enable' => false,
'landing_page_enable' => false,
'blog_enable' => false,
'extra_buffer_time' => 7,
'extra_features' => json_encode([
'support_priority' => 'low',
'analytics_dashboard' => true,
]),
'created_at' => $now,
'updated_at' => $now,
],
[
'name' => 'Gold',
'price' => 79.99,
'package_type' => 'recurring',
'audience_type' => 'standard',
'duration' => 30, // 30 days
'auto_renew' => true,
'is_active' => true,
'status' => 1,
'max_food_items' => 200,
'max_categories' => 20,
'max_food_item_attributes' => 500,
'employee_limit' => 10,
'order_limit' => 2000,
'storage_limit' => 5120, // in MB
'sms_management_enabled' => true,
'chat_enable' => true,
'landing_page_enable' => true,
'blog_enable' => false,
'extra_buffer_time' => 7,
'extra_features' => json_encode([
'support_priority' => 'medium',
'analytics_dashboard' => true,
'custom_reports' => true,
]),
'created_at' => $now,
'updated_at' => $now,
],
[
'name' => 'Platinum',
'price' => 149.99,
'package_type' => 'recurring',
'audience_type' => 'custom',
'duration' => 30, // 30 days
'auto_renew' => true,
'is_active' => true,
'status' => 1,
'max_food_items' => 1000,
'max_categories' => 50,
'max_food_item_attributes' => 5000,
'employee_limit' => 50,
'order_limit' => 10000,
'storage_limit' => 20480, // in MB
'sms_management_enabled' => true,
'chat_enable' => true,
'landing_page_enable' => true,
'blog_enable' => true,
'extra_buffer_time' => 7,
'extra_features' => json_encode([
'support_priority' => 'high',
'analytics_dashboard' => true,
'custom_reports' => true,
'api_access' => true,
'white_label' => true,
]),
'created_at' => $now,
'updated_at' => $now,
],
];
DB::table('packages')->insert($packages);
}
}