drawdb-io / drawdb

Free, simple, and intuitive online database design tool and SQL generator.
https://drawdb.vercel.app
MIT License
12.08k stars 851 forks source link

Custom column type #106

Closed cazitouni closed 1 month ago

cazitouni commented 1 month ago

Hello,

I've started to work on custom column types in order to solve #39.

I don't know if my approach would be good or if I forgot something, so the draft.

Let me know your opinion. Regards, Clément.

vercel[bot] commented 1 month ago

@cazitouni is attempting to deploy a commit to the dottle's projects Team on Vercel.

A member of the Team first needs to authorize it.

1ilit commented 1 month ago

Hi Clément! Thanks for the contribution,

A better way to handle this would be add the allowCreate attribute to <Select/> in TableField.jsx and handle the newly created type in toSQL.js appropriately.

Having a type 'CUSTOM' and then having to input the actual type in the values field for SETs and ENUMs isn't very intuitive.