package com.imdroid.secapi.dto;

import com.alibaba.excel.annotation.ExcelProperty;
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.util.Date;

@Data
@TableName(value = "simcards")
public class SimCard {
    public static final int STATUS_UNKNOWN = -1;    // 未知
    public static final int STATUS_WAIT_ACTIVE = 1; // 待激活
    public static final int STATUS_ACTIVATED = 2;   // 已激活
    public static final int STATUS_SUSPENDED = 3;   // 停机
    public static final int STATUS_CANCELLED = 4;   // 注销
    public static final int STATUS_IN_STOCK = 5;    // 库存
    public static final int STATUS_TESTABLE = 6;    // 可测试
    public static final int STATUS_INVALID = 7;     // 失效
    public static final int STATUS_NOT_EXIST = 99;  // 号码不存在

    @TableId(type = IdType.AUTO)
    @ExcelProperty("ID")
    private Integer id;

    @ExcelProperty("更新时间")
    private Date updatetime;

    @ExcelProperty("ICCID")
    private String iccid;

    @ExcelProperty("物联卡号码")
    private String msisdn;

    @ExcelProperty("设备ID")
    private String deviceid;

    @ExcelProperty("状态")
    private Integer status;

    @ExcelProperty("剩余流量(MB)")
    private BigDecimal remaining;

    @ExcelProperty("总流量(MB)")
    private BigDecimal total;

    @ExcelProperty("已用流量(MB)")
    private BigDecimal used;
}