Timestamp and DateTime type of MySQL is used to set date and date/time value to the database table.
Both types contain the default attribute called default=”CURRENT_TIMESTAMP” to use the set current time in the table.
While you are working with the db_schema.xml file and need to add/update the current time in the table for any specific object save repository, you can set the default attribute with the value CURRENT_TIMESTAMP to save current time while placing an entry in the database table.
