added community space

This commit is contained in:
hannathkadher
2024-10-15 11:38:49 +04:00
parent 2292c01220
commit d14d3b5ba2
16 changed files with 253 additions and 11 deletions

View File

@ -3,7 +3,6 @@ import { AbstractEntity } from '../../abstract/entities/abstract.entity';
import { CommunityDto } from '../dtos';
import { RegionEntity } from '../../region/entities';
import { SpaceEntity } from '../../space/entities';
import { RoleEntity } from '../../role/entities';
@Entity({ name: 'community' })
@Unique(['name'])
@ -32,7 +31,4 @@ export class CommunityEntity extends AbstractEntity<CommunityDto> {
@OneToMany(() => SpaceEntity, (space) => space.community)
spaces: SpaceEntity[];
@OneToMany(() => RoleEntity, (role) => role.community)
roles: RoleEntity[];
}