Вот как это сделать: https://www.marcus-povey.co.uk/2013/03/11/automatic-create-and-modified-timestamps-in-mysql/
Надеюсь, это поможет