/**
 * Sustainable Solutions (NZ) Ltd. 2020
 * mSupply Mobile
 */

import Realm from 'realm';

export class SensorLog extends Realm.Object {}

SensorLog.schema = {
  name: 'SensorLog',
  primaryKey: 'id',
  properties: {
    id: 'string',
    temperature: 'double',
    timestamp: 'date',
    sensor: 'Sensor',
  },
};

export default SensorLog;

@@ -304,16 +304,42 @@
 ensor',%0A
+    location: 'Location',%0A
   %7D,%0A%7D;%0A

Add Location to SensorLog