diff --git a/src/main/java/com/example/neoul/entity/user/UserLikedBrand.java b/src/main/java/com/example/neoul/entity/user/UserLikedBrand.java new file mode 100644 index 0000000..c265dcc --- /dev/null +++ b/src/main/java/com/example/neoul/entity/user/UserLikedBrand.java @@ -0,0 +1,29 @@ +package com.example.neoul.entity.user; + +import lombok.*; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; + +import javax.persistence.*; + +@DynamicInsert +@DynamicUpdate +@Setter +@Getter +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Table(name = "user_liked_product") +@Entity +public class UserLikedBrand { + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + @Column(name = "id") + private Long id; + + @Column(name = "user_id") + private Long userId; + + @Column(name = "brand_id") + private Long brandId; +} diff --git a/src/main/java/com/example/neoul/entity/user/UserLikedProduct.java b/src/main/java/com/example/neoul/entity/user/UserLikedProduct.java new file mode 100644 index 0000000..76c36a8 --- /dev/null +++ b/src/main/java/com/example/neoul/entity/user/UserLikedProduct.java @@ -0,0 +1,29 @@ +package com.example.neoul.entity.user; + +import lombok.*; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; + +import javax.persistence.*; + +@DynamicInsert +@DynamicUpdate +@Setter +@Getter +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Table(name = "user_liked_product") +@Entity +public class UserLikedProduct { + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + @Column(name = "id") + private Long id; + + @Column(name = "user_id") + private Long userId; + + @Column(name = "product_id") + private Long productId; +} diff --git a/src/main/java/com/example/neoul/entity/user/UserSearchWord.java b/src/main/java/com/example/neoul/entity/user/UserSearchWord.java new file mode 100644 index 0000000..a595b5b --- /dev/null +++ b/src/main/java/com/example/neoul/entity/user/UserSearchWord.java @@ -0,0 +1,29 @@ +package com.example.neoul.entity.user; + +import com.example.neoul.global.entity.BaseEntity; +import lombok.*; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; + +import javax.persistence.*; + +@DynamicInsert +@DynamicUpdate +@Setter +@Getter +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Table(name = "user_liked_product") +@Entity +public class UserSearchWord extends BaseEntity { + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + @Column(name = "id") + private Long id; + + @Column(name = "user_id") + private Long userId; + + private String word; +}