create index file_notebook_id_index on file using btree ( notebook_id ); create index note_notebook_id_index on note using btree ( notebook_id );