import Realm from 'realm'

let realm = new Realm({
  schema: [
    {
      name: 'Reminder',
      properties: {
        id: 'string',
        medName: 'string',
        reminderTime: 'date',
        meal: 'string',
        period: 'int',
        dose: 'string',
        timeStamp: 'date',
      }
    }, {
      name: 'TimePeriod',
      properties: {
        morning: 'string',
        afternoon: 'string',
        evening: 'string',
        night: 'string',
      }
    }, {
      name: 'Appointments',
      properties: {
        id: 'string',
        doctorName: 'string',
        date: 'date',
        place: 'string',
        timeStamp: 'date'
      }
    }
  ]
})

export default realm;