database - Should the "last updated" field be initialized to something? -
database - Should the "last updated" field be initialized to something? -
i'm building rest api.
my users have created_at
, updated_at
fields. these fields hold strings this:
"2014-12-29t12:30:21+0000"
when create user, set created_at
current date. however, i'm not sure if should same updated_at
. technically, user has never been updated. seems weird there not there.
should leave value null
, create same created_at
, or else?
creating updating state (from nil something) can safely considered "update".
i set updated time on creation, if no other reason don't have cater null
values (ever).
database api rest date timestamp
Comments
Post a Comment