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.
 
 
 
 
 

64 righe
1.4 KiB

<?php
namespace App\Models\Tenant\Conservazione;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class File extends Model
{
use HasFactory;
/**
* The connection name for the model.
*
* @var string|null
*/
protected $connection = "mysql-tenant";
/**
* The table associated with the model.
*
* @var string
*/
protected $table = "b_conservazione_files";
/**
* The primary key for the model.
*
* @var string
*/
protected $primaryKey = 'codice';
/**
* The attributes that are mass assignable.
*
* @var string[]
*/
protected $fillable = ["codice_conservazione", "codice_riferimento", "tabella_riferimento", "stato", "uID", "hash", "metadati", "timestamp_creazione", "timestamp"];
/**
* The name of the "created at" column.
*
* @var string|null
*/
const CREATED_AT = 'timestamp_creazione';
/**
* The name of the "updated at" column.
*
* @var string|null
*/
const UPDATED_AT = 'timestamp';
/**
* Get the package that owns the File
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function package(): BelongsTo
{
return $this->belongsTo(Conservazione::class, 'codice_conservazione', 'codice');
}
}