In my database I have a payment table, but the payments can come in multiple forms (Cash, Check, Debit/Credit Cards). I want to record the specific infomation about those payments such as check number for checks. However for Debit/Credit Cards I want to keep track of the card number, CVS number, expiration date, etc.
My question though is should I create a separate table for the credit card information or should it just be part of the payment table. One reason I am leaning toward a separate table is so I can apply some security measures to that sensative information. If it is separate it would be a 1 to 1 relationship, I think.
What about the check number, should it be in a separate table as well? I have a combo box in the payment table to select the payment type.