<commit_before>/**
 * 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;<commit_msg>Add update optional breach field<commit_after>/**
 * 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;
{'fraction_non_alphanumeric': 0.13416009019165728, 'fraction_numerical': 0.009019165727170236, 'mean_word_length': 3.9887640449438204, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7646779', 'n_tokens_mistral': 295, 'n_tokens_neox': 274, 'n_words': 78}