array( 'type' => 'bigint', ), 'ad_id' => array( 'type' => 'bigint', 'required' => true, ), 'campaign_id' => array( 'type' => 'bigint', 'default' => 0, ), 'ad_space_id' => array( 'type' => 'bigint', 'default' => 0, ), 'country_code' => array( 'type' => 'string', 'length' => 2, 'default' => '', ), 'device_type' => array( 'type' => 'string', 'length' => 20, 'default' => 'other', ), 'stats_date' => array( 'type' => 'date', 'required' => true, ), 'impressions' => array( 'type' => 'bigint', 'default' => 0, ), 'clicks' => array( 'type' => 'bigint', 'default' => 0, ), 'plays' => array( 'type' => 'bigint', 'default' => 0, ), 'skips' => array( 'type' => 'bigint', 'default' => 0, ), 'pauses' => array( 'type' => 'bigint', 'default' => 0, ), 'closes' => array( 'type' => 'bigint', 'default' => 0, ), 'conversions' => array( 'type' => 'bigint', 'default' => 0, ), 'invalid_events' => array( 'type' => 'bigint', 'default' => 0, ), 'created_at' => array( 'type' => 'datetime', 'nullable' => true, ), 'updated_at' => array( 'type' => 'datetime', 'nullable' => true, ), ); } }