Loading backend/src/user/entities/user.entity.ts +5 −1 Original line number Diff line number Diff line import { UserResetCode } from 'src/auth/user/entities/user-reset-code.entity'; import { Category } from 'src/category/entities/category.entity'; import { Entity, Column, ManyToMany, JoinTable, PrimaryColumn } from 'typeorm'; import { Entity, Column, ManyToMany, JoinTable, PrimaryColumn, OneToMany } from 'typeorm'; @Entity() export class User { Loading @@ -21,4 +22,7 @@ export class User { @Column() password: string; @OneToMany(() => UserResetCode, resetCode => resetCode.user) resetCodes: UserResetCode[]; } Loading
backend/src/user/entities/user.entity.ts +5 −1 Original line number Diff line number Diff line import { UserResetCode } from 'src/auth/user/entities/user-reset-code.entity'; import { Category } from 'src/category/entities/category.entity'; import { Entity, Column, ManyToMany, JoinTable, PrimaryColumn } from 'typeorm'; import { Entity, Column, ManyToMany, JoinTable, PrimaryColumn, OneToMany } from 'typeorm'; @Entity() export class User { Loading @@ -21,4 +22,7 @@ export class User { @Column() password: string; @OneToMany(() => UserResetCode, resetCode => resetCode.user) resetCodes: UserResetCode[]; }