I have 2 tables:
- Items table which has id, name, color_id. color_id references id on items table
- Colors table which has color and id. (e.g. purple with id=1)
When i want to add a new item and user uses purple color on item i want that color to be saved as color_id = 1 on items table. Is there any way to do that?