Add primary key to schemas