Thanks for clarifying, I'd use class diagram I think. Btw what is
On Feb 1, 5:13 pm, Sam Millman <
sam.mill...@gmail.com> wrote:
> Forwarding this to mongodb-user, noticed a few errors too so I have
> corrected them:
>
> Column names are not valid ERD syntax due to the nature of an ERD. ERDs are
> designed to only detail relations between entities, at most you place the
> connecting field names at either end of the one-to-many relationships etc
> (but even that is taking UML standards a little far).
>
> In UML 2 normalisation (normally 3NF, pre ERD) usually decides your initial
> columns and then ERD would decide the relationships between normalised
> tables while a DTD (pre normalisation) will decide the context and
> bounderies of the system. That is how a normal design process takes shape,
> of course UML is simply a guideline and is not designed to be followed to
> the letter at all times.
>
> If you really wanna display you tables in a relational manner (like in ERD)
> with column names then there is another diagram much like a class diagram
> that allows you to do that (though I have actually forgotten its name now).
> To represent columns as you ask I would normally include: [name, phone,
> email]. For fields that are potentially 'n' I would just state an example
> line and then be done with it personally. I mean Mongo is schemaless which
> means normalisation of its entities are done via logical and speed
> constraints so your diagram wouldn't make much sense anyway.
>
> Mapping the required rules and fields in the application layer via a class
> diagram would be much better than trying to map the DB side in this way.
>
> On 1 February 2012 09:00, Sam Millman <
sam.mill...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Column Name Are not valid ERD syntax due to the nature of an ERD. ERDs are
> > designed to only relation entities to one another, at most you place the
> > connecting field names at either end of the one-to-many relationships etc
> > (but even that is taking UML standards a little far).
>
> > In UML 2 normalisation (normally 3NF, pre ERD) will normally decide your
> > initial columns and then ERD would decide the relationships between
> > normalised tables while a DTD (pre normalisation) will decide the context
> > and bounderies of the system.
>
> > On 1 February 2012 08:55, shinn <
shin...@gmail.com> wrote:
>
> >> Hi Sam, I've read your reply that an ERD can be used for MongoDB.
> >> However, let's says in my db I have
>
> >> { db.contacts.save( {name: 'Foo', phone: 12345}, {name: 'Bar', email: