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

import Realm from 'realm';

export class TemperatureLog extends Realm.Object {}

TemperatureLog.schema = {
  name: 'TemperatureLog',
  primaryKey: 'id',
  properties: {
    id: 'string',
    temperature: 'double',
    timestamp: 'date',
    location: 'Location',
    breach: 'BreachLog',
  },
};

export default TemperatureLog;

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

import Realm from 'realm';

export class TemperatureLog extends Realm.Object {}

TemperatureLog.schema = {
  name: 'TemperatureLog',
  primaryKey: 'id',
  properties: {
    id: 'string',
    temperature: 'double',
    timestamp: 'date',
    location: 'Location',
    breach: { type: 'BreachLog', optional: true },
  },
};

export default TemperatureLog;

Add update optional breach field
Add update optional breach field
