package cn.van.business.model.jd;

import jakarta.persistence.*;
import lombok.Data;

import java.util.Date;

@Entity
@Table(name = "jd_order")
@Data
public class JDOrder {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    private String remark;          // 单据备注（如日期编号）
    private String distributionMark; // 分销标记
    private String modelNumber;     // 型号
    private String link;            // 链接
    private Double paymentAmount;   // 下单付款金额
    private Double rebateAmount;   // 后返金额
    private String address;         // 地址
    private String logisticsLink;   // 物流链接
    private String orderId;         // 订单号
    private String buyer;           // 下单人
    private Date orderTime;         // 下单时间
    private String status;

    @Column(updatable = false, insertable = false, columnDefinition = "DATETIME DEFAULT CURRENT_TIMESTAMP")
    private Date createTime;

    @Column(columnDefinition = "DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
    private Date updateTime;
}
