erd
erd copied to clipboard
Including NOT NULL, UNIQUE, types and comments in the syntax
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.
This is a little more involved since certainly requires changes in syntax, so careful planning would be needed.
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.
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.