You can also use the Table class to get the primary key.