I have simple table which looks like below one:
id info user start_date end_date resource_id
31 NULL aorlik 2018-01-04 08:00:00 2018-01-04 10:00:00 1
32 NULL aorlik 2018-01-04 15:00:00 2018-01-04 17:00:00 1
and now I'm looking for simple way for make column start_date as unique with dependency with column resource_id. I would like to make some kind of protection to avoid set same start_date twice. It should allow only for set the same time record for new resource_id. I suppose that's very easy but I have got stuck :/ I use MySQL and mysql-workbench.