mashafrancis/butternut-user

View on GitHub
src/app/_helpers/entity/extended-entity.ts

Summary

Maintainability
A
0 mins
Test Coverage
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;
}