- Added history and foreign key constraints