Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] add BaseTable tool for convenience #217

Open
Provinm opened this issue Aug 14, 2024 · 0 comments
Open

[FEATURE] add BaseTable tool for convenience #217

Provinm opened this issue Aug 14, 2024 · 0 comments

Comments

@Provinm
Copy link

Provinm commented Aug 14, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant