Hi! I have 2 entities
- User
- UserCreditCard
A user can have a credit card or not. How would you model the relation and why?
Option 1: User has a foreign key to UserCreditCard that may be null
Option 2: UserCreditCard has a foreign key to User that can't be null
EDIT
My mistake not remarking that user will have 0 or 1 credit cards, no more