This commit is contained in:
Van0313
2025-07-06 11:25:56 +08:00
parent cdaff20462
commit 47a77eff47
3 changed files with 268 additions and 100 deletions

View File

@@ -0,0 +1,48 @@
package cn.van.business.model.pl;
import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
/**
* @author Van
* @version 1.0
* @create 2025/7/6
* @description 淘宝评论实体类
*/
@Entity
@Table(name = "taobao_comments")
@Data
public class TaobaoComment {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
@Column(name = "product_id", nullable = false, length = 255)
private String productId;
@Column(name = "user_name", length = 255)
private String userName;
@Lob
@Column(name = "comment_text")
private String commentText;
@Column(name = "comment_id", length = 255, unique = false)
private String commentId;
@Lob
@Column(name = "picture_urls")
private String pictureUrls;
@Column(name = "created_at")
private LocalDateTime createdAt;
@Column(name = "comment_date", length = 255)
private String commentDate;
@Column(name = "is_use", columnDefinition = "int default 0")
private Integer isUse;
}