We have a timestamp field in a database table, it should only be updated when a business event occurs, not upon create / every update.
There are examples of auto update at https://stackoverflow.com/a/60941397/41284 as well as in the gorm official documentation at https://gorm.io/docs/models.html#Creating-x2F-Updating-Time-x2F-Unix-Milli-x2F-Nano-Seconds-Tracking but I couldn't find a way to just declare a timestamp field with storage in unix epoch time upto milliseconds. I can of course just declare it as an int64 and then attempt to populate the right value manually.
Any other options that are more convenient / automated?