package org.wfc.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.wfc.common.mybatis.domain.BaseData;

import java.math.BigDecimal;

/**
 * <p>
 * 用户平台-订单表
 * </p>
 *
 * @author sys
 * @since 2025-01-03
 */
@Getter
@Setter
@TableName("u_order")
@Schema(name = "UOrder", description = "用户平台-订单表")
public class UOrder extends BaseData {

    private static final long serialVersionUID = 1L;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "套餐ID")
    private Long packageId;

    @Schema(description = "支付ID")
    private Long paymentId;

    @Schema(description = "订单编号")
    private String orderNo;

    @Schema(description = "订单类型（0套餐 1充值）")
    private Integer type;

    @Schema(description = "订单金额")
    private BigDecimal orderAmount;

    @Schema(description = "订单状态(0待支付 1已支付 2已取消)")
    private Integer status;

    @Schema(description = "用户名称")
    @TableField(exist = false)
    private String userName;

    @Schema(description = "套餐名称")
    @TableField(exist = false)
    private String packageName;
}
