I have a table of accounts and want to make it possible to specify allowed time for logging in for each of them, something like "9:00-19:00, mon-fri", so that later it was possible to check with one SELECT request. Is it possible to?
Maybe I'm thinking in the wrong direction and it would be necessary to create columns like "start_time,end_time,start_day,end_day" but it seems redundant to me and I'm sure there is an easier way.