27 lines
603 B
PHP
27 lines
603 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Models\Concerns\BelongsToTenant;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* @property int $lot_id
|
|
* @property int $stock_item_id
|
|
* @property int $warehouse_id
|
|
*/
|
|
class InventoryLotAllocation extends Model
|
|
{
|
|
use BelongsToTenant;
|
|
|
|
public $timestamps = false;
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
protected static function booted(): void
|
|
{
|
|
static::updating(fn () => throw new \LogicException('Preservar repartições de lotes.'));
|
|
static::deleting(fn () => throw new \LogicException('Preservar repartições de lotes.'));
|
|
}
|
|
}
|