#88 fix passwordRecovery model

parent df34b85f
...@@ -27,7 +27,7 @@ import { User } from './User'; ...@@ -27,7 +27,7 @@ import { User } from './User';
@Column({ name: 'token', type: 'varchar',length:100, unique: true, nullable:true }) @Column({ name: 'token', type: 'varchar',length:100, unique: true, nullable:true })
token!: string; token!: string;
@OneToOne(()=>User,{nullable: false, eager:true}) @OneToOne(()=>User,{nullable: false, eager:true, onDelete:"CASCADE"})
@JoinColumn() @JoinColumn()
user!:User; user!:User;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment