Skip to content

[FEATURE]: Add a possibility to add a comment on a Table, Column.......Β #886

@snaidaGithub

Description

@snaidaGithub

Describe what you want

It would be great to add a comment on Tables, Columns .... So that you can describe the tables, columns in the drizzle-orm model and it's also in the database, e.g. a database admin also needs this info in the db.

Maybe like this:

export const DbRole = pgTable("role", {
  name: varchar("name", { length: 256 }).notNull().comment("The name of role, ....."),
  description: varchar("description", { length: 256, }).comment("The description, ....."),

  isActive: boolean("is_active").default(true).notNull().comment(" ....."),
  allowSignup: boolean("allow_signup").default(false).comment("....."),
  allowExternal: boolean("allow_external").default(false.comment("....."),
}).comment("The role .....");

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions