I'm trying to make a database structure of an online flight booking website. Its just a project of mine. I was wondering i could use a foreign key as my primary key on a table.
Here how one of my table looks like:
Table name: Customer_Account it has : Account_id (PK), username and password.
And my other table is: Customer_Info it has: Account_id ,first name,last name and other personal info.
What I had in mind was, is it OK if I use the (Account_id) on my Customer_info table as my Primary key since it is a Foreign key that references to Customer_Account 's (Account_id) ?
If this is possible is it alright if use the foreign key as my primary key all the time when it is the ID that I really need for that table?