string('partner_table', 100)->nullable()->after('is_active') ->comment('Table name to fetch partners from (e.g., partner_data)'); $table->json('partner_filter_conditions')->nullable()->after('partner_table') ->comment('JSON filter conditions for partner query'); }); // Set default partner table for DA system DB::table('odoo_systems')->where('slug', 'da')->update([ 'partner_table' => 'partner_data', 'partner_filter_conditions' => null, // No filter = show all partners ]); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('odoo_systems', function (Blueprint $table) { $table->dropColumn(['partner_table', 'partner_filter_conditions']); }); } }