21 lines
458 B
PHP
21 lines
458 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Models\Concerns\BelongsToTenant;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class PurchasePlanMilestone extends Model
|
|
{
|
|
use BelongsToTenant;
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
protected $attributes = ['version' => 1, 'actual_on' => null];
|
|
|
|
protected static function booted(): void
|
|
{
|
|
static::deleting(fn () => throw new \LogicException('Preservar marcos e datas anteriores na auditoria.'));
|
|
}
|
|
}
|