BOCOVO / db-schema-visualizer

A Visual Studio Code extension to visualize database schemas as Entity Relationship Diagrams (ERD) from DBML or Prisma files directly within the editor.
MIT License
43 stars 3 forks source link

Headercolor is random #30

Closed denis-mrd closed 2 months ago

denis-mrd commented 4 months ago

Hello! Thank you for this plugin! Could you please set the table's color according to table settings (https://dbml.dbdiagram.io/docs/#table-settings)?

Table users [headercolor: #3498DB] {
    id integer [primary key]
    username varchar(255) [not null, unique]
}

It's also would be nice to save position of existing tables on canvas)

BOCOVO commented 4 months ago

Hello @denis-mrd ! Thanks for the interesting feedback.

I note two things to add

But I think that the second ( saving table positions ) will be implemented before the first, as its absence makes the experience a little unpleasant.

denis-mrd commented 4 months ago

@BOCOVO you can use this repo as an example: https://github.com/denis-mrd/dbdiagram-oss

BOCOVO commented 4 months ago

@BOCOVO you can use this repo as an example: https://github.com/denis-mrd/dbdiagram-oss

Interesting ! Thank you @denis-mrd

BOCOVO commented 2 months ago

Hey @denis-mrd ! I've just released the tables position saving in the 0.1.0 version 🔥

denis-mrd commented 2 months ago

Yeah, it is working! Awesome! Could you please implement "the headercolor" as well?)

tv-long commented 2 months ago

Hi, I just make a PR for supporting headercolor of table setting. Hope it helps

BOCOVO commented 2 months ago

Hi @tv-long !

I just merge your pull request add also release the feature in the 0.2.0 version 🔥 . The feature help improve the project. Thank you a lot.

Looking forward to more contributions from you in the future !

denis-mrd commented 2 months ago

🔥🔥🔥 Thank you guys very much! I'm going to switch to developing a model with this tool next month