commit compras2 2811
tests / ci (push) Waiting to run

This commit is contained in:
2026-11-28 15:45:52 +02:00
parent eb32c74c56
commit 060c119ba1
92 changed files with 4936 additions and 43 deletions
+30
View File
@@ -0,0 +1,30 @@
<?php
namespace App\Models;
use App\Models\Concerns\BelongsToTenant;
use Illuminate\Database\Eloquent\Model;
use LogicException;
/** @property list<string> $families */
class PrivateAuditExport extends Model
{
use BelongsToTenant;
public $timestamps = false;
protected $guarded = ['id'];
protected $hidden = ['path', 'input_hash'];
protected function casts(): array
{
return ['families' => 'array', 'manifest' => 'array', 'created_at' => 'datetime', 'size' => 'integer'];
}
protected static function booted(): void
{
static::updating(fn () => throw new LogicException('Preservar o pacote e o manifesto originais da auditoria.'));
static::deleting(fn () => throw new LogicException('Preservar o histórico da exportação privada.'));
}
}