clean up userId and albumId

This commit is contained in:
mgabor
2024-04-17 10:39:57 +02:00
parent a49b066853
commit cecb99b4b6
3 changed files with 10 additions and 13 deletions

View File

@@ -12,11 +12,11 @@ export enum AlbumUserRole {
@Index('IDX_427c350ad49bd3935a50baab73', ['album'])
@Index('IDX_f48513bf9bccefd6ff3ad30bd0', ['user'])
export class AlbumUserEntity {
@PrimaryColumn({ type: 'uuid' })
albumsId!: string;
@PrimaryColumn({ type: 'uuid', name: 'albumsId' })
albumId!: string;
@PrimaryColumn({ type: 'uuid' })
usersId!: string;
@PrimaryColumn({ type: 'uuid', name: 'usersId' })
userId!: string;
@JoinColumn({ name: 'albumsId' })
@ManyToOne(() => AlbumEntity, { onDelete: 'CASCADE', onUpdate: 'CASCADE', nullable: false })