Replace space privacy with visibility

* Make creatorId nullable
This commit is contained in:
Philipinho
2024-03-21 20:31:32 +00:00
parent 186c4f5f5c
commit 639842182c
6 changed files with 57 additions and 8 deletions

View File

@ -52,9 +52,9 @@ export class Workspace {
@Column({ nullable: true, type: 'uuid' })
creatorId: string;
//@ManyToOne(() => User, (user) => user.workspaces)
// @JoinColumn({ name: 'creatorId' })
// creator: User;
@OneToOne(() => User)
@JoinColumn({ name: 'creatorId' })
creator: User;
@Column({ nullable: true })
defaultSpaceId: string;