ERROR 1067 (42000): Invalid default value for 'uploadedDate'
MariaDB (unlike MySQL) has special behavior if NULL is assigned to column that uses the TIMESTAMP data type. 

If the column is assigned the NULL value in an INSERT or UPDATE query (including implicit assigning via DEFAULT), then MariaDB will automatically initialize the column's value with the current date and time. So DEFAULT NULL for TIMESTAMP column is incorrect.

Each time when you try to assign NULL to TIMESTAMP column (explicitly or implicitly) it will be assigned to CURRENT_TIMESTAMP. Disabling NO_ZERO_DATE and NO_ZERO_IN_DATE has no effect in this case. 

So specify columns as:

`uploadedDate` timestamp DEFAULT CURRENT_TIMESTAMP


and

`lastAccessed` DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP