create orphan community and space for project

This commit is contained in:
hannathkadher
2024-12-18 08:22:53 +04:00
parent 885d43d834
commit a5ab883957
8 changed files with 88 additions and 6 deletions

View File

@ -0,0 +1,4 @@
export const ORPHAN_COMMUNITY_NAME = 'orphan-community';
export const ORPHAN_COMMUNITY_DESCRIPTION =
'Default community for orphan spaces';
export const ORPHAN_SPACE_NAME = 'orphan-space';

View File

@ -117,7 +117,7 @@ export class UserEntity extends AbstractEntity<UserDto> {
public visitorPasswords: VisitorPasswordEntity[];
@ManyToOne(() => RoleTypeEntity, (roleType) => roleType.users, {
nullable: false,
nullable: true,
})
public roleType: RoleTypeEntity;
@OneToOne(() => InviteUserEntity, (inviteUser) => inviteUser.user, {