<?php
 namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; class IpPoolImport extends Model { protected $fillable = [ 'pool_id', 'cidr', 'source', 'total_count', 'free_count', 'reserved_count', 'imported_by_admin_id', ]; public function pool(): BelongsTo { return $this->belongsTo(IpPool::class, 'pool_id'); } public function admin(): BelongsTo { return $this->belongsTo(\App\Models\Admin::class, 'imported_by_admin_id'); } } 