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() @CreateDateColumn()
created_at: Date; created_at: Date;
@Column({ nullable: true, length: 256 })
created_by: string;
@Column({ nullable: true }) @Column({ nullable: true })
@UpdateDateColumn() @UpdateDateColumn()
updated_at: Date; updated_at: Date;
@Column({ nullable: true, length: 256 })
updated_by: string;
@Column({ nullable: true }) @Column({ nullable: true })
@DeleteDateColumn() @DeleteDateColumn()
deleted_at: Date; deleted_at: Date;
@Column({ nullable: true, length: 256 })
deleted_by: string;
hashPassword() { hashPassword() {
this.password = bcrypt.hashSync(this.password, 8); this.password = bcrypt.hashSync(this.password, 8);
} }