Add rules re table definition & foreign keys