erd icon indicating copy to clipboard operation
erd copied to clipboard

Including NOT NULL, UNIQUE, types and comments in the syntax

Open kukimik opened this issue 3 years ago • 3 comments

Are there any plans to include

  • NOT NULL constraints,
  • attribute types,
  • UNIQUE constraints (on a single attribute or a group of attributes),
  • comments (on entities and attributes)

directly in the syntax? If this wasn't planned, what is your opinion about it?

I know I can have this on my diagram by using labels (as in the examples) and, say, adding extra attributes that mimick the UNIQUE constraints, but this is hacky, clumsy and makes automated processing more difficult. I'd love to have a stable syntax that could also be easily translated into SQL.

kukimik avatar Mar 18 '21 09:03 kukimik

This is a little more involved since certainly requires changes in syntax, so careful planning would be needed.

mmzx avatar Mar 18 '21 09:03 mmzx

This tool is really about showing the relationships between entities. Having first class support for a whole bunch of different SQL features should be a non-goal IMO.

BurntSushi avatar Mar 18 '21 09:03 BurntSushi

This tool is really about showing the relationships between entities. Having first class support for a whole bunch of different SQL features should be a non-goal IMO.

Sure, however even in the examples the types and not null constraints are included. They are a natural thing to include in such diagrams.

From my job experience I'd say that uniques are also included very often, but I'd be happy with just the types and not nulls.

kukimik avatar Mar 18 '21 09:03 kukimik