package org.dromara.main.domain;

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

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

@Data
@TableName("cs_order_card")
public class CsOrderCard {

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

    /**
     * 关联消息ID
     */
    private Long msgId;

    /**
     * 关联会话ID
     */
    private Long sessionId;

    /**
     * 项目名称
     */
    private String orderName;

    /**
     * 支付金额
     */
    private BigDecimal orderPrice;

    /**
     * 订单类型说明
     */
    private String orderType;

    /**
     * 关联平台真实订单ID
     */
    private Long originalOrderId;

    /**
     * 状态: pending=待支付, paid=已支付, cancelled=已取消, expired=已失效
     */
    private String status;

    /**
     * 结算单过期时间
     */
    private LocalDateTime expireTime;

    /**
     * 实际支付时间
     */
    private LocalDateTime payTime;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;
}
