diff options
Diffstat (limited to 'util/src/entities/Relationship.ts')
-rw-r--r-- | util/src/entities/Relationship.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/src/entities/Relationship.ts b/util/src/entities/Relationship.ts index 3e1280c7..cf3624bf 100644 --- a/util/src/entities/Relationship.ts +++ b/util/src/entities/Relationship.ts @@ -1,4 +1,4 @@ -import { Column, Entity, JoinColumn, ManyToOne, OneToMany, RelationId } from "typeorm"; +import { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm"; import { BaseClass } from "./BaseClass"; import { User } from "./User"; @@ -15,10 +15,10 @@ export class Relationship extends BaseClass { user_id: string; @JoinColumn({ name: "user_id" }) - @ManyToOne(() => User, (user: User) => user.id) + @ManyToOne(() => User, (user: User) => user.relationships) user: User; - @Column() + @Column({ nullable: true }) nickname?: string; @Column({ type: "simple-enum", enum: RelationshipType }) |