Skip to content

Commit

Permalink
Merge pull request #91 from kea-dpang/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
oo-ni authored Feb 10, 2024
2 parents 2630641 + 6295852 commit ce4a842
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/main/java/kea/dpang/item/entity/Item.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,39 +41,45 @@ public class Item extends BaseEntity {
private Category category;

// 상품 분류 서브카테고리
@Column(name = "item_sub_category")
@Enumerated(EnumType.STRING)
private SubCategory subCategory;

// 평균 평점
@Column(name = "average_rating")
private float averageRating;

// 리뷰 리스트
@OneToMany(mappedBy = "item", cascade = CascadeType.ALL)
@Column(name = "reviews")
private List<Review> reviews;

// 할인율
@Column(name = "discount_rate")
private int discountRate;

// 할인가
@Column(name = "discount_price")
private int discountPrice;

// 이벤트 ID
@Column(name = "event_id")
private Long eventId;

// 재고 수량
@Column(name = "stock_quantity")
private int stockQuantity;

// 상품 상세정보
@Column(length = 1000)
// 상품 상세 설명
@Column(name = "description", length = 1000)
private String description;

// 상품 썸네일 사진
@Column(name = "thumbnail_image")
private String thumbnailImage;

// 상품 정보 이미지 리스트
@ElementCollection
@Column(name = "information_images")
private List<String> informationImages;

public void update(UpdateItemRequestDto dto) {
Expand Down

0 comments on commit ce4a842

Please sign in to comment.