InvTrack / invtrack

GNU General Public License v3.0
1 stars 1 forks source link

Add unique constraint on recipe_part #188

Closed michalstruck closed 2 months ago

michalstruck commented 4 months ago

We should not allow the same product to occur more than once per recipe. Add unique(product_id, recipe_id)

This also concerns UI changes in the admin panel, as we should not show used products as options in the dropdown, on the recipe creation screen

michalstruck commented 4 months ago

@felix-lipski and this would also be a nice one

michalstruck commented 2 months ago

@Honsiu take a look here