<?php

$def = new ezcPersistentObjectDefinition();
$def->table = "lh_abstract_proactive_chat_invitation";
$def->class = "erLhAbstractModelProactiveChatInvitation";

$def->idProperty = new ezcPersistentObjectIdProperty();
$def->idProperty->columnName = 'id';
$def->idProperty->propertyName = 'id';
$def->idProperty->generator = new ezcPersistentGeneratorDefinition(  'ezcPersistentNativeGenerator' );

foreach (['url_present','days_activity','design_data','tag','message_returning_nick','message_returning','referrer','hide_after_ntimes','siteaccess','time_on_site','message','name','identifier','operator_name','operator_ids'] as $posAttr) {
    $def->properties[$posAttr] = new ezcPersistentObjectProperty();
    $def->properties[$posAttr]->columnName   = $posAttr;
    $def->properties[$posAttr]->propertyName = $posAttr;
    $def->properties[$posAttr]->propertyType = ezcPersistentObjectProperty::PHP_TYPE_STRING;
}

foreach (['repetitiveness','active_to','active_from','parent_id','campaign_id','disabled','bot_offline','trigger_id','bot_id','event_invitation','event_type','iddle_for','dynamic_invitation','show_on_mobile','show_random_operator','requires_username','inject_only_html','delay','delay_init','show_instant','pageviews','executed_times','position','dep_id','autoresponder_id','requires_email','requires_phone'] as $posAttr) {
    $def->properties[$posAttr] = new ezcPersistentObjectProperty();
    $def->properties[$posAttr]->columnName   = $posAttr;
    $def->properties[$posAttr]->propertyName = $posAttr;
    $def->properties[$posAttr]->propertyType = ezcPersistentObjectProperty::PHP_TYPE_INT;
}

return $def;

?>