drawdb-io / drawdb

Free, simple, and intuitive online database diagram editor and SQL generator.
https://drawdb.app
GNU Affero General Public License v3.0
22.74k stars 1.59k forks source link

[FEATURE] add BaseTable tool for convenience #217

Open Provinm opened 3 months ago

Provinm commented 3 months ago

Is your feature request related to a problem? Please describe. in most occasions, we have fixed fields in every table like id/create_at/updated_at etc. in our code, it's like


class BaseModel:
    id: str
    created_at: int
    updated_at: int

class User(BaseModel):
    name: str
    email: str
    # ...

class Project(BaseModel):
     name: str

think its better to have a tool that contains some fixed fields definition in order to be inherited by other tables

Describe the solution you'd like

1、add a tab BaseTable or MetaTable at tool bar, so user can create custom base tables and define fields here

2、add a inherit from button after add index and add field,click it then we can choose which base table to inherit