// getRecordsWithFiles - returns time records for a user for a given date
// with information whether they have attached files (has_files property).
// A separate fiunction from getRecords because sql here is more complex.
// getRecordsWithFiles - returns time records for a user for a given date
// with information whether they have attached files (has_files property).
// A separate fiunction from getRecords because sql here is more complex.