expose albumPermissions on the API, deprecate sharedUsers

This commit is contained in:
mgabor
2024-04-12 13:48:55 +02:00
parent 48149e4384
commit 06028a283b
4 changed files with 36 additions and 29 deletions
-7
View File
@@ -53,13 +53,6 @@ export class AlbumEntity {
@Column({ comment: 'Asset ID to be used as thumbnail', nullable: true })
albumThumbnailAssetId!: string | null;
@ManyToMany(() => UserEntity)
@JoinTable({
name: 'albums_shared_users_users',
synchronize: false, // Table is managed by AlbumPermissionEntity
})
sharedUsers!: UserEntity[];
@OneToMany(() => AlbumPermissionEntity, (permission) => permission.albums)
albumPermissions!: AlbumPermissionEntity[];