Files
compras/app/Models/StockMovement.php
2026-11-02 08:08:05 +02:00

29 lines
628 B
PHP

<?php
namespace App\Models;
use App\Models\Concerns\AppendOnlyInventoryRecord;
use App\Models\Concerns\BelongsToTenant;
use Carbon\CarbonInterface;
use Illuminate\Database\Eloquent\Model;
/**
* @property CarbonInterface $moved_at
* @property int|null $equipment_id
* @property int|null $spare_part_id
* @property array<string,mixed> $snapshot
*/
class StockMovement extends Model
{
use AppendOnlyInventoryRecord, BelongsToTenant;
public $timestamps = false;
protected $guarded = ['id'];
protected function casts(): array
{
return ['snapshot' => 'array', 'moved_at' => 'datetime'];
}
}