change default type to timestamp and generate an uuid if the default is the nil uuid