data persistance init

This commit is contained in:
Ben Wilson
2023-06-23 22:30:54 -04:00
parent b963eaa514
commit 080471e52d
16 changed files with 2760 additions and 188 deletions
+12
View File
@@ -0,0 +1,12 @@
import { CreateDateColumn, DeleteDateColumn, UpdateDateColumn } from 'typeorm';
export abstract class TrackedEntity {
@DeleteDateColumn({ nullable: true, type: 'datetime' })
public deletedAt?: Date;
@CreateDateColumn({ type: 'datetime' })
public createdAt?: Date
@UpdateDateColumn({ type: 'datetime' })
public updatedAt?: Date
}