package com.chaozhanggui.dao.system.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class TbPlussOperationRecord implements Serializable {
    private Integer id;

    private String operator;

    private String dictvalue;

    private Integer userid;

    private String remark;

    private Date createtime;


    private String extension;

    private static final long serialVersionUID = 1L;



    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER
            , value = "ip")
    private String ip;

    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER
            , value = "extension ->> '$.isp'")
    private String isp;

    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER
            , value = "extension ->> '$.city'")
    private String city;

    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER
            , value = "extension ->> '$.province'")
    private String province;

    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER
            , value = "extension ->> '$.country'")
    private String country;

    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER
            , value = "extension ->> '$.county'")
    private String county;
}