package com.aviras.mrassistant.data.models;

import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

/**
 * Represent doctor
 * <p/>
 * Created by ashish on 8/6/16.
 */
public class Doctor extends RealmObject {

    @PrimaryKey
    private int id;

    private CharSequence name;

    private CharSequence contactNumber;

    private CharSequence address;

    private CharSequence notes;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public CharSequence getName() {
        return name;
    }

    public void setName(CharSequence name) {
        this.name = name;
    }

    public CharSequence getContactNumber() {
        return contactNumber;
    }

    public void setContactNumber(CharSequence contactNumber) {
        this.contactNumber = contactNumber;
    }

    public CharSequence getAddress() {
        return address;
    }

    public void setAddress(CharSequence address) {
        this.address = address;
    }

    public CharSequence getNotes() {
        return notes;
    }

    public void setNotes(CharSequence notes) {
        this.notes = notes;
    }
}

package com.aviras.mrassistant.data.models;

import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

/**
 * Represent doctor
 * <p/>
 * Created by ashish on 8/6/16.
 */
public class Doctor extends RealmObject{

    @PrimaryKey
    private int id;

    private CharSequence name;

    private CharSequence address;

    private CharSequence notes;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public CharSequence getName() {
        return name;
    }

    public void setName(CharSequence name) {
        this.name = name;
    }

    public CharSequence getAddress() {
        return address;
    }

    public void setAddress(CharSequence address) {
        this.address = address;
    }

    public CharSequence getNotes() {
        return notes;
    }

    public void setNotes(CharSequence notes) {
        this.notes = notes;
    }
}

--- 
+++ 
@@ -8,12 +8,14 @@
  * <p/>
  * Created by ashish on 8/6/16.
  */
-public class Doctor extends RealmObject{
+public class Doctor extends RealmObject {
 
     @PrimaryKey
     private int id;
 
     private CharSequence name;
+
+    private CharSequence contactNumber;
 
     private CharSequence address;
 
@@ -35,6 +37,14 @@
         this.name = name;
     }
 
+    public CharSequence getContactNumber() {
+        return contactNumber;
+    }
+
+    public void setContactNumber(CharSequence contactNumber) {
+        this.contactNumber = contactNumber;
+    }
+
     public CharSequence getAddress() {
         return address;
     }
Add contactNumber field to doctor
