This commit is contained in:
35
api/app/Models/Intranet/Sistema.php
Normal file
35
api/app/Models/Intranet/Sistema.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Intranet;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class Sistema extends Model
|
||||
{
|
||||
protected $connection = 'intranet';
|
||||
|
||||
protected $table = 'cadastro_sistema';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'empresa_id',
|
||||
'ramo_atividade_id',
|
||||
'nome',
|
||||
'versao',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
public function empresa()
|
||||
{
|
||||
return $this->belongsTo(Empresa::class);
|
||||
}
|
||||
|
||||
public function ramoAtividade()
|
||||
{
|
||||
return $this->belongsTo(RamoAtividade::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user