array( 'type' => 'bigint', ), 'event_key' => array( 'type' => 'binary', 'length' => 16, 'nullable' => true, ), 'ad_id' => array( 'type' => 'bigint', 'required' => true, ), 'campaign_id' => array( 'type' => 'bigint', 'default' => 0, ), 'ad_space_id' => array( 'type' => 'bigint', 'default' => 0, ), 'interaction_type' => array( 'type' => 'string', 'length' => 32, 'required' => true, ), 'is_valid' => array( 'type' => 'bool', 'default' => true, ), 'invalid_reason' => array( 'type' => 'string', 'length' => 64, 'nullable' => true, ), 'country_code' => array( 'type' => 'string', 'length' => 2, 'default' => '', ), 'city' => array( 'type' => 'string', 'length' => 100, 'nullable' => true, ), 'latitude' => array( 'type' => 'decimal', 'precision' => 10, 'scale' => 7, 'nullable' => true, ), 'longitude' => array( 'type' => 'decimal', 'precision' => 10, 'scale' => 7, 'nullable' => true, ), 'device_type' => array( 'type' => 'string', 'length' => 20, 'default' => 'other', ), 'browser' => array( 'type' => 'string', 'length' => 40, 'default' => 'other', ), 'visitor_hash' => array( 'type' => 'binary', 'length' => 32, 'nullable' => true, ), 'session_hash' => array( 'type' => 'binary', 'length' => 32, 'nullable' => true, ), 'ip_hash' => array( 'type' => 'binary', 'length' => 32, 'nullable' => true, ), 'url_id' => array( 'type' => 'bigint', 'default' => 0, ), 'referrer_domain' => array( 'type' => 'string', 'length' => 253, 'nullable' => true, ), 'utm_source' => array( 'type' => 'string', 'length' => 100, 'nullable' => true, ), 'utm_medium' => array( 'type' => 'string', 'length' => 100, 'nullable' => true, ), 'utm_campaign' => array( 'type' => 'string', 'length' => 100, 'nullable' => true, ), 'occurred_at' => array( 'type' => 'datetime', 'nullable' => true, ), 'interaction_at' => array( 'type' => 'datetime', 'required' => true, ), 'received_at' => array( 'type' => 'datetime', 'nullable' => true, ), ); } }