mirror of
https://github.com/docmost/docmost.git
synced 2025-11-22 04:01:12 +10:00
Replace space privacy with visibility
* Make creatorId nullable
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user