Skip to content
Advertisement

Tag: nestjs

Storing multiple fields of address in entity class

I need to store multiple addresses, like address1 , address2 and zipcode etc. Should I declare all the fields individually? for instance: or is there any better way to declare them in entity class? I have been told creating entity classes is the best practice. Answer If only the addresses are multiple, it seems you have this situation:

Advertisement