it's probably the easiest to add this to the _prepareDataForSave method in your resource model. The Log module has a nice example of that in Mage_Log_Model_Resource_Visitor
So, if you do something like
$model = Mage::getModel('[namespace]_[module]/mycustommodel')->setData([
'foo' => 'bar'
])->save();
and add the method to the right resource model it would look something like
class [Namespace]_[Module]_Resource_Mycustommodel extends Mage_Core_Model_Resource_Db_Abstract
{
/**
* Prepare data for save
*
* @param Mage_Core_Model_Abstract $data
* @return array
*/
protected function _prepareDataForSave($data)
{
return array(
'foo' => $data->getBar(),
'increment_thingy' => '[your custom value]'
);
}
}