src/app/_helpers/entity/extended-entity.ts
import { ApiProperty } from '@nestjs/swagger';
import { DateTime } from 'luxon';
import { BaseEntity, Column } from 'typeorm';
export class ExtendedEntity extends BaseEntity {
public id?: string;
@Column('boolean', { default: false })
public isDeleted: boolean;
@ApiProperty()
@Column({ type: 'timestamptz' })
public createdAt: DateTime;
@ApiProperty()
@Column({ type: 'timestamptz' })
public updatedAt: DateTime;
}