Added primary key and redid schema