package com.fdkankan.ucenter.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户增值权益表
 * </p>
 *
 * @author 
 * @since 2022-07-04
 */
@Getter
@Setter
@TableName("t_user_increment")
public class UserIncrement implements Serializable {

    private static final long serialVersionUID = 1L;

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

    /**
     * 权益包标识
     */
    @TableField("key_word")
    private String keyWord;

    /**
     * 用户表t_user的id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 相机主表t_camera的id
     */
    @TableField("camera_id")
    private Long cameraId;

    /**
     * 会员权益类型Id
     */
    @TableField("increment_type_id")
    private Integer incrementTypeId;

    /**
     * 结束时间
     */
    @TableField("increment_end_time")
    private String incrementEndTime;

    /**
     * 是否过期（1过期，0未过期）
     */
    @TableField("is_expired")
    private Integer isExpired;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private String createTime;

    /**
     * 记录的状态，A: 生效，I: 禁用
     */
    @TableField("rec_status")
    @TableLogic(value = "A",delval = "I")
    private String recStatus;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private String updateTime;

    /**
     * 扩容订单集合
     */
    @TableField("order_sn")
    private String orderSn;

    /**
     * 生效时间
     */
    @TableField("increment_start_time")
    private String incrementStartTime;

    @TableField("download_num")
    private Integer downloadNum;

    @TableField("member_levels")
    private String memberLevels;

    @TableField("month_qy")
    private Integer monthQy;

    @TableField("agent_id")
    private Integer agentId;

    @TableField("subscription_order")
    private String subscriptionOrder;

}
