package com.kxs.store.api.model;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 客小爽机具申请表(KxsMachineApply)表实体类
 *
 * @author 系统
 * @since 2024-01-08 09:46:02
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class KxsMachineApply extends Model<KxsMachineApply> implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    
    
    /**
     * 主键ID
     */
    @Schema(description = "主键ID")
    @TableId(type = IdType.AUTO)
    private Integer id;


    /**
     * 新增时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "新增时间")
    private LocalDateTime createTime;


    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;


    /**
     * 删除标记，0未删除，1已删除
     */
    @Schema(description = "删除标记，0未删除，1已删除")
    private String delFlag;


    /**
     * 版本
     */
    @Schema(description = "版本")
    private Integer version;


    /**
     * 订单号
     */
    @Schema(description = "订单号")
    private String orderSn;


    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private Integer userId;


    /**
     * 品牌ID
     */
    @Schema(description = "品牌ID")
    private Integer brandId;

    /**
     * 品牌
     */
    @Schema(description = "品牌")
    private String brandName;


    /**
     * 仓库ID
     */
    @Schema(description = "仓库ID")
    private Integer warehouseId;


    /**
     * 提货方式 0自提 1邮寄
     */
    @Schema(description = "提货方式 0自提 1邮寄")
    private Integer getMode;


    /**
     * 申请数量
     */
    @Schema(description = "申请数量")
    private Integer applyNum;


    /**
     * 收货人
     */
    @Schema(description = "收货人")
    private String contacts;


    /**
     * 联系电话
     */
    @Schema(description = "联系电话")
    private String phone;


    /**
     * 收货地址
     */
    @Schema(description = "收货地址")
    private String address;


    /**
     * 申请类型 0循环申请 1兑换券
     */
    @Schema(description = "申请类型 0循环申请 1兑换券")
    private Integer applyType;


    /**
     * 订单状态 0待审核 1申请成功 2已驳回
     */
    @Schema(description = "订单状态 0待审核 1申请成功 2已驳回")
    private Integer status;


    /**
     * 顶级创客ID
     */
    @Schema(description = "顶级创客ID")
    private Integer topUserId;

    /**
     * 合伙人ID
     */
    @Schema(description = "合伙人ID")
    private Integer partnerId;


    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;


    /**
     * 是否预发机订单 0否 1是
     */
    @Schema(description = "是否预发机订单 0否 1是")
    private Integer isAdvance;

    /**
     * 申请用户名称
     */
    @Schema(description = "申请用户名称")
    private String username;

    /**
     * 申请用户编号
     */
    @Schema(description = "申请用户编号")
    private String userCode;




}

