gestione gare pubbliche
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

50 righe
993 B

<?php
namespace App\Models\Main;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class ModuliEnte extends Model
{
use HasFactory;
/**
* The connection name for the model.
*
* @var string|null
*/
protected $connection = "mysql";
/**
* The table associated with the model.
*
* @var string
*/
protected $table = "r_moduli_ente";
/**
* The primary key for the model.
*
* @var string
*/
protected $primaryKey = 'codice';
/**
* The name of the "created at" column.
*
* @var string|null
*/
const CREATED_AT = 'timestamp';
/**
* Ottieni l'ente che possiede il modulo
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function ente(): BelongsTo
{
return $this->belongsTo(Enti::class, 'cod_ente', 'codice');
}
}