0
Good afternoon, you guys. I have an automation monitoring system that consumes a table that contains information about n automations registered, about 40 currently. I would however like to do a check on the days on which these automations will run. Example: Automation 1 runs only Monday to Friday, Automation 2 runs also on Saturdays and Sundays, etc. Not to make these rules directly in the code was thinking of making a table of days of the week and connects it as foreign key to the table where the automations are. My question is: Is this the best way? How would you make the table? I was thinking about making a table with id and boolean weekdays and then treating that in the source.
how is this scale register? is an id | mon | tue | wed | thu | fri | Sab and there you leave marks the days? is done in the same comic?
– Lucas Miranda
Ai already depends on how you prefer to work and treat the days of the week, but yes, are usually checks that Voce.
– Victor Laio
got it, all right, thank you ;)
– Lucas Miranda