Carga inicial

This commit is contained in:
IvanAS94
2025-12-26 17:21:11 -08:00
parent 45d9afc951
commit 51880798ca
359 changed files with 42159 additions and 1 deletions

86
app/Models/Cliente.php Normal file
View File

@@ -0,0 +1,86 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Cliente extends Model
{
use SoftDeletes;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'clientes';
/**
* The table primary key.
*
* @var string
*/
protected $primaryKey = 'id';
/**
* The attributes that should be casted to native types.
*
* @var array
*/
protected $casts = [];
/**
* Indicates if the primary key is autoincrement.
*
* @var bool
*/
public $incrementing = true;
/**
* Indicates if the model should be timestamped.
*
* @var bool
*/
public $timestamps = true;
/**
* The attributes that should be filleable for arrays.
*
* @var array
*
* $guarded = [] or $filleable = []
*/
protected $guarded = [];
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'denominacion', 'asesor_id', 'requiere_factura', 'sucursal_id', 'email'
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
//
];
public function registroDomicilios(){
return $this->hasMany('App\Models\ClienteDomicilio', 'cliente_id');
}
public function registroDatosFiscales(){
return $this->hasMany('App\Models\ClienteDatoFiscal', 'cliente_id');
}
}