package com.haha.entity;

import com.baomidou.mybatisplus.annotation.IdType;
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_order_item")
public class OrderItem implements Serializable {
    private static final long serialVersionUID = 1L;

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

    private Long orderId;

    private String orderNo;

    private Long productId;

    private String productCode;

    private String productName;

    private String productType;

    private Integer quantity;

    private BigDecimal costPrice;

    private BigDecimal retailPrice;

    private BigDecimal totalAmount;

    private BigDecimal profit;

    private String deviceId;

    private Long shopId;

    private Long userId;

    private LocalDateTime payTime;

    private LocalDateTime createTime;
}
