mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-15 18:27:05 +00:00
changed naming
This commit is contained in:
@ -9,14 +9,14 @@ export class SpaceProductEntity extends AbstractEntity<SpaceProductEntity> {
|
|||||||
nullable: false,
|
nullable: false,
|
||||||
onDelete: 'CASCADE',
|
onDelete: 'CASCADE',
|
||||||
})
|
})
|
||||||
@JoinColumn({ name: 'space_id' })
|
@JoinColumn({ name: 'space_uuid' })
|
||||||
space: SpaceEntity;
|
space: SpaceEntity;
|
||||||
|
|
||||||
@ManyToOne(() => ProductEntity, (product) => product.spaceProducts, {
|
@ManyToOne(() => ProductEntity, (product) => product.spaceProducts, {
|
||||||
nullable: false,
|
nullable: false,
|
||||||
onDelete: 'CASCADE',
|
onDelete: 'CASCADE',
|
||||||
})
|
})
|
||||||
@JoinColumn({ name: 'product_id' })
|
@JoinColumn({ name: 'product_uuid' })
|
||||||
product: ProductEntity;
|
product: ProductEntity;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
|
Reference in New Issue
Block a user