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 ​
An attribute decorator.
Example ​
ts
class User extends Model {
@Comment('Login name')
@Column(DataTypes.STRING)
login!: string;
}