Skip to content

postgrelize / UpdatedAt

Variable: UpdatedAt ​

const UpdatedAt: ModelPropertyDecorator

Defined in: src/decorators/timestamp-decorators.ts:30

Names the attribute that holds the last update time (updatedAt: '<attribute>').

Example ​

ts
class User extends Model {
  @UpdatedAt
  updatedOn!: Date;
}

Released under the MIT License.