<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Feeder extends Model
{
    use SoftDeletes;

    protected $table = 'feeders_full';

    protected $fillable = [

        // Feeder Basic
        'feeder_name','feeder_code','feeder_type','voltage_level',
        'substation_name','substation_code','feeder_length','feeder_category','status',

        // Location
        'state','district','city','zone','circle','division','subdivision',
        'latitude','longitude','address',

        // DISCOM
        'discom_name','discom_code','region','office_name',

        // Consumer
        'consumer_id','account_number','customer_name','connection_type',
        'load_sanctioned','contract_demand','tariff_category',

        // Electrical
        'transformer_capacity','connected_load','peak_load','average_load',
        'power_factor','current_r_phase','current_y_phase','current_b_phase',
        'voltage_r_phase','voltage_y_phase','voltage_b_phase','frequency',

        // Meter
        'meter_serial_number','meter_make','meter_type','meter_phase',
        'meter_installation_date','meter_status',

        // Modem
        'modem_serial_number','modem_make','modem_model','imei_number',
        'sim_number','network_provider','ip_address','apn','signal_strength',
        'last_communication_time','firmware_version','modem_status',

        // Monitoring
        'feeder_on_off_status','last_trip_time','restoration_time','outage_duration',
        'fault_type','fault_location','energy_import','energy_export','losses',

        // Billing
        'billing_cycle','total_units','billed_units','collected_revenue',
        'billing_efficiency','collection_efficiency',

        // Maintenance
        'last_maintenance_date','next_maintenance_date','fault_history',
        'alert_type','alert_message','alert_time',

        // Operator
        'operator_name','operator_id','assigned_engineer','contact_number'
    ];
}