Use class decorator to add foreign keys.