Created proper data constraints on the tables with foreign keys and update/delete rules.