Created
August 1, 2021 06:38
-
-
Save Goldziher/58f4fb271c7d9499c3dc31b7b139ef51 to your computer and use it in GitHub Desktop.
Example of abstract class inheriting from BaseEntity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export abstract class AbstractUUIDPrimaryKeyEntity extends BaseEntity { | |
@PrimaryGeneratedColumn('uuid') | |
id: string; | |
@CreateDateColumn() | |
createdDate: Date; | |
@UpdateDateColumn() | |
updatedDate: Date; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment