Constraints and foreign keys added