changed naming

This commit is contained in:
hannathkadher
2024-11-20 16:16:58 +04:00
parent 2ed5d9dce7
commit bc1638aba4

View File

@ -9,14 +9,14 @@ export class SpaceProductEntity extends AbstractEntity<SpaceProductEntity> {
nullable: false,
onDelete: 'CASCADE',
})
@JoinColumn({ name: 'space_id' })
@JoinColumn({ name: 'space_uuid' })
space: SpaceEntity;
@ManyToOne(() => ProductEntity, (product) => product.spaceProducts, {
nullable: false,
onDelete: 'CASCADE',
})
@JoinColumn({ name: 'product_id' })
@JoinColumn({ name: 'product_uuid' })
product: ProductEntity;
@Column({