diff options
Diffstat (limited to 'util/src/entities/Role.ts')
-rw-r--r-- | util/src/entities/Role.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/src/entities/Role.ts b/util/src/entities/Role.ts index be8c731d..33c8d272 100644 --- a/util/src/entities/Role.ts +++ b/util/src/entities/Role.ts @@ -5,11 +5,12 @@ import { Guild } from "./Guild"; @Entity("roles") export class Role extends BaseClass { + @Column({ nullable: true }) @RelationId((role: Role) => role.guild) guild_id: string; @JoinColumn({ name: "guild_id" }) - @ManyToOne(() => Guild, (guild: Guild) => guild.id) + @ManyToOne(() => Guild) guild: Guild; @Column() |