I have 5 tables,
product: id | name | description | enable category: id | name | enable category_product: id | product_id | category_id image: id | name | files | enable image_product: id | product_id | image_id I'd like my join table to resemble this:
product.name | product.description | category.name | image.name | image.file