change default type to timestamp and generate an uuid

Also if the UUID is a nil uuid