package com.jeesharp.business.modules.mall.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.jeesharp.framework.mybatis.core.dataobject.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 美食下单业务单
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("app_food_booking_order")
public class MallFoodBookingOrder extends BaseEntity<MallFoodBookingOrder> {

    /**
     * 交易主单ID
     */
    private String tradeOrderId;

    /**
     * 门店ID
     */
    private String restaurantId;

    /**
     * 套餐ID
     */
    private String packageId;

    /**
     * 会员ID
     */
    private String memberId;

    /**
     * 份数
     */
    private Integer quantity;

    /**
     * 联系人手机号
     */
    private String guestPhone;

    /**
     * 核销码
     */
    private String verifyCode;

    /**
     * 状态：created/pending_use/used/cancelled/refunded
     */
    private String bookStatus;

    /**
     * 成功页快照 JSON
     */
    private String resultPayloadJson;

    /**
     * 核销时间
     */
    private LocalDateTime usedTime;

    /**
     * 取消时间
     */
    private LocalDateTime cancelTime;

    /**
     * 扩展字段 JSON
     */
    private String extJson;
}
