From 08f9e49d67ee31e9ea53ae0531e8b392617aa1e5 Mon Sep 17 00:00:00 2001 From: "LAPTOP-EIABQG0H\\tulip" Date: Wed, 4 Oct 2023 21:34:39 +0900 Subject: [PATCH] comment:comment User entity --- src/modules/products/entities/product.entity.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/products/entities/product.entity.ts b/src/modules/products/entities/product.entity.ts index 5aea718..aae8307 100644 --- a/src/modules/products/entities/product.entity.ts +++ b/src/modules/products/entities/product.entity.ts @@ -1,5 +1,5 @@ import { CommonColumns } from '@/common/entities/common-columns'; -import { UserEntity } from '@/modules/users/entities/user.entity'; +// import { UserEntity } from '@/modules/users/entities/user.entity'; import { Column, PrimaryGeneratedColumn, ManyToMany, JoinTable, ManyToOne, JoinColumn, Entity } from 'typeorm'; @Entity({ name: 'products' }) @@ -8,9 +8,9 @@ export class ProductEntity extends CommonColumns { @PrimaryGeneratedColumn() id: number; - @ManyToOne(() => UserEntity, seller => seller.products) - @JoinColumn({ name: 'seller_id' }) // This sets up the foreign key - seller: UserEntity; + // @ManyToOne(() => UserEntity, seller => seller.products) + // @JoinColumn({ name: 'seller_id' }) // This sets up the foreign key + // seller: UserEntity; @Column() name: string;