How do you create the table structure in PostgreSQL to make a many-to-many relationship

Solution 1:

you can create a table like this one:

CREATE TABLE bank_account_accounts(
        id serial primary key,
        accounts_id integer,
        bank_account_id integer
    );