I am going to use the id field itself but instead of having auto-generated serial values I want to set Unix timestamps as ids. I am using Ecto. I understand that the place to set the value is inside the model definition file but still cannot figure out the way to do that. The Postgres solution can do the job, but I am interested in knowing how to do that in Phoenix. Any help is highly appreciated. Thank you.






















