This commit is contained in:
2026-01-06 02:06:36 +07:00
parent 6d8e57606a
commit 6e9f468d18

View File

@ -64,14 +64,23 @@ export class User {
@CreateDateColumn()
created_at: Date;
@Column({ nullable: true, length: 256 })
created_by: string;
@Column({ nullable: true })
@UpdateDateColumn()
updated_at: Date;
@Column({ nullable: true, length: 256 })
updated_by: string;
@Column({ nullable: true })
@DeleteDateColumn()
deleted_at: Date;
@Column({ nullable: true, length: 256 })
deleted_by: string;
hashPassword() {
this.password = bcrypt.hashSync(this.password, 8);
}