Skip to content

postgrelize / Comment

Function: Comment() ​

Comment(text): ModelPropertyDecorator

Defined in: src/decorators/column-decorators.ts:131

Sets the column comment (comment).

Parameters ​

text ​

string

Comment text.

Returns ​

ModelPropertyDecorator

An attribute decorator.

Example ​

ts
class User extends Model {
  @Comment('Login name')
  @Column(DataTypes.STRING)
  login!: string;
}

Released under the MIT License.