rename albums_shared_users_users to album_permissions and add readonly column

This commit is contained in:
mgabor
2024-04-11 17:12:46 +02:00
parent 22c3d26604
commit de58cd2ebd
3 changed files with 52 additions and 1 deletions
+13 -1
View File
@@ -53,7 +53,19 @@ export class AlbumEntity {
albumThumbnailAssetId!: string | null;
@ManyToMany(() => UserEntity)
@JoinTable()
@JoinTable({
name: 'albums_shared_users_users',
inverseJoinColumn: {
name: 'usersId',
referencedColumnName: 'id',
foreignKeyConstraintName: 'FK_f48513bf9bccefd6ff3ad30bd06',
},
joinColumn: {
name: 'albumsId',
referencedColumnName: 'id',
foreignKeyConstraintName: 'FK_427c350ad49bd3935a50baab737',
},
})
sharedUsers!: UserEntity[];
@ManyToMany(() => AssetEntity, (asset) => asset.albums)