I have a system that integrates data from three different banks, more specifically the business register of these three banks, I created a table where the user integrations stored are stored, for example:
no banco X a empresa A é código 01
no banco Y a empresa A é código 02
no banco Z a empresa A é código 03
In my table that stores the integrations that the user is going to make the data would look something like this:
nomeEmpresa = A
codigoBancoX = 1
codigoBancoY = 2
codigoBancoZ = 3
I need to avoid having to add exactly the same fields to all fields, ie I can not have two lines in my table exactly the same. My question is. If I put all the fields in my table as Primary Key would I solve my problem? Well, no line could be exactly the same, but there could be a line like this:
nomeEmpresa = A
codigoBancoX = 1
codigoBancoY = 2
codigoBancoZ = 3
nomeEmpresa = A
codigoBancoX = 1
codigoBancoY = 2
codigoBancoZ = 4