def flatten_corner(corner_kick, game_id):
    """Flatten the schema of a corner kick."""
    ck_id = corner_kick[0]
    ck_data = corner_kick[1]

    return {'game_id': game_id,
            'ck_id': ck_id,
            'time_of_event(min)': (ck_data['t']['m'] + (ck_data['t']['s'] / 60 )),
            # 'assist': ck_data.get('assBy', None),
            'player_id': float(ck_data['plyrId']),
            'ck_coord_x1': ck_data['coord']['1']['x'],
            'ck_coord_y1': ck_data['coord']['1']['y'],
            'ck_coord_z1': ck_data['coord']['1']['z'],
            'ck_coord_x2': ck_data['coord']['2']['x'],
            'ck_coord_y2': ck_data['coord']['2']['y'],
            'ck_coord_z2': ck_data['coord']['2']['z']}