$snapshot * @property int|null $equipment_id * @property int|null $spare_part_id */ class StockOperation extends Model { use AppendOnlyInventoryRecord, BelongsToTenant; public $timestamps = false; protected $guarded = ['id']; /** @return array */ protected function casts(): array { return ['snapshot' => 'array', 'recorded_at' => 'datetime', 'quantity_milli' => 'integer', 'theoretical_milli' => 'integer', 'ledger_version' => 'integer']; } }