0
I have a ban_logs table that contains a date and needs that after that date, an event or Trigger is enabled to change the is_banned field of the user_data table.
ban_logs id, user_id, date, until_date;
user_data user_id, is_banned;
When the date equals the until_date(DATETIME) field, run an event to set the is_banned field = 0 Where user_id = user of the ban_logs table.
Someone has a tip?
Thank you
The idea is to create an event, or add a date to the event from the until_date so that it runs only when the date is reached. I don’t know if it was clear. .
– Marciohrm