drawdb-io / drawdb-io/drawdb

[FEATURE] add BaseTable tool for convenience

Open
#217 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
39.5k
Forks
3.2k
Avg merge
10h 46m
Merged PRs (30d)
16

Description

**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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.