How to handle calendar in database

Asked

Viewed 427 times

0

Hello,

I am doing a personal project, to practice programming and I came across a situation that I am struggling to resolve. A user has a routine that repeats weekly, where each day of the week he has different free time, for example:

Monday he has from 17 to 20h free, already Tuesday has from 8 to 14h, and so goes until Sunday, but next Monday he has the same free time, from 17 to 20h free.

What is the best method of storing these free time hours in a database MySQL. In order to be efficient and occupy as little space as possible?

1 answer

0


Browser other questions tagged

You are not signed in. Login or sign up in order to post.