Creates a many-to-many table that links the given tables table1 and table2.

    :param str table1: Tablename of left hand table without TABLE_PREFIX.
    :param str table2: Tablename of right hand table without TABLE_PREFIX.
    :return:

def get_many2many_table(table1, table2):
    """Creates a many-to-many table that links the given tables table1 and table2.

    :param str table1: Tablename of left hand table without TABLE_PREFIX.
    :param str table2: Tablename of right hand table without TABLE_PREFIX.
    :return:
    """
    table_name = ('{}{}__{}'.format(TABLE_PREFIX, table1, table2))
    return Table(table_name, Base.metadata,
                 Column('{}_id'.format(table1), Integer, ForeignKey('{}{}.id'.format(TABLE_PREFIX, table1))),
                 Column('{}_id'.format(table2), Integer, ForeignKey('{}{}.id'.format(TABLE_PREFIX, table2)))
                 )