In SQL I usually would have tables/entities Account
and AccountDetails
, Address
etc.
Account { Id, Name, Password }
AccountDetails { AccountId, LastSignedIn, CreatedDate, /*etc*/}
Address {AccountDetailsId, City, Country, /*etc*/ }
In NoSQL type of database should I store all that in one?
Account { Id, Name, Password, LastSignedIn, CreatedDate, City, Country, /*etc*/}
Another words: should I normalize NoSQL documents?
Can u please advice?
In my particular case I am using mongodb with mongoose.