You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
683 B
34 lines
683 B
1 year ago
|
<?php
|
||
|
|
||
|
namespace App\Models;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
||
|
class ArchivosNominas extends Model
|
||
|
{
|
||
|
protected $connection = 'mysql';
|
||
|
|
||
|
protected $table = 'archivos_nominas';
|
||
|
protected $primaryKey = 'id';
|
||
|
|
||
|
public $timestamps = false;
|
||
|
|
||
|
protected $fillable = [
|
||
|
'fk_id_users_alta',
|
||
|
'nombre_archivo',
|
||
|
'tipo_nomina',
|
||
|
'ano_fiscal',
|
||
|
'numero_nomina',
|
||
|
'clave_contpaq',
|
||
|
'activo',
|
||
|
'eliminado',
|
||
|
'fecha_registro'
|
||
|
];
|
||
|
|
||
|
public function empleado(){
|
||
|
return $this->hasOne(Empleados::class,'clave_contpaq','clave_contpaq');
|
||
|
}
|
||
|
|
||
|
}
|