package org.dromara.main.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("main_order")
public class MainOrder extends BaseEntity {

    @TableId(value = "id")
    private Long id;

    private String orderNo;
    private Integer orderType;
    private Integer buyerType;
    private Long buyerId;
    private String buyerName;
    private Long sellerId;
    private BigDecimal totalAmount;
    private BigDecimal paidAmount;
    private BigDecimal refundAmount;
    private Integer orderStatus;
    private Integer payStatus;
    private Long businessId;
    private Long productId;
    private Date payTime;
    private Date completeTime;
    private Date cancelTime;
    private String tenantId;
    private String remark;
}
