package com.seer.teach.mall.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.seer.teach.common.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 订单日志
 * </p>
 *
 * @author Wang
 * @since 2025-07-10 15:31:18
 */
@Getter
@Setter
@TableName("mall_order_log")
public class OrderLogEntity extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户Id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 用户类型
     */
    @TableField("user_type")
    private Integer userType;

    /**
     * 订单Id
     */
    @TableField("order_id")
    private Integer orderId;

    /**
     * 子订单Id
     */
    @TableField("child_order_id")
    private Integer childOrderId;

    /**
     * 变更前状态
     */
    @TableField("before_status")
    private Integer beforeStatus;

    /**
     * 变更后状态
     */
    @TableField("after_status")
    private Integer afterStatus;

    /**
     * 物流状态
     */
    @TableField("shipping_status")
    private Integer shippingStatus;

    /**
     * 评价状态
     */
    @TableField("comment_status")
    private Integer commentStatus;

    /**
     * 操作类型
     */
    @TableField("operate_type")
    private Integer operateType;

    /**
     * 商家Id
     */
    @TableField("merchant_id")
    private Long merchantId;

    /**
     * 操作内容
     */
    @TableField("content")
    private String content;

}