Generate global primary key like '0101-04687fc9b0-9995' for active record.