Skip to content

postgrelize / DeletedAt

Variable: DeletedAt ​

const DeletedAt: ModelPropertyDecorator

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

Names the attribute that holds the deletion time (deletedAt: '<attribute>') and makes the model paranoid unless @Table sets paranoid explicitly.

Example ​

ts
class User extends Model {
  @DeletedAt
  removedAt!: Date | null;
}

Released under the MIT License.