I guess you mean foreign key by f-key.
you table structure shows u already using f-key in your cart-table. Here your user_id column in cart-table is f-key because it refers to id column of user-table.
so I am not able to understand why u are confused?
urtrivedi
Posting Virtuoso
1,714 posts since Dec 2008
Reputation Points: 299
Solved Threads: 362
Skill Endorsements: 24
You can use a foreign key to prevent inserting a non-existent user-id into your table.
pritaeas
Posting Prodigy
9,268 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,457
Skill Endorsements: 86