Added the ability to define foreign keys