Remove unused UserEntity import and relationship in InviteSpaceEntity

This commit is contained in:
faris Aljohari
2025-01-09 05:53:08 -06:00
parent 8eb1fd472a
commit ec467d124e

View File

@ -1,7 +1,6 @@
import { Column, Entity, ManyToOne, Unique } from 'typeorm';
import { UserSpaceDto } from '../../user/dtos';
import { AbstractEntity } from '../../abstract/entities/abstract.entity';
import { UserEntity } from '../../user/entities';
import { SpaceEntity } from './space.entity';
@Entity({ name: 'invite-space' })
@ -14,9 +13,6 @@ export class InviteSpaceEntity extends AbstractEntity<UserSpaceDto> {
})
public uuid: string;
@ManyToOne(() => UserEntity, (user) => user.userSpaces, { nullable: true })
user: UserEntity;
@ManyToOne(() => SpaceEntity, (space) => space.userSpaces, {
nullable: false,
})