package com.haha.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("t_price_adjustment_log")
public class PriceAdjustmentLog implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long recordId;

    private Long activityId;

    private Long shopId;

    private String shopName;

    private String deviceId;

    private String deviceName;

    private Long productId;

    private String productName;

    private String productType;

    private Integer stock;

    private BigDecimal originalPrice;

    private Integer discountType;

    private BigDecimal discountValue;

    private BigDecimal discountedPrice;

    private Integer isPriority;

    private LocalDateTime adjustTime;

    private LocalDateTime restoreTime;

    private Integer restoreStatus;

    private Integer saleQuantity;

    private BigDecimal saleAmount;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    @TableField(exist = false)
    private String restoreStatusLabel;

    @TableField(exist = false)
    private String restoreStatusColor;

    @TableField(exist = false)
    private String discountTypeLabel;
}
