create employee table field are- id(primary key),name,dept_id
department table fields are-dept_id(primary key),name
depois selecione o índice dept_id.give.

selecione a tabela de departamentos e dept_id. depois clique no botão Salvar.

create employee table field are- id(primary key),name,dept_id
department table fields are-dept_id(primary key),name