评论
This commit is contained in:
48
src/main/java/cn/van/business/model/pl/TaobaoComment.java
Normal file
48
src/main/java/cn/van/business/model/pl/TaobaoComment.java
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user