Answers for "typeorm delete date column"

0

typeorm delete date column

/* 
* Special column that is automatically set to the entity's 
*  delete time each time you call soft-delete of entity 
*  manager or repository. 
* You don't need to set this column - it will be automatically set.
* TypeORM's own soft delete functionality utilizes global 
*  scopes to only pull "non-deleted" entities from the database.
* If the @DeleteDateColumn is set, the default scope will be "non-deleted".
*/
@Entity()
export class User {

    @DeleteDateColumn()
    deletedDate: Date;

}
Posted by: Guest on March-23-2022

Code answers related to "TypeScript"

Browse Popular Code Answers by Language