netgescon-day0/app/Models/FeTributoF24.php

34 lines
689 B
PHP
Executable File

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class FeTributoF24 extends Model
{
protected $table = 'fe_tributi_f24';
protected $primaryKey = 'codice';
public $incrementing = false;
protected $keyType = 'string';
protected $fillable = [
'codice',
'descrizione',
'ritenuta_previdenziale_codice',
'attivo',
];
protected $casts = [
'attivo' => 'boolean',
];
public function ritenutaPrevidenziale(): BelongsTo
{
return $this->belongsTo(FeRitenutaPrevidenziale::class, 'ritenuta_previdenziale_codice', 'codice');
}
}