summary refs log tree commit diff
path: root/util/src/entities/TeamMember.ts
diff options
context:
space:
mode:
Diffstat (limited to 'util/src/entities/TeamMember.ts')
-rw-r--r--util/src/entities/TeamMember.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/src/entities/TeamMember.ts b/util/src/entities/TeamMember.ts
index d4c95397..6b184d08 100644
--- a/util/src/entities/TeamMember.ts
+++ b/util/src/entities/TeamMember.ts
@@ -15,17 +15,19 @@ export class TeamMember extends BaseClass {
 	@Column({ type: "simple-array" })
 	permissions: string[];
 
+	@Column({ nullable: true })
 	@RelationId((member: TeamMember) => member.team)
 	team_id: string;
 
 	@JoinColumn({ name: "team_id" })
-	@ManyToOne(() => require("./Team").Team, (team: import("./Team").Team) => team.id)
+	@ManyToOne(() => require("./Team").Team, (team: import("./Team").Team) => team.members)
 	team: import("./Team").Team;
 
+	@Column({ nullable: true })
 	@RelationId((member: TeamMember) => member.user)
 	user_id: string;
 
 	@JoinColumn({ name: "user_id" })
-	@ManyToOne(() => User, (user: User) => user.id)
+	@ManyToOne(() => User)
 	user: User;
 }