I have a MySQL table where I am recording token creation times and I would like to create the equivalent of this Postgres construct:
token_start_times INTEGER DEFAULT EXTRACT(EPOCH FROM CURRENT_TIMESTAMP)
MySQL provides unix_timestamp(now()) but it returns a timestamp value and not an integer value.
I tried this
token_start_times INTEGER DEFAULT timestamp(now())
but MySQL complains about the syntax. I read this post but it doesn't answer my question.