Skip to content

Commit

Permalink
#6 Feat: Add Review data
Browse files Browse the repository at this point in the history
  • Loading branch information
eun61n00 committed Aug 21, 2023
1 parent b3ff175 commit 35a1c26
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package org.routemaster.api.total.domain.attraction.data.review;

import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

@Document(collection = "attraction_review")
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@AllArgsConstructor(access = AccessLevel.PROTECTED)
@Builder
@Getter
@Setter
public class AttractionReview {

@Id
private String id;
@Field(name = "user_id")
private String userId;
@Field(name = "content_id")
private String contentId;
@Field(name = "review_comment")
private String reviewComment;
@Field(name = "rating")
private Integer rating;
@Field(name = "image_url")
private String imageUrl;

}

0 comments on commit 35a1c26

Please sign in to comment.