dbml icon indicating copy to clipboard operation
dbml copied to clipboard

[Feature request] "Extend" a table base attributes

Open gutkedu opened this issue 2 years ago • 0 comments

I was thinking in something like this: create a base table that we can use inside other tables in the project, for example:

Table Base {
    createdBy uuid
    createdAt datetime
    updatedBy uuid
    updatedAt datetime
    deletedBy uuid
    deletedAt datetime
}

Table User extends Base {
  id uuid [pk, default: `uuid_generate_v4()`]
  name varchar
  email varchar
}

With this feature, it will be possible to reduce the code quantity, improving the readability of it.

gutkedu avatar Nov 08 '22 14:11 gutkedu