| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Factories\HasFactory;
- use Illuminate\Database\Eloquent\Model;
- class ReportDataPartiCoinvolte extends Model
- {
- use HasFactory;
- public $timestamps = false;
- //protected $primaryKey = ['report_id', 'progressive'];
- //public $incrementing = false;
- protected $table = 'fcf_reports_report_data_parti_coinvolte';
- protected $fillable = [
- 'report_id',
- 'progressive',
- 'conducente_o_pedone',
- 'progressive_type' ,
- 'anagrafica' ,
- 'veicolo'
- ];
- public function veicolo_data()
- {
- return $this->belongsTo(\App\Models\Vehicle::class, 'veicolo');
- }
- public function anagrafica_data()
- {
- return $this->belongsTo(\App\Models\Anagrafica::class, 'anagrafica');
- }
- }
|