Allow custom attributes

In a table, I have a day field, as such:

day "string<Text>" [note: "[Required] Representation of the day, as ISO 8601. Format: YYYY-MM-DD(e.g:2023-05-18)."] // Pattern: ^\d{4}-\d{2}-\d{2}$

I would like to add the pattern attribute, in the form [pattern: "^\d{4}-\d{2}-\d{2}$", note: "..."]
But if I do so, it breaks the whole schema.

I’m not using DBDiagram to build a pure SQL schema, but I’m using it to map our Xano database, which uses Postgres, but has additional features, and I’d like to represent those features through custom attributes (pattern, min, max, data example, etc.)

Maybe a “strict” mode feature could be added? To keep the current behavior by default, but allow to use “not strict” mode where such things would not yield an error?

Hi Ambroise,

Thank you for your suggestion.
I am Huy Phung from the dbdiagram team.

We greatly appreciate your detailed feature suggestion. We took note of your suggestion and will consider it in the future.

Feel free to share your feature suggestions with us the next time.

Best regards
Huy Phung