tldr; prevent the same Asset from being attached to the same Issue more than once.
I am creating a Problem DB for my school computer assetts.
Currently I have a many to many relationship between Issue and Asset, along with pivot table of Asset_Issue.
Issue
id - integer
title - string
Asset
id - integer
owner - string
Asset_Issue
asset_id - integer
issue_id - integer
specific_asset_issue_problem - string
I was able to attach the same Asset to the same Issue multiple times.
I would like to prevent the same Asset from being attached to the same Issue more than once, but I still want to have the pivot (Asset_Issue) as it's storing other information relating to the Asset for the Issue.